One Endpoint to Rule Them All: How I Chained 3 Bugs into Full Acc
A blind cross-site scripting (XSS) vulnerability existed in the email field of a feedback form, which was rendered unsanitised in an internal admin panel. An attacker could execute arbitrary JavaScript in an administrator'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 (specifically the email field) before rendering it in the internal admin panel, allowing script injection.
Impact
An attacker could steal an administrator's session cookie and potentially achieve full account takeover, though the text only demonstrates cookie theft and suggests chaining to CSRF or account takeover.
What the attacker needed
Access to the feedback form; victim (admin) views the submission
The fix
The application should sanitise and encode all user-controlled input, including email fields, before rendering it in admin dashboards, and should implement CSP and CSRF protections.
How it was found
- Locate the feedback form at the support/feedback endpoint.
- Submit a payload containing an image tag with an onerror handler in the email field.
- 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 an external 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.
The feedback form saved whatever was typed into the email field and later showed it to administrators without cleaning it. Because the email field accepted HTML code, an attacker could insert a small script that ran in the admin's browser when the admin viewed the feedback. This let the attacker steal the admin's login cookie, which could be used to take over 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.