$$ For Full Account Take-over, 2fa bypass, Sensitive data Exposure via Critical CORS…
A CORS misconfiguration on an accounts endpoint reflected any origin that began with a trusted subdomain, allowing an attacker's site to read responses containing sensitive user data and a valid session token. The leaked session token could be injected into a browser to log in as the victim, bypassing 2FA and passkey authentication.
I haven’t been in the habit of writing about my findings, but I’ve decided to start sharing some of the more interesting ones from time to time. This is my first write-up for one of my last findings, so any suggestions or questions are more than welcome!
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
Impact
An attacker could read sensitive account data and a valid session token from any origin, then use that token to take over the victim's account, bypassing 2FA and passkey; the token also remained valid across a different IP address, contrary to the stated policy.
What the attacker needed
Victim visits attacker's page; victim has an account; attacker knows a trusted subdomain
The fix
The CORS issue was fixed by the vendor, but the report does not describe the exact change.
How it was found
- Create an account and enable 2FA and a passkey.
- Browse the dashboard while proxying traffic and find the allowed-accounts request.
- Replace the Origin header with a domain that starts with the trusted subdomain.
- Host a page that sends a credentialed request to the endpoint and reads the response.
- Inject the leaked session cookie into a new browser and refresh to become the victim.
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 lets a website say which other sites may read its responses. Here the site trusted any address that merely started with a trusted name, so an attacker's page could read private data and a login token. With that token, the attacker could sign in as the victim without needing their password or second factor.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.