How I got a 5000 $ Bounty from Microsoft
An unauthenticated internal Microsoft dashboard exposed an unrestricted file upload and a reflected XSS, allowing an attacker to upload malicious files and run script in the context of any Microsoft subdomain to steal logged-in users' credentials.
Published on medium.com
Hi there, my Name is Bashir aka BlackPanther87 and this is my second Writeup on Medium where I will share how I got a 5000 $ Bounty from Microsoft so without further wait let’s dive into the details.
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 missing authentication on an internal dashboard combined with no validation of uploaded files and unsanitised user input reflected into pages.
Impact
An attacker could upload malicious files and run script against any Microsoft subdomain to steal credentials of logged-in users; the site was disabled within 24 hours of the report.
What the attacker needed
No authentication needed; attacker finds the dashboard via Shodan; victim visits a crafted link or page
The fix
The site was disabled within 24 hours and a fix was later reported by Microsoft.
How it was found
- Search Shodan for subdomains of the target using an SSL filter.
- Open the discovered internal dashboard, which required no login.
- Navigate to the Dynamic Drawl section and open the MC Dashboard.
- Use the unrestricted file upload under Dynamic Drawler Cache Management to upload a payload.
- Scroll to the bottom of the MC Dashboard to trigger the reflected XSS.
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 file upload feature that anyone can reach without logging in lets an attacker put dangerous files on the server. A cross-site scripting (XSS) flaw lets an attacker run their own code in a victim's browser, so the victim's login cookies or session can be stolen. Here the dashboard was open to the internet with no login, and it also reflected input back as script.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.