I Found a CORS Misconfiguration on a Banking API. The Browser Was
The production API of a banking infrastructure platform returned a wildcard CORS origin and explicitly allowed the Authorization header and write methods. An attacker who obtained a bearer token could use a malicious website to read sensitive data and create, modify or delete records cross-origin.
Published on medium.com
I was doing routine recon on a fintech platform — intercepting traffic, mapping endpoints, nothing special. Then I fired an OPTIONS request at their production API with a random origin header just to see what came back.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the API was configured with a wildcard Access-Control-Allow-Origin and explicitly allowed the Authorization header and write methods, rather than restricting origins to trusted sites.
Impact
With a valid token, a malicious website could silently read visitor PII, chat transcripts, session tokens and queue state, and could also create, modify or delete records; the text does not say whether the issue was fixed.
What the attacker needed
A valid bearer token; victim visits attacker-controlled site
How it was found
- Send an OPTIONS request to the production API with a random Origin header.
- Observe the CORS response headers allowing any origin, the Authorization header and write methods.
- Write a fetch call from a controlled domain that includes a bearer token and reads the response.
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 write-up has not been written yet. The Original tab links to the source.
CORS is a browser rule that stops one website from reading data from another unless the other site says it is allowed. This API told every website it was allowed, and it also accepted a login token sent by the attacker's page. So if someone stole a token, their website could read and change banking customer data.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.