[
https://issues.apache.org/jira/browse/UNOMI-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kevan Jahanshahi updated UNOMI-543:
-----------------------------------
Affects Version/s: 2.0.0
1.6.0
> Add validation on filename for ImportConfigurationServiceEndPoint
> -----------------------------------------------------------------
>
> Key: UNOMI-543
> URL: https://issues.apache.org/jira/browse/UNOMI-543
> Project: Apache Unomi
> Issue Type: Bug
> Affects Versions: 2.0.0, 1.6.0
> Reporter: Kevan Jahanshahi
> Assignee: Kevan Jahanshahi
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> curl -v -k -H "Authorization: Basic a2FyYWY6a2FyYWY=" -F "file=" -F
> "importConfigId=../../../../../../../../../../../../../../../../../../../../../../../../../../../tmp/123456789"
> -X POST [https://127.0.0.1:9443/cxs/importConfiguration/oneshot]
>
> Execute the command "ls /tmp".Viewing the /tmp directory will generate a
> '123456789.csv' file.
> Only alphanumeric characters should be allowed in the file name and some
> characters like: -_.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)