这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@noraj
Copy link
Contributor

@noraj noraj commented Jan 20, 2022

Description

Add 500 Internal Server Error to list of status codes matched by default

Why?

500 status code is frequently observed when the app doesn't behave normally which is often interesting for a security auditor

Not having 500 matched by default may let us miss some important stuff

During an assessment I first miss a 500 status with the default matcher I then found with -mc all -fc 400.

There is no option to add a matching status code (matching += 500) so either we have to do something like -mc all -fc 400 or to specify the full matching list again eg. -mc 200,204,301,302,307,401,403,405,500. That why having 500 in the default list, as 403 and 401 if it generates too much false positives it's easier to have it by default and exclude it with -fc 500 then.

I added it it in my ~/.ffufrc but I think it's better to have it by default.

@noraj noraj changed the title Code 500 500 Internal Server Error -> default matched status codes Jan 20, 2022
Copy link
Member

@joohoi joohoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request, I agree with your reasoning here, and the PR looks good

@joohoi joohoi merged commit 3cc6557 into ffuf:master Jan 22, 2022
@noraj noraj deleted the code-500 branch January 22, 2022 22:11
joohoi pushed a commit that referenced this pull request Feb 3, 2023
* match 500 status code responses by default

* include 500 into default match codes

* match 500: update help message

* Update CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants