You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2019/01/08 17:38:00 UTC

[jira] [Commented] (CAMEL-13042) camel-core - File producer should by default not allow writing files to directories outside its starting directory

    [ https://issues.apache.org/jira/browse/CAMEL-13042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16737329#comment-16737329 ] 

Claus Ibsen commented on CAMEL-13042:
-------------------------------------

I created a PR to have some feedback
https://github.com/apache/camel/pull/2700

If you have a suggestion for a better name of the new option, then let us know

> camel-core - File producer should by default not allow writing files to directories outside its starting directory
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-13042
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13042
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.23.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.0.0, 2.24.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> For example
> {code:xml}
> <from uri="file:src/test/resources/data?noop=true"/>
> <setHeader headerName="CamelFileName">
>     <simple>../../${file:name}</simple>
> </setHeader>
> <to uri="file:target/results"/>
> {code}
> Can write the file outside the target/results folder. We should not allow this by default to be more security friendly. 
> We should add a new option (maybe name it jailStartingDirectory or allowWriteOutsideStartingDirectory) or some better name



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)