CORS (Cross-Origin Resource Sharing) origin validation failure
The application reflected arbitrary Origin values in its CORS response and also allowed credentials, so any third-party site could make authenticated requests and read the responses. The report claims this effectively disables the same-origin policy for the affected service.
- Disclosed after 7 months
ATTACK DETAILS
Access-Control-Allow-Origin: https://sifchain.finance.evil.com Access-Control-Allow-Credentials: true Prefix origins are accepted (www.example.com trusts example.com.evil.com)
Vulnerability Description
CORS (Cross-Origin Resource Sharing) defines a mechanism to enable client-side cross-origin requests. This application is using CORS in an insecure way.
The web application fails to properly validate the Origin header (check Details section for more information) and returns the header Access-Control-Allow-Credentials: true.
In this configuration any website can issue requests made with user credentials and read the responses to these requests. Trusting arbitrary origins effectively disables the same-origin policy, allowing two-way interaction by third-party web sites
Impact
The impact of this vulnerability
Any website can issue requests made with user credentials and read the responses to these requests.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server validated the Origin header by prefix or substring matching instead of comparing it to an exact allowlist, and it also enabled credentialed CORS.
What the attacker needed
Victim visits an attacker page; victim is logged in
The fix
The server should compare the Origin header against an exact allowlist of trusted origins and should not return Access-Control-Allow-Credentials for untrusted origins.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Browsers normally stop one website from reading data from another site, a rule called the same-origin policy. CORS is a way for a site to say which other sites may read its responses. Here the site trusted any origin and also allowed cookies to be sent, so a malicious page could read private data belonging to a logged-in user.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.