Reflected XSS via File Upload on Sony
A file upload feature on a Sony subdomain allowed a crafted PDF containing JavaScript to be uploaded and then served publicly, executing the script when the file's URL was visited. An attacker could use this reflected cross-site scripting to steal a victim's session and perform unauthorised actions.
medium.com
Published on medium.com
This is my first writeup! I discovered a reflected XSS vulnerability via the file upload feature on a Sony subdomain.
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 file upload feature did not validate or sanitise the file content, and the uploaded file was served without proper output encoding, allowing script execution.
Impact
The reflected XSS could lead to account takeover via session theft, phishing attacks, and unauthorised actions in the context of the victim's session.
What the attacker needed
Victim clicks a link; attacker uploads a crafted file
How it was found
- Go to the vulnerable application URL.
- Complete all required form fields.
- Click Continue to proceed.
- Upload the crafted PDF file.
- Retrieve the public URL of the uploaded file.
- Share the link with a target; the payload triggers upon visiting.
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.
When you upload a file to a website, the site usually stores it and gives you a link to view it. Here, the site did not check the file properly, so a file containing a small script (code that runs in the browser) was accepted. When someone opened the link to that file, the script ran in their browser as if it came from the Sony site, which could let an attacker act as that user.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.