The Secret sauce of bug bounty
A stored cross-site scripting (XSS) vulnerability in user profile fields allowed an attacker to execute JavaScript in victims' browsers. By chaining this with a file upload to a CDN and an API that lacked CSRF protection, the attacker could change victims' email addresses and take over their accounts.
Published on web.archive.org
{{media:0}}
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 application failed to sanitise user input in profile fields before rendering it, allowing AngularJS template injection that led to stored XSS.
Impact
An attacker could take over any user account by changing the victim's email address, and could automate the attack to take over all accounts.
What the attacker needed
Attacker has an account; victim views attacker's profile or invitation; victim is logged in
The fix
The bug was fixed according to the timeline.
How it was found
- Create an account and inject a payload into the first name and last name fields, splitting it to bypass a character limit.
- Observe that the payload executes as stored XSS when the profile is viewed.
- Upload a malicious JavaScript file as a CV document to the target's CDN to bypass CORS restrictions.
- Place a payload in the job experience field that imports the uploaded script.
- Invite the victim or visit their profile to trigger the payload, which changes the victim's email address via the API.
- Use a script to automate inviting all users and taking over their accounts.
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.
The website let users put special code in their profile names that the site then ran as a program in other users' browsers. This let an attacker make other users' browsers do things without permission, like changing their email address, which led to account takeover.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.