Microsoft Azure Account Takeover via DOM-based XSS in Cosmos DB Explorer
The Azure Cosmos DB Explorer improperly accepted cross-origin messages from certain domains, letting a remote attacker deliver a DOM-based XSS payload and take over a victim's Azure account.
Published on starlabs.sg
Upon finding the vulnerability, our team member, Ngo Wei Lin (@Creastery), immediately reported it to the Microsoft Security Response Center (MSRC) on 19th March 2022, who fixed the important issue with a fix commited in the repo within seven days, which is impressive and a much faster response than other Microsoft…
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
A remote attacker could take over a victim's Azure account by delivering a DOM-based XSS payload via a cross-origin message.
What the attacker needed
Victim uses Azure Cosmos DB Explorer; attacker can send cross-origin messages from a certain…
The fix
The issue was fixed with a commit in the repo within seven days, and the fix was pushed to Azure Cosmos DB Explorer.
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.
A website receives messages from other pages and should only trust known addresses. Here the check was flawed, so a similar-looking domain was accepted, and the attacker sent a message that ran harmful code in the victim's browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.