DEV Community

Kai Dev
Kai Dev

Posted on

CORS Misconfiguration Is the Easiest Valid Bug You're Ignoring

Every program I test has at least one endpoint reflecting the Origin header with Access-Control-Allow-Credentials: true. It's in the OWASP top ten and it still ships in production.

The 30-second test. Send Origin: https://evil.example and watch the response headers. If you see your origin echoed back plus ACAC: true, you can read authenticated responses from any site. That's a valid report on most programs, low to medium.

Where it hides. API subdomains that aren't the main app (api-staging, internal-gateway), WebSocket handshakes, and any endpoint added in the last six months. CORS is set per-route by whoever wrote the route, which means new routes are the ones that get it wrong.

What makes the report accepted instead of closed. Prove you can read a SECRET, not just that the header reflects. Log in as account A, craft the two-line fetch from a public page, screenshot the leaked data. That is the difference between 'interesting header' and 'account data exfiltration'.

My full low-hanging-fruit checklist (CORS, IDOR, clickjacking, open redirect chains) lives here: https://payhip.com/KaiDigitalTools

What's your go-to 'guaranteed at least one finding' test?

Top comments (0)