-max-host-error not respecting "context deadline exceeded" errors #3119
Labels
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:
Nuclei 2.8.3
Current Behavior:
When running Nuclei against a port that doesn't respond as closed, but filtered (i.e requests timeout), Nuclei tries to perform full scans without respecting -max-host-error despite all probes returning "context deadline exceeded"
Expected Behavior:
I expect that errors of "context deadline exceeded" to contribute to the -max-host-error count, to ensure that Nuclei skips filtered/no longer accessible ports
Steps To Reproduce:
Create targets file containing
Run command:
nuclei -s low,medium -l test.txt -max-host-error 3 -v -timeout 3
127.0.0.1:4443/8880 will be eventually skipped as the port is closed (respond with TCP RST) - but google.com:6969 does not, therefore trying to execute a full scan when the port is not available.
Example -v output:
Anything else:
I assume these errors are supposed to typically include "Client.Timeout exceeded while awaiting headers" (from what I can see in similar output on Discord, documentation etc) which I believe previously handled this test case - but I am unable to recreate this error message
The text was updated successfully, but these errors were encountered: