-
Notifications
You must be signed in to change notification settings - Fork 6
/
hostheaderpoisoning.yaml
88 lines (85 loc) · 2.81 KB
/
hostheaderpoisoning.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
id: host-header-poisoning
info:
name: Basic Host Header Poisoning
author: tedm.infosec
severity: medium
description: Basic host header poisoning vulnerability check. Checks for reflections of X-Forwarded-Host and X-Host in the response body.
requests:
- raw:
- |
GET /?x-forwarded-host HTTP/1.1
Host: {{Hostname}}
X-Forwarded-Host: xrcr0x4a.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Connection: close
- |
GET /?x-host HTTP/1.1
Host: {{Hostname}}
X-Host: xrcr0x4a.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Connection: close
- |
GET /?x-forwarded-server HTTP/1.1
Host: {{Hostname}}
X-Forwarded-Server: xrcr0x4a.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Connection: close
- |
GET /?x-http-host-override HTTP/1.1
Host: {{Hostname}}
X-HTTP-Host-Override: xrcr0x4a.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Connection: close
- |
GET /?forwarded HTTP/1.1
Host: {{Hostname}}
Forwarded: xrcr0x4a.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Connection: close
- |
GET /?non-numeric-port-bypass HTTP/1.1
Host: {{Hostname}}:xrcr0x4a
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Connection: close
- |
GET /?subdomain-bypass HTTP/1.1
Host: xrcr0x4a.{{Hostname}}
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Connection: close
- |
GET /?duplicate-host-headers HTTP/1.1
Host: {{Hostname}}
Host: xrcr0x4a.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Connection: close
- |
GET /?duplicate-host-headers-line-wrap HTTP/1.1
Host: xrcr0x4a.com
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Connection: close
- |
GET https://{{Hostname}}/?absolute-url HTTP/1.1
Host: xrcr0x4a.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Connection: close
matchers-condition: and
matchers:
- type: word
words:
- "xrcr0x4a"
part: body
condition: and
- type: status
status:
- 200