CORS misconfiguration scanner

Permissive Cross-Origin Resource Sharing policies can expose authenticated JSON responses to arbitrary third-party domains. The scanner probes origins safely without cookies and inspects every CORS response header.

CORS patterns flagged during scanning

Rule IDPatternRisk
CORS-REFLECT-CREDSReflects untrusted Origin with Access-Control-Allow-Credentials: trueAllows malicious sites to read authenticated user responses in a victim browser.
CORS-WILDCARD-CREDENTIALSAccess-Control-Allow-Origin: * paired with credentialsIndicates broken CORS middleware that may fall back to dynamic reflection.
CORS-REFLECT-NOCREDSReflects untrusted Origin without credentialsExposes semi-private endpoints reachable via corporate network or bearer tokens.
CORS-WILDCARDAccess-Control-Allow-Origin: * on endpointsFlags public cross-origin access for verification against intended API behavior.

Run a focused CORS check on an API

web-vuln-scanner https://api.example.com --profile api --json cors-audit.json

Even when you pass -H "Authorization: ..." or -H "Cookie: ..." for authenticated crawling, the scanner strips credentials before sending CORS test origins so external probes stay isolated.

Frequently asked questions

Why is wildcard Access-Control-Allow-Origin sometimes intentional?

Public read-only endpoints such as unauthenticated status feeds or CDN fonts often intend public cross-origin access. Review CORS-WILDCARD findings against whether the endpoint serves sensitive data.

How do I fix CORS-REFLECT-CREDS in backend middleware?

Replace dynamic origin echoing with an explicit allowlist of exact HTTPS origins and omit Access-Control-Allow-Credentials unless cookies or browser auth headers are required.

Related guides

OpenAPI and REST API scanner

Pair CORS tests with OpenAPI contract and anonymous access checks.

HTTP cookie flag checker

Verify SameSite, Secure, and HttpOnly flags alongside cross-origin access.

OWASP ASVS automated checks

See how CORS findings map to OWASP ASVS V14.5 verification requirements.