-
Notifications
You must be signed in to change notification settings - Fork 875
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
httpx specifices :80 and :443 in the Host header, causing false negatives #464
Comments
Hi @laluka, I'm interested in this issue and I think we should replicate the behaviour of
You can see that |
Also, could you provide some webserver examples that cause false negatives for |
Sadly no as they were work-related, but this behavior is highly dependent on the server configuration, I had issues with nginx, apache, and more.. I do agree with @yabeow that the curl behavior should be reproduced, only add an extra case for ports 80 and 443 would cover most of the cases :) |
Thanks for your reply, @laluka. I'm looking at the code now, I will submit a PR if I've found a way to fix this. |
I've found a quick hack for this issue - modify https://github.com/projectdiscovery/httpx/blob/master/runner/runner.go#L683 like this:
I'm not familiar with the behaviour of |
@yabeow well, if it works, merge & run ! 🔥 |
Actually, I'm not a maintainer :D @ehsandeep @Ice3man543 @Mzack9999 Can you guys take a look at this? |
httpx version:
Current Version: v1.1.4
Current Behavior:
httpx sends http/https probes with the port specified within the http
Host
header even for ports :80 and :443 which causes false negatives when server / reverse proxy targeted validated a strict vhost is used, without port information.Expected Behavior:
Implement one of:
Host
http headerSteps To Reproduce:
Anything else:
I've had something like 10% false negative over 20k+ hosts, so I think this is worth patching 🌹
Thanks so much for all the awesome tools and automation mindset! ;)
The text was updated successfully, but these errors were encountered: