How I found XSS on amazon
A security profile name field on developer.amazon.com was reflected into the page source without proper encoding, allowing script execution. The attacker could only trigger the payload on their own account, making it a self-XSS, which was later escalated to a logout CSRF.
Published on medium.com
I recently started with “Bug Bounty” after hearing and reading so much about it. I felt like it might be worth the efforts to actually try it out & guess what?
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 reflected the security profile name into the page source without encoding it, allowing script execution.
Impact
The XSS was self-XSS only, so it could not harm other users; it was escalated to a logout CSRF, which was accepted as a valid issue.
What the attacker needed
A free account on developer.amazon.com; victim must be logged in (for CSRF escalation)
The fix
The issue was fixed according to the timeline.
How it was found
- Create an account on developer.amazon.com.
- Create a security profile with a script payload as the name.
- Call the Dash Services feature to trigger the payload.
- Observe the payload executing and document.cookie being accessed.
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.
Cross-site scripting (XSS) happens when a website puts user input into a page without cleaning it, so a browser runs it as code. Here the input only affected the person who typed it, which is called self-XSS and is not dangerous to others. The researcher then found a way to make other users log out, which is a cross-site request forgery (CSRF).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.