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
635 stars 112 forks source link

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

Closed righettod closed 6 months ago

righettod commented 6 months 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 6 months 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 6 months ago

Hi @Hannah-PortSwigger

Thanks a lot for the feedback 😃

Have a nice day.

righettod commented 6 months ago

You are welcome 😃

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

righettod commented 6 months ago

Thanks a lot ❤️