hackXpert labs
All labs › CORS

🌐 CORS

A reflected origin plus credentials means somebody else can read your responses. Test with a weird origin and watch what comes back.

2 labs and targetsfree, no accountlesson included
How misconfiguration actually works — taught by The XSS Rat

What it is

Nothing here is a coding mistake. A wildcard CORS origin, a CSP with unsafe-inline, a Host header the app trusts, an open redirect - each is a setting that someone chose, and each one is a lever for a bigger bug rather than a finding on its own.

How I attack it

  1. Read the response headers before you touch anything. The misconfiguration is usually sitting in plain sight.
  2. For CORS, test with a weird origin and watch whether it is reflected along with credentials.
  3. For an open redirect, ask what trusts that domain: OAuth flows, password reset links, SSO callbacks.
  4. Chain it. An open redirect plus an OAuth flow is account takeover; a weak CSP plus a sink is XSS.

Learn it from The XSS Rat

Free reference reading

The set 2

Nothing matches thatClear the filter to see everything again.