From Learning to Splitting “alert”: My Accidental Self-XSS St
The name field of an email invitation feature rendered HTML without escaping, allowing stored script execution. The author could only trigger it in their own sent-emails view, so it was a stored self-XSS with limited impact.
Published on medium.com
I recently signed up for an online learning platform to explore AI, computing, and cloud technologies. Like most curious learners, I didn’t just want to consume content — I wanted to understand how things worked behind the scenes.
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
Impact
The script ran only in the author's own sent-emails page, and cookies were HttpOnly, so no other user was affected.
What the attacker needed
A free account; access to the invite feature
The fix
The name field should be HTML-escaped when rendered, rather than relying on keyword blocking.
How it was found
- Sign up and open the profile page's email invite feature.
- Send an invitation with HTML in the name field.
- Open the Sent Emails section to see the name rendered as HTML.
- Use a split keyword to bypass the filter and run script.
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 a website shows back text you typed without cleaning it first, your text can be treated as code. Here the name field allowed a small script to run, but only in the author's own page, so nobody else was affected.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.