A $150 Bug in My Methodology!
A simple input form was vulnerable to stored cross-site scripting, allowing injected JavaScript to execute for every visitor. The author claims this could be used to steal session cookies and take over user accounts.
I wasn’t looking for anything special — I was just testing a few websites for vulnerabilities, as I usually do. I had my laptop open, a cup of coffee in hand, and Burp Suite running in the background.
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 stored user input and rendered it without proper output encoding or sanitisation.
Impact
The injected script could execute for every visitor, potentially allowing session cookie theft and account takeover, though the text only claims this as a possibility.
What the attacker needed
Ability to submit input to a form; victim visits the affected page
How it was found
- Enter basic text into a simple input form.
- Inject a small JavaScript payload to test if the filter blocks it.
- Submit the form and observe no immediate alert.
- Revisit the page later and see the alert box pop up.
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 website saved whatever a user typed into a form and later showed it to other visitors without cleaning it. Because the saved text could include JavaScript code, that code ran in other people's browsers. This is called stored cross-site scripting (XSS).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.