How a Simple Self XSS Became Stored XSS
The artist name field was rendered unsafely in a confirmation email and in the user's own profile settings, causing HTML injection and self-XSS. After enabling the 'Open to Collaboration' feature, the stored payload executed on the public profile when a visitor clicked the collaboration icon, turning it into stored XSS.
medium.com
Published on medium.com
Hey Hackers, I am Parth Narula. A penetration tester, bug hunter, red teamer and overall a security researcher.
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 inserted user-controlled artist name into HTML contexts (email template, profile settings, and public profile collaboration popup) without proper output encoding or sanitisation.
Impact
Any user who visited the public profile and clicked the collaboration icon could trigger the stored XSS payload, potentially allowing session theft or other actions in the victim's context.
What the attacker needed
Attacker creates an account; attacker sets artist name payload; attacker enables collaboration; victim visits public profile
How it was found
- Create an account and enter an HTML injection payload in the artist name field during signup.
- Receive the confirmation email and observe that the HTML payload is rendered in the email body.
- Go to profile settings, update the artist name with an XSS payload, save, and refresh to see it execute as self-XSS.
- Visit the public profile page and note that the payload does not execute there by default.
- Enable the 'Open to Collaboration' setting (set to 'Remotely or in person') and save.
- Return to the public profile, click the new collaboration icon, and observe the XSS payload execute.
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 application let users type a name that was later shown on web pages and in emails without cleaning it up. An attacker could put a small script in that name, and when someone else viewed the public profile and clicked a special icon, the script ran in their browser. This is called cross-site scripting (XSS), and it can let an attacker steal session data or act as the victim.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.