[ 
https://issues.apache.org/jira/browse/CAMEL-13042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-13042:
--------------------------------
    Fix Version/s: 2.23.1
                   2.22.3
                   2.21.5

> 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: 2.21.5, 2.22.3, 3.0.0, 2.23.1, 2.24.0
>
>          Time Spent: 20m
>  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)

Reply via email to