-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
[FEATURE REQUEST] Content-based auto filtering #784
Comments
interesting. I took a brief look at the auto calibration code in ffuf. my understanding of what's going on:
Does that sound correct? |
Likely yes! I think feroxbuster should provide a way to not only make decision on the HTTP status code for its auto-filtering mechanism. It should take the content-length into consideration as well. So, that the 98% of HTTP status 404 with responses Content-Length: 0 should be hidden, and the 2% of responses of HTTP status 404 with the Content-Length: 50 should be displayed to the user. |
when you use the i'm guessing that the assumption for this to work is the user pointed the tool at a valid endpoint to begin with |
notes for whoever implements this:
ffuf performs the following actions:
based on the actions the code takes, the example provided in the ticket would have requested a bunch of non-existent pages, each (presumably) having a content length of 0. Then when /api/ was requested, it had a content length of 50, allowing it to slide through the filter(s). this logic falls squarely in feroxbuster's heuristics module. implementation should roughly follow the steps outlined above. |
somewhat related: #635 |
happened to find a machine that replied in this exact way 😉 i reworked how heuristics picks up 404-like pages, to include the traditional wildcards. I tested the new logic against that machine and it works as desired. I'm considering just making auto-detection of 404s and allowing all status codes by default. |
@all-contributors add @pich4ya for ideas |
I've put up a pull request to add @pich4ya! 🎉 |
feroxbuster performs auto-filtering based on HTTP response. By default, it will return result for the HTTP status code 200 204 301 302 307 308 401 403 405.
During a HackTheBox machine hacking, a machine contains the path /api/, in which, it returns HTTP status code 404, as same as other non-existing paths, but it contains unique/suspicious content length.
For example,
and non-existing pages.
With ffuf (https://github.com/ffuf/ffuf), we can use the
-mc all -ac
options to handle this specific case automatically.However, feroxbuster does not contain such automatic mechanism to auto-filter HTTP Status Code 404 with Content-Length: 50 and Content-Length: 0. I know we can do manual
/api/
and set--filter-size
, but we cannot know beforehand if the web server will return which Content-Length for such existing paths like/api/
with the HTTP Status Code 404.I do like
--smart
option on feroxbuster which does not exist in ffuf, however, feroxbuster does not have-mc all -ac
.Please consider adding them.
The text was updated successfully, but these errors were encountered: