Skip to content

Commit c301b0b

Browse files
committed
update nuclei checks
1 parent 7ea573a commit c301b0b

4 files changed

+54
-66
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
id: h2c-smuggling-check
2+
3+
info:
4+
name: h2c smuggling detection
5+
author: Jake Miller (@theBumbleSec) & Hazana (@HazanaSec)
6+
severity: info
7+
lab: https://labs.bishopfox.com/tech-blog/h2c-smuggling-request-smuggling-via-http/2-cleartext-h2c
8+
9+
# 1. Nuclei force adds a "Connection: close" which will break this check.
10+
# 2. Prefer usage on SSL/TLS web services. Using on cleartext services may result
11+
# in a false positive by upgrading the connection to the edge server rather
12+
# than to the backend server.
13+
# 3. Each respective path on the webserver may result in a distinct proxypass.
14+
# Some may be vulnerable while other might not.
15+
16+
requests:
17+
- raw:
18+
- |
19+
GET / HTTP/1.1
20+
Host: {{Hostname}}
21+
Upgrade: h2c
22+
HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
23+
Connection: Upgrade, HTTP2-Settings
24+
matchers:
25+
- type: status
26+
status:
27+
- 101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
id: h2c-smuggling-upgrade-check
2+
3+
info:
4+
name: h2c smuggling upgrade only detection
5+
author: Jake Miller (@theBumbleSec) & Hazana (@HazanaSec)
6+
severity: info
7+
lab: https://labs.bishopfox.com/tech-blog/h2c-smuggling-request-smuggling-via-http/2-cleartext-h2c
8+
9+
# 1. Nuclei force adds a "Connection: close" which will break this check.
10+
# 2. Prefer usage on SSL/TLS web services. Using on cleartext services may result
11+
# in a false positive by upgrading the connection to the edge server rather
12+
# than to the backend server.
13+
# 3. Each respective path on the webserver may result in a distinct proxypass.
14+
# Some may be vulnerable while other might not.
15+
16+
requests:
17+
- raw:
18+
- |
19+
GET / HTTP/1.1
20+
Host: {{Hostname}}
21+
Upgrade: h2c
22+
HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
23+
Connection: Upgrade
24+
matchers:
25+
- type: status
26+
status:
27+
- 101

extensions/nuclei-template/h2csmuggle-nuclei.yaml

-33
This file was deleted.

extensions/nuclei-template/h2csmuggle-upgrade-only-nuclei.yaml

-33
This file was deleted.

0 commit comments

Comments
 (0)