Skip to content
XSS Write-up Intermediate

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.

iski Follow

Published on infosecwriteups.com

Free Link 🎈

Iski, on infosecwriteups.com

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

  1. Locate the feedback form at the support/feedback endpoint.
  2. Submit a payload containing an image tag with an onerror handler in the email field.
  3. Wait for an administrator to view the feedback submission in the internal email log.
  4. 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.

More by iski

View all

186 more disclosed reports, best first.

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.