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.
- 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
- Trick victim to visiting attacker.com
- Attacker.com makes a GET request to
https://www.████/alerts/delete/id/1234<img+src+onerror%3d'<PAYLOAD>'> - Redirect victim to
https://www.██████████/alerts/or similar (likehttps://www.████████/member/options)
Product, Version, and Configuration (If applicable)
https://www.█████
Suggested Mitigation/Remediation Actions
Sanitization of the error message.
Impact
XSS
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
- Trick the victim into visiting an attacker-controlled page.
- From that page, make a GET request to the delete-alerts endpoint with a malicious ID.
- 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.