Personal Browsing Gone Wild: XSS + IDOR in the Same Spot
A career site allowed uploading a PDF containing an XSS payload, which executed when the uploaded resume was viewed, and the resume URL used a sequential numeric identifier that could be changed to access other users' resumes. An attacker could run script in the context of the site and read other users' private documents.
medium.com
Published on medium.com
It’s been a while since I wrote my last article! I hope all my fellow hunters and infosec friends are doing great.
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 uploaded file was served inline without sanitising its contents, and the file identifier was a sequential number with no ownership check.
Impact
Attackers could potentially upload malicious files and sensitive personal documents like resumes could be exposed to unauthorised users.
What the attacker needed
Ability to upload a CV file; victim opens the uploaded resume; guessable numeric file identifier
How it was found
- Upload a PDF containing an XSS payload as a CV.
- Use the 'View Uploaded Resume' feature to open the file.
- Observe the XSS payload executing.
- Note the numeric ID in the resume URL.
- Change the numeric ID and observe a 404 for a nearby value.
- Fuzz the numeric ID range with Burp Intruder to find other users' resumes returning 200.
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 site let people upload a CV file and then showed it back in the browser. The file could contain hidden code that runs when someone opens it, and the link to each CV used a simple number that could be changed to see other people's CVs.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.