Stored Xss On "https://www.question.com/"
A stored cross-site scripting flaw was reported on a question-and-answer site, where a script placed in a submitted question executed when the resulting page was viewed. An attacker could run script in the browser of anyone who opened the affected page.
Originally disclosed on HackerOne
- Triaged in 21 hours
- Fixed in 22 hours
- Disclosed after 18 months
Summary by the researcher
POC Video :- https://youtu.be/HLshcsX1GwU?si=BM0VLLNjbM8ZwBbi
The report
Hi Team I'm Find the Stored Xss On your Site
Stored XSS, also known as persistent XSS, is the more damaging than non-persistent XSS. It occurs when a malicious script is injected directly into a vulnerable web application.
Steps To Reproduce:
- Go To Your Site https://www.question.com/
- Nave https://www.question.com/ask/
- Ask a Question Enter the Payload
<iframe onload=alert(document.domail)> - Click to Sumit Question & Redirect to https://www.question.com/iframe-onload-alert-9-1631390.html
- XSS was Tigred you See the Popup
POC
████
Tested on Firefox and chrome.
Impact
The attacker can steal data from whoever checks the report.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the submitted question content was saved and later rendered without proper encoding or sanitisation, so markup such as an iframe with an event handler executed.
Impact
An attacker could run script in the browser of anyone who viewed the crafted question page.
What the attacker needed
Ability to submit a question; victim views the question page
How it was found
- Open the site's home page.
- Go to the ask-a-question page.
- Submit a question containing an iframe with an onload handler.
- Submit the question and get redirected to the generated page.
- Observe the alert popup confirming script execution.
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 report has not been written yet. The Original tab links to the source.
XSS is when a site lets someone put code into a page that other people then load. Here the code was saved with a submitted question, so it ran again for later visitors.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.