Silent but Deadly: How Blind XSS in Email Notifications Gave Me R
A blind XSS vulnerability existed in the email field of a feedback form, which was rendered unsanitised in an internal admin email log. An attacker could execute JavaScript in an admin's browser and steal session cookies, potentially leading to account takeover.
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 application failed to sanitise or encode user-supplied input (the email field) before rendering it in an internal admin dashboard, allowing script injection.
Impact
The attacker could steal an admin session cookie and potentially chain this to CSRF or full account takeover.
What the attacker needed
Access to the feedback form; victim (admin) views the submission
The fix
The issue was fixed by sanitising all user-controlled fields, avoiding direct rendering in admin dashboards, and using CSP and output encoding.
How it was found
- Find the feedback form at the support/feedback endpoint.
- Submit a payload in the email field that loads an external script.
- Wait for an administrator to view the feedback submission in the internal email log.
- Observe the payload executing and exfiltrating the admin's session cookie to the attacker's server.
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.
When you type something into a form, the website should treat it as text, not as code. Here, the email field was saved and later shown to an administrator without cleaning it, so a malicious script hidden in the email ran in the admin's browser. That let the attacker steal the admin's login cookie, which is like a temporary key to the account.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.