PortSwigger / BChecks

BChecks collection for Burp Suite Professional and Burp Suite Enterprise Edition
https://portswigger.net/burp/documentation/scanner/bchecks
GNU Lesser General Public License v3.0
588 stars 104 forks source link

Propose check to detect misconfiguration for CORS credentials requested. #207

Closed righettod closed 1 month ago

righettod commented 1 month ago

Description

This PR propose a bcheck to detect invalid CORS configuration for credentialed requests.

Indeed, the server must not specify the * wildcard for the Access-Control-Allow-Origin response-header value, but must instead specify an explicit origin.

Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#requests_with_credentials

File was validated with the latest version of the checker:

image

BCheck Contributions

Thanks in advance 😃

Hannah-PortSwigger commented 1 month ago

Thank you for your submission! We're in the process of reviewing your BCheck, and should either merge this or provide you with some feedback soon.

If there's anything else we can help with in the meantime, please let us know.

righettod commented 1 month ago

Hi @Hannah-PortSwigger

Thanks a lot for the feedback 😃

Have a nice day.

righettod commented 1 month ago

You are welcome 😃

Thanks a lot for the review and for this feature ❤️

righettod commented 1 month ago

Thanks a lot ❤️