Abuse-ception: How I Turned the Abuse Report Feature Into a Mass
The abuse report endpoint lacked authentication and sent emails to any reported user, allowing mass email spam and user enumeration via response differences. The details field was unsanitised, enabling blind XSS in the moderation email client.
Free Link 🎈
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 endpoint lacked authentication and input sanitisation, and its response differed for valid versus invalid users.
Impact
An attacker could send mass emails to any user, enumerate valid internal users, and execute blind XSS in the moderation email client.
What the attacker needed
No authentication required; Knowledge of target email addresses
The fix
The endpoint should require authentication, sanitise the details field, and return uniform responses to prevent user enumeration.
How it was found
- Discover the /api/v1/report-abuse endpoint that accepts JSON with reported_user, reason, and details.
- Send a POST request without authentication to trigger an email to the reported user and moderation team.
- Observe that a 404 response indicates a non-existent user while a 200 response indicates a valid user.
- Submit a payload in the details field and confirm script execution in the moderation email client via an out-of-band interaction.
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.
An abuse report form is meant to let people flag bad behaviour. Here, anyone could submit reports without logging in, and each report sent an email to the person being reported. Because the form also showed different responses for real and fake users, an attacker could check which email addresses had accounts, and because the details field was not cleaned, a script could run in the email client of the moderation team.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.