Passive mode fails to parse http request responses: Could not read raw response .. malformed HTTP status code ... #2068
Labels
Priority: Medium
This issue may be useful, and needs some attention.
Status: Completed
Nothing further to be done with this issue. Awaiting to be closed.
Type: Bug
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Milestone
Nuclei version:
2.7.1
Current Behavior:
nuclei passive mode completely fails to parse HTTP response if response body contains
HTTP/1.1
string somewhere else.Expected Behavior:
nuclei should correctly parse http responses.
when not possible, it should at least try to extract possible responses and match templates among all possibilities.
Steps To Reproduce:
I wrote a simple pastebin file here: https://pastebin.com/raw/TYsVwM0n, who can help reproduce the issue.
proxify
in a terminalcurl --insecure -x 127.0.0.1:8888 'https://pastebin.com/raw/TYsVwM0n'
to ask proxify to write the HTTP request/response file./logs/pastebin.com*.txt
has now been created by proxifynuclei -passive -target ./logs/pastebin.com*.txt
Nuclei sees a HTTP/1.1 in the body, completely stops considering the first (legitimate)
HTTP/1.1
, and displays the same error thousands time:For the record, here is the content of
logs/pastebin/com*.txt
on my computer:The text was updated successfully, but these errors were encountered: