Misconfigured CORS

Misconfigured CORS

Knowledge Base>Misconfigured CORS

Summary

Misconfigured CORS allows unauthorized domains to access resources and retrieve their response.

Testing methodology

Identify Endpoints that Return Personal DataCredentials can be DeliveredObserve Allow-OriginObserve Allow-OriginEnumerate SubdomainsGenerate Request from Another DomainGenerate Request from Another SubdomainInject Cross-Origin Request in the Attacker's Domain
Authenticated Session
Private Information Returned
CORS Set with *
CORS Set with *.domain.com
Allow-Credentials: True
Ability to Inject Content in Subdomain
CORS Verified
Data Theft

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.

By using this site you agree to our Terms of Service and Privacy Policy.