feat(input): add raw http request input mode - #7629
Open
dogancanbakir wants to merge 2 commits into
Open
Conversation
The second line was always consumed as the Host line, so any request-shaped input whose Host header sat elsewhere lost that header silently and skipped fuzzing. Reading values by skipping one byte past the colon also truncated unspaced values and panicked on valueless headers, crashing the scan. Absolute request targets, as used by proxy captures, were appended to the authority instead of replacing it.
Fuzzing takes the request shape from the input, so a bare URL is always fuzzed as a GET and anything else needed a spec, captured traffic or a hand-written proxify document. -im http reads requests as they appear on the wire, which is what Burp and browser devtools already put on the clipboard.
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Mzack9999
approved these changes
Aug 3, 2026
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.
Closes #7628
Sub-task of #7590
Depends on #7627 and carries its commit, so merge that one first.
ParseRawRequestneeds the absolute request target fix from it for the absolute form below.Fuzzing takes the request shape from the input, so a bare URL is always fuzzed as a
GET. Anything else needed a spec, captured traffic, or a hand-written proxify document.-im httpreads requests as they appear on the wire, which is what Burp and browser devtools already put on the clipboard:nuclei -l login.http -im http -dast -t fuzzing-templates/###, the.httpfile conventionPOST https://example.com/api/login HTTP/1.1) states the scheme, otherwise it is inferred from the authority by reusingDetermineSchemeOrderrather than adding a second heuristicHostheader and no absolute target is skipped with a warning, matching how the other formats report unusable entriesDocs in
pkg/input/README.mdcover which-immode to reach for and the shortest path from one endpoint to-dast. The-imlist in the READMEs is refreshed.Unit tests cover parsing, separators, scheme resolution and skipping. Integration coverage is
fuzz/fuzz-raw-http-input.yaml, which seeds a base request from a raw file and fuzzes a JSON body end to end. Full integration suite is green.