In-depth lesson · bug class
CORS misconfiguration
What every disclosed CORS report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.
- reports cited in this lesson
- 87
- median public bounty
- $1,000
Overview
What it is and why programs pay for it.
A cross-origin misconfiguration is a server or client component that tells the browser to let other websites read its responses when it should not. In the reports behind this lesson the usual shape is a server that copies whatever Origin the request carries into the cross-origin response header and also permits credentials, instead of checking that origin against a fixed list of trusted sites. The browser then does exactly what it was told: a page on an attacker-controlled site can make a request to the vulnerable service with the victim's cookies attached and read the answer. The same class of mistake appears in looser forms, such as suffix or substring matching on the trusted domain, wildcard policies on endpoints that carry user data, and local daemons or extensions that never check where a request came from.
Programs care because the impact is often direct account compromise rather than a theoretical leak. Reports in this set show misconfigurations leading to reading a session identifier and taking over an account, reading a temporary mail token and using it to redirect a victim's share codes, reading admin login pages and their CSRF nonces to change an admin password, and leaking personal data such as email addresses and subscription details. Some reports go further and describe stealing money or full account takeover through a chain. Because the flaw sits in a response header, it is easy to miss in normal testing and easy to fix badly, which is why it keeps appearing.
It turns up most often on API endpoints that return personal or session data, on WordPress REST API and oEmbed endpoints, on identity-aware proxies and single sign-on bridges, on OAuth bridges that check the host parameter but not the embedding page, on local JSON-RPC and WebSocket interfaces used by desktop tools and browser extensions, and on SockJS information endpoints configured to allow all origins. It also appears in framework middleware such as flask-cors, in HTML embeds that run with the parent site's origin, and in browser-level handling of service worker fetches and downloads. The common thread is a component that decides trust from something the requester controls, or that never makes the decision at all.
Seen in these reports26
-
$5,000
-
$4,000 Medium -
$3,134
Show 5 moreShow fewer
-
$3,000 Low -
$2,337 -
$1,500
-
$1,000
-
$550 Medium
How it works
The mechanics, as the reports show them.
Start with the browser's same-origin rule. A page on one site cannot normally read responses from another site. The cross-origin mechanism is the controlled exception: the server sends response headers naming which origins may read the response, and whether cookies and other credentials may be included. The browser enforces the decision, so the whole security property rests on the server making that decision correctly. When the server reflects the request's Origin value back and also allows credentials, it has effectively granted every site on the internet the same access as the user's own browser session.
The mistake usually comes from convenience. A developer wants several subdomains or a staging host to work, so instead of maintaining an exact allowlist they echo the incoming Origin, or they match on a suffix or substring of the trusted domain. Suffix matching without requiring a dot before the trusted name means any domain ending in those characters is trusted, and substring matching means any domain containing the trusted string is accepted. Prefix matching has the same failure in the other direction. Each of these turns a narrow permission into a broad one that an attacker can satisfy by registering a suitable domain.
A second family of mistakes is about which requests get the permissive treatment. Broad URL patterns in a cross-origin filter can cover error pages and admin hosts as well as the intended API, and an error page may contain a CSRF token that then becomes readable. Endpoints that return personal data may carry no cache-control headers, so a permissive policy lets another site read cached authenticated responses. Some servers allow credentials for unknown origins outright, and some reflect user-controlled headers or query parameters into response headers without sanitisation, which can expose further information to the cross-origin reader.
Non-browser components repeat the pattern. Local HTTP and WebSocket servers run by developer tools often have no authentication and no origin validation, so a web page can talk to them, and DNS rebinding can extend that reach. Browser extensions sometimes forward messages from content scripts to a privileged background page without checking the sender's origin, and the background page then uses attacker-supplied URLs and headers. Service worker fetch handlers have been found not to receive the same private network and mixed content checks as ordinary page fetches. Background download requests have been created without honouring the original request's credentials mode. In each case the trust boundary is crossed because the component assumes the caller is friendly.
OAuth and embedding flows add their own variants. A bridge may validate the host parameter against the registered domain but never check that the embedding page actually came from that domain, so a page elsewhere can use a legitimate consumer key and retrieve credentials through messaging. Another bridge treated a missing Referer header as a match and relied on Referer rather than the messaging target origin, so suppressing the header was enough. HTML embeds that run with the parent site's origin let their scripts read authenticated responses from the parent. The fix in all these cases is to validate the actual origin of the embedding or sending page and to address messages to a specific target origin.
What makes all of this possible is that the attacker only needs to get a victim to load a page. No interaction with the vulnerable service is required beyond the victim already being signed in. The attacker's page issues the request, the browser attaches cookies because the server said credentials were allowed, and the response is readable because the server named the attacker's origin. Where a SameSite cookie setting blocks the read, hunters have chained the misconfiguration with a self-XSS on a user-controlled subdomain to get around the restriction. That is why the impact is usually described in terms of what the endpoint returns: session identifiers, tokens, CSRF nonces, email addresses and other personal data.
Seen in these reports27
-
$5,000
-
$1,000
-
$10,000 High
Show 5 moreShow fewer
-
$10,000 -
$4,000 Medium -
$3,600 -
$3,134 -
$3,134
Year by year
8 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2014 | 3 |
|---|---|
| 2015 | 5 |
| 2016 | 3 |
| 2017 | 13 |
| 2018 | 20 |
| 2019 | 14 |
| 2020 | 15 |
| 2021 | 10 |
| 2022 | 7 |
| 2023 | 5 |
| 2024 | 14 |
| 2025 | 35 |
| 2026 | 55 |
-
2026
New this year4
- Testing whether a browser's cross-origin handling loses information or mishandles authorization in newer APIs first appears in the disclosed reports this year.
- Sending a request to an admin host with an Origin header pointing at an arbitrary subdomain of the same parent domain and checking for reflection with credentials allowed first appears in the disclosed reports this year.
- From a page on a trusted subdomain, fetching the admin login page with credentials and reading the CSRF nonce to change the admin password first appears in the disclosed reports this year.
Kept working2
- Hunters checked targets for cross-origin misconfigurations that disclosed user information, as seen in the disclosed reports.
- Checking the Azure Arc SQL Server extension for a permissive cross-domain policy with untrusted domains was a specific target in the disclosed reports.
Turned up less4
- The pattern of servers reflecting the Origin header with credentials allowed on API and WordPress endpoints, common in earlier years, is not seen in the disclosed reports this year.
- Testing browser cross-origin handling in service workers, Blink, the download manager and extension port filtering for bypasses, seen in earlier years, is not present in the disclosed reports this year.
-
2025
New this year4
- Testing flask-cors path matching with differing case and regex-style paths first appears in the disclosed reports this year.
- Starting a background fetch with credentials set to omit against a wildcard cross-origin site and checking whether cookies are still sent first appears in the disclosed reports this year.
- Using DNS rebinding to reach a developer tool extension's unauthenticated local interface from a web page first appears in the disclosed reports this year.
Kept working3
- Hunters checked targets for cross-origin misconfigurations that disclosed user information, as seen in the disclosed reports.
- Reports increasingly concern open source libraries and browser APIs rather than single web applications, as noted in the disclosed reports.
Turned up less4
- The pattern of servers reflecting the Origin header with credentials allowed on API and WordPress endpoints, common in earlier years, is not seen in the disclosed reports this year.
- Testing browser cross-origin handling in service workers, Blink, the download manager and extension port filtering for bypasses, seen in earlier years, is not present in the disclosed reports this year.
-
2024
New this year1
- Installing a service worker that intercepts fetch events and testing private network access without preflight or user confirmation first appears in the disclosed reports this year.
Turned up less4
- The pattern of servers reflecting the Origin header with credentials allowed on API and WordPress endpoints, common in earlier years, is not seen in the disclosed reports this year.
- Testing browser cross-origin handling in service workers, Blink, the download manager and extension port filtering for bypasses, seen in earlier years, is not present in the disclosed reports this year.
Reports from 20241
-
$3,000 Low
Earlier years5
Where it is found
2The features and places the reports found it in, most-reported first.
-
WordPress REST API and oEmbed endpoints appear on blog and main domains.
Seen in 4 reports
-
SockJS information endpoints are configured to allow all origins.
Seen in 1 report
Technologies in these reports16
Root causes
22The mistakes in the code or configuration behind the reports.
-
The server reflected the request Origin into the cross-origin header and allowed credentials instead of checking against a trusted list.
Seen in 6 reports
-
The WordPress REST API or server configuration reflected the request Origin without validating it against an allowlist.
Seen in 4 reports
-
The origin check used a suffix match on the trusted domain instead of requiring a dot before it, so any domain ending in those characters was trusted.
Seen in 2 reports
-
The background fetch download request was created without setting the request initiator, so the credentials mode of the original request was not honoured.
Seen in 2 reports
-
The server echoed the request Origin whenever it ended in the trusted parent domain and always allowed credentials instead of checking an exact allowlist.
Seen in 2 reports
Things to try
The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.
ticked in this lesson
Named third-party products and platforms
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
-
$257 Medium
-
API endpoints and token disclosure
of 3 ticked-
Seen in 6 reports
-
Seen in 1 report
Browser and extension cross-origin handling
of 3 ticked-
Seen in 6 reports
-
Seen in 2 reports
-
Seen in 2 reports
Chaining with CSRF, XSS and account takeover
of 3 ticked-
Seen in 2 reports
-
Seen in 1 report
Bypasses and variations
2How reports got past filters, encoders and other defences.
-
Chain a cross-origin misconfiguration with a self-XSS on a user-controlled subdomain to get around the SameSite cookie restriction.
Seen in 1 report
-
Use a specially crafted domain containing special characters that some browsers accept to exploit subdomain trust.
Seen in 1 report
Payouts
27 paidPublic bounties in US dollars, from the data. 27 of 250 reports show an amount.
- a quarter paid up to
- $500
- median
- $1,000
- three quarters paid up to
- $3,067
- highest
- $10k
One in ten paid reports was paid $4,400 or more.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| Critical | 1 | 0 | None paid | None |
| High | 44 | 2 | $5,250 | $10k |
| Medium | 42 | 7 | $550 | $4,000 |
| Low | 13 | 4 | $500 | $3,000 |
| Informational | 6 | 0 | None paid | None |
| Unrated | 144 | 14 | $1,500 | $10k |
Highest-paid reports5
-
$10,000 -
$10,000 High -
$5,000
-
$4,000 Medium -
$3,600
Typical fixes
14How programs fixed it, as the reports describe.
-
Check the origin against an exact allowlist rather than reflecting it, and do not allow credentials for unknown origins.
Seen in 12 reports
-
Fix case sensitivity, regex path matching and inconsistent matching in flask-cors.
Seen in 3 reports
-
Validate the embedding page's origin and use the postMessage target origin rather than relying on the Referer header.
-
Validate the sender's origin before forwarding messages from content scripts to the background page.
-
Honour the request's credentials mode when attaching cookies in background fetches.
Seen in 2 reports
Tips for beginners
14Advice for a first hunt, drawn from the reports.
-
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
Guides and techniques
View allThe best explainers, cheat sheets and technique posts on CORS, from around the web.
-
Bypassing browser tracking protection for CORS misconfiguration abuseExplains how to bypass browser tracking protection to abuse CORS misconfigurations and read cross origin data.
Technique swarm.ptsecurity.com
-
CORS: A complete guide to exploiting advanced CORS misconfiguration vulnerabilitiesCovers CORS misconfigurations including weak regex bypasses, null origin abuse and reaching internal-only resources.
Explainer intigriti.com
-
15 Tools to Chain CORS, JSONP & XSS for Account Takeover: Master Your Pentesting GameLists tools for chaining CORS, JSONP and XSS flaws toward account takeover, useful but listy.
Technique medium.com
-
The Complete Guide to CORS (In)SecurityComprehensive guide to cross origin resource sharing misconfigurations and how to exploit them.
Explainer bedefended.com
-
CORS Misconfiguration Cross-Origin Resource Sharing: Wrong Settings Se User Data Steal Karo!Explains how loose CORS settings let attackers read user data and how to test for them.
Explainer medium.com
Keep learning
Where this lesson fits, and what to read next.
Lessons to read next
How this is made: our model read every listed CORS report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 27 Nov 2026 from 87 reports. All CORS reports.