Misconfigured CORS
Summary
Misconfigured CORS allows unauthorized domains to access resources and retrieve their response.
Testing methodology
Description
A misconfigured CORS policy allows for requests to be issued from unauthorized domains, potentially exposing sensitive data to malicious actors. This vulnerability occurs when the 'Access-Control-Allow-Origin' header is set to a wildcard (*) or a domain that is not trusted, allowing cross-origin requests.
Remediations
- Configure the CORS policy to only allow trusted domains to make cross-origin requests.
- Avoid using the wildcard (*) or overly-permissive values as allowed domains in the 'Access-Control-Allow-Origin' header.
Usually follows
Usually precedes
Affected components
- Sensitive Information