Skip to content
XSS Disclosed report Intermediate

XSS on www.██████ alerts and a number of other pages

An error dialog on the alerts page displayed an unsanitised ID value, allowing stored cross-site scripting. An attacker could trick a victim into visiting a malicious page that triggers the error and then redirects to the alerts page, executing script in the victim's browser.

d0nut Follow

Originally disclosed on HackerOne

  • Triaged in 8 hours
  • Fixed in 6 months
  • Disclosed after 12 months

Summary: If an action on ███████ results in an error, an error dialog is shown. This dialog, in certain scenarios, is vulnerable to stored XSS due to a lack of sanitization.

Description: In this specific example, I'll be using a GET endpoint that attempts to delete alerts based on an ID supplied. If the ID does not belong to the user, an error is displayed containing the ID. This ID is not sanitized when displayed in the error dialog.

Example PoC: https://www.██████████/alerts/delete/id/1234<img+src+onerror%3d'alert(1)'>

The previous PoC appears to be reflected but it is actually stored. Here's a PoC to prove that: https://████████pythonanywhere.com/poc/xss/dod/4rspEdWG1tqA2pQ4bY4C

Impact

XSS

Step-by-step Reproduction Instructions

  1. Trick victim to visiting attacker.com
  2. Attacker.com makes a GET request to https://www.████/alerts/delete/id/1234<img+src+onerror%3d'<PAYLOAD>'>
  3. Redirect victim to https://www.██████████/alerts/ or similar (like https://www.████████/member/options)

Product, Version, and Configuration (If applicable)

https://www.█████

Suggested Mitigation/Remediation Actions

Sanitization of the error message.

Impact

XSS

The original report as published on HackerOne, by d0nut. 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

The error dialog displayed the user-supplied ID without sanitisation, leading to stored XSS.

What the attacker needed

Victim visits attacker-controlled page

The fix

The error message should be sanitised before being displayed.

How it was found

  1. Trick the victim into visiting an attacker-controlled page.
  2. From that page, make a GET request to the delete-alerts endpoint with a malicious ID.
  3. Redirect the victim to the alerts page or another page where the error dialog appears.

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.

When a website shows an error message, it sometimes includes text that came from the user. If that text is not cleaned, an attacker can put code in it. That code then runs in the victim's browser, which is called 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.

More by d0nut

View all

2 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.