In-depth lesson · CORS
Tips for beginners
Every point the CORS reports back under this heading, best-backed first, each with the reports it is seen in.
-
Stay in scope. Several reports in this set concern browser internals, framework middleware and third-party deployments, and a misconfiguration on an out-of-scope subdomain or a vendor component may be rejected. Confirm the asset is in scope and that the vulnerable component is the program's responsibility before you spend time building a proof.
Seen in 7 reports
-
Begin with endpoints that return something worth stealing: session identifiers, API tokens, CSRF nonces, email addresses, subscription or ticket details. A permissive policy on a page with no sensitive content is hard to turn into a valid report, so pick targets where the response itself is the impact.
Seen in 6 reports
-
Send a request with an Origin header for a domain you control and look at what comes back. If your origin is reflected and credentials are allowed, you have the core finding. Then confirm it from an actual page in a browser with a signed-in session, because the header alone does not prove the browser will let you read the response.
Seen in 6 reports
-
Show impact with the data, not the header. Demonstrate that a logged-in victim visiting your page lets you read a specific sensitive value and, where the evidence supports it, use that value for a concrete action such as changing a password or taking over an account. A reflected header with no readable sensitive data is usually not worth reporting.
Seen in 5 reports
-
Try the matching weaknesses deliberately. Register or use a domain that merely ends with the trusted name, one that contains the trusted string, and one that begins with the trusted domain. Compare which are reflected or redirected. These tests distinguish a real allowlist from suffix, substring or prefix matching.
Seen in 4 reports
-
Check the WordPress REST API index and oEmbed endpoints on blog and main domains with an arbitrary Origin header, then attempt a credentialed cross-origin fetch. These endpoints have a track record of reflecting the Origin without validating it, and they are common enough that a first hunt can start there.
Seen in 4 reports
-
Avoid the common beginner mistakes: reporting a wildcard policy on a public, unauthenticated endpoint as if it were credential theft; reporting a reflected Origin without checking whether credentials are actually allowed; and reporting a theoretical chain you have not demonstrated. Also check whether the endpoint requires a preflight and how redirects are handled, since those details decide whether the browser will follow through.
Seen in 4 reports
-
Do not ignore local software. Find the local port used by a developer tool or extension and try connecting from a web page to its HTTP or WebSocket interface, and consider DNS rebinding to reach it remotely. For extensions, try sending a message from a content script to the background page specifying an arbitrary URL and headers, and observe whether the cross-origin response comes back.
Seen in 3 reports
-
Check error pages and admin hosts, not just the documented API. Broad URL patterns in a cross-origin filter can cover a 404 page that contains a CSRF token, and an admin host may reflect an arbitrary subdomain of the same parent domain with credentials allowed. Read the token and try the sensitive action to show impact.
Seen in 3 reports
-
Test OAuth bridges by embedding one with a legitimate consumer key and host and using messaging from the embedding page to try to retrieve credentials. Also try suppressing the Referer header, since a bridge that treats a missing Referer as a match will accept you. Validate only what the evidence shows: the check was on the host parameter, not the embedding page.
-
Look at identity-aware proxies and single sign-on flows. Request a protected domain with an arbitrary Origin and see whether it is reflected with credentials allowed, then try reading a signed-in user's email. For a user not yet signed in, the sign-in window can be opened and the proxy polled until login completes.
Seen in 1 report
-
Check SockJS information endpoints with an arbitrary Origin. A wildcard policy on a response that does not need credentials is a weaker finding, so be precise about what it allows and do not overstate it as credential theft.
Seen in 1 report
-
When a SameSite cookie setting blocks your cross-origin read, look for a self-XSS on a user-controlled subdomain to chain with the misconfiguration. Report the chain as one finding and explain each step, because the misconfiguration alone may be dismissed as unexploitable.
Seen in 1 report
-
Watch for responses that carry personal data without cache-control headers while the cross-origin policy lets any origin read them. Cached authenticated responses can be read by another site, which is a distinct impact from a live credentialed fetch and worth stating separately.
Seen in 1 report