Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update nuclei checks #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions extensions/nuclei-template/h2c-smuggle-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
id: h2c-smuggling-check

info:
name: h2c smuggling detection
author: Jake Miller (@theBumbleSec) & Hazana (@HazanaSec)
severity: info
lab: https://labs.bishopfox.com/tech-blog/h2c-smuggling-request-smuggling-via-http/2-cleartext-h2c

# 1. Nuclei force adds a "Connection: close" which will break this check.
# 2. Prefer usage on SSL/TLS web services. Using on cleartext services may result
# in a false positive by upgrading the connection to the edge server rather
# than to the backend server.
# 3. Each respective path on the webserver may result in a distinct proxypass.
# Some may be vulnerable while other might not.

requests:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
Upgrade: h2c
HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
Connection: Upgrade, HTTP2-Settings
matchers:
- type: status
status:
- 101
27 changes: 27 additions & 0 deletions extensions/nuclei-template/h2c-smuggle-upgrade-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
id: h2c-smuggling-upgrade-check

info:
name: h2c smuggling upgrade only detection
author: Jake Miller (@theBumbleSec) & Hazana (@HazanaSec)
severity: info
lab: https://labs.bishopfox.com/tech-blog/h2c-smuggling-request-smuggling-via-http/2-cleartext-h2c

# 1. Nuclei force adds a "Connection: close" which will break this check.
# 2. Prefer usage on SSL/TLS web services. Using on cleartext services may result
# in a false positive by upgrading the connection to the edge server rather
# than to the backend server.
# 3. Each respective path on the webserver may result in a distinct proxypass.
# Some may be vulnerable while other might not.

requests:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
Upgrade: h2c
HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
Connection: Upgrade
matchers:
- type: status
status:
- 101
33 changes: 0 additions & 33 deletions extensions/nuclei-template/h2csmuggle-nuclei.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions extensions/nuclei-template/h2csmuggle-upgrade-only-nuclei.yaml

This file was deleted.