2021-03-24 17:46:18 +00:00
|
|
|
id: header-command-injection
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Header Command Injection
|
|
|
|
author: geeknik
|
|
|
|
severity: high
|
2021-03-24 17:50:20 +00:00
|
|
|
description: Fuzzing headers for command injection
|
2021-04-02 13:54:37 +00:00
|
|
|
tags: fuzz,rce
|
2021-03-24 17:46:18 +00:00
|
|
|
|
|
|
|
requests:
|
2021-08-22 18:09:33 +00:00
|
|
|
- raw:
|
2021-03-24 17:46:18 +00:00
|
|
|
- |
|
2022-04-29 05:04:34 +00:00
|
|
|
GET /?{{header}} HTTP/1.1
|
2021-03-24 17:46:18 +00:00
|
|
|
Host: {{Hostname}}
|
2022-04-29 05:04:34 +00:00
|
|
|
{{header}}: {{payload}}
|
2021-03-24 17:46:18 +00:00
|
|
|
|
2021-08-22 18:09:33 +00:00
|
|
|
payloads:
|
|
|
|
header: helpers/payloads/request-headers.txt
|
|
|
|
payload: helpers/payloads/command-injection.txt
|
2021-03-24 17:46:18 +00:00
|
|
|
attack: clusterbomb
|
2021-08-22 18:09:33 +00:00
|
|
|
|
2021-09-02 11:59:10 +00:00
|
|
|
redirects: true
|
|
|
|
stop-at-first-match: true
|
2021-03-24 17:46:18 +00:00
|
|
|
matchers-condition: or
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "uid="
|
|
|
|
- "gid="
|
|
|
|
- "groups="
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: regex
|
|
|
|
regex:
|
2021-07-24 21:35:55 +00:00
|
|
|
- "root:.*:0:0:"
|