Skip to content
Snippets Groups Projects
Commit 7c008266 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-2829: use regex for destination path validation to prevent bash injection

parent f1d5d13f
No related branches found
No related tags found
1 merge request!1326TMSS-2829
......@@ -14,7 +14,8 @@
"destination": {
"default": "localhost:/tmp",
"description": "Where to copy the data to: <host>:/path/to/destination",
"type": "string"
"type": "string",
"pattern": "^[a-zA-Z\\d_\\-]*\\:?(/[a-zA-Z\\d_\\-]+)+$"
},
"managed_output": {
"default": false,
......
......@@ -14,7 +14,8 @@
"destination": {
"default": "localhost:/tmp",
"description": "Where to copy the data to: <host>:/path/to/destination",
"type": "string"
"type": "string",
"pattern": "^[a-zA-Z\\d_\\-]*\\:?(/[a-zA-Z\\d_\\-]+)+$"
},
"managed_output": {
"default": false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment