Investigating a Potential Stored XSS During Community Platform Testing
The author tested a comment feature and found that user input was stored and later displayed, initially suggesting stored XSS. However, further investigation showed that output handling prevented the browser from executing the content as JavaScript, so no vulnerability was confirmed.
Published on medium.com
During routine web application security testing, I analyzed a comment functionality on a large community platform and identified behavior that initially appeared to indicate a potential Stored Cross-Site Scripting (XSS) vulnerability.
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 used output encoding or sanitisation to neutralise the stored content, preventing script execution.
What the attacker needed
Ability to post comments
How it was found
- Observe that user input in comments is accepted and stored by the backend.
- Submit test payloads commonly used during XSS assessments.
- View the discussion thread and see the stored content displayed.
- Investigate whether the content is rendered as active HTML or safely as text.
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.
Stored XSS is when a website saves something a user types (like a comment) and later shows it to other people without cleaning it up, so a malicious script could run in their browsers. Here, the tester found that comments were saved and shown, but the site had protections that stopped any script from actually running. So it was a false alarm, not a real bug.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.