Exploiting CORS misconfiguration and stealing auth token in Career.microsoft.com
The site had a CORS misconfiguration on its social login endpoint that allowed a malicious site to read sensitive user data. An attacker could harvest the logged-in user's username, email address and authentication token.
Published on thesecurityexperts.wordpress.com
I was doing a recon on one of microsoft subdomain(career.microsoft.com) a few months back for any security issues.I noticed they have a social login plugin for signing in.I found that there was a misconfiguration in CORS header which can be exploited to harvest sensitive information including the logged in user’s…
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 CORS policy reflected or trusted an arbitrary origin and allowed credentials, so any site could read authenticated responses.
Impact
An attacker could steal the victim's username, email address and authentication token, which could lead to account takeover.
What the attacker needed
Victim is logged in; victim visits attacker page
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 normally stops one website from reading data from another site. Here that rule was set too loosely, so a malicious page could read the victim's account details and login token. The attacker only needed the victim to visit a crafted page while logged in.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.