Add HTTP Request Smuggling detection via Nuclei templates (#303)#2598
Open
FaizanAnwar01 wants to merge 5 commits into
Open
Add HTTP Request Smuggling detection via Nuclei templates (#303)#2598FaizanAnwar01 wants to merge 5 commits into
FaizanAnwar01 wants to merge 5 commits into
Conversation
…ents CERT-Polska#303 with CL.TE, TE.CL, and TE.TE detection templates+ Polish translations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds generic HTTP Request Smuggling detection to Artemis using custom Nuclei templates, as requested by @kazet in #303
Changes
No Python code changes required — templates are auto-loaded via the existing
nuclei_templates_custom/directory mechanism.Detection Method
All templates use Nuclei's
unsafe: truemode with therawhttplibrary to send malformed HTTP requests that exploit disagreements in how front-end and back-end servers parse request boundaries. The "GPOST" probe technique is used: if a smuggledGprefix gets prepended to a subsequentPOSTrequest, the server returns an error for the unrecognizedGPOSTmethod — confirming the vulnerability.False Positive Mitigation
This was the primary design concern, following @kazet's guidance that simply checking for HTTP/1.1 would produce too many false positives.
matchers-condition: and— requires BOTH a status code anomaly (400/405/501) AND specific error text (e.g., "Unrecognized method GPOST")Testing
Tested all 3 templates against PortSwigger Web Security Academy labs:
Negative testing: Ran templates against non-vulnerable servers (single-server setups) — zero false positives.
Related Issue
Closes #303