Skip to content
XSS Disclosed report Beginner

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.

vidaamuyarchi Follow

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:

  1. Go To Your Site https://www.question.com/
  2. Nave https://www.question.com/ask/
  3. Ask a Question Enter the Payload <iframe onload=alert(document.domail)>
  4. Click to Sumit Question & Redirect to https://www.question.com/iframe-onload-alert-9-1631390.html
  5. XSS was Tigred you See the Popup

POC

████

Tested on Firefox and chrome.

Impact

The attacker can steal data from whoever checks the report.

The original report as published on HackerOne, by vidaamuyarchi. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Open the site's home page.
  2. Go to the ask-a-question page.
  3. Submit a question containing an iframe with an onload handler.
  4. Submit the question and get redirected to the generated page.
  5. 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.

More by vidaamuyarchi

View all

1 more disclosed report, best first.

More from Drugs.com

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.