Skip to content
XSS Write-up Beginner

How a Simple Comment Box Almost Cost a Fintech Giant $15,000

A feedback form accepted HTML in its message field and stored it without sanitisation, so a script ran in the browser of a support employee who opened the ticket. The attacker could then use the employee's session cookie to view bank details, reset transaction PINs and reach internal API keys.

21bec131 Follow

Published on medium.com

The thrill of bug hunting isn’t in the lines of code; it’s in the silence of the “Aha!” moment.

T4nv1, on medium.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 feedback message was stored and later rendered in an internal dashboard without sanitisation or a restrictive Content Security Policy.

Impact

The stolen session allowed the attacker to view user bank details, reset transaction PINs and access internal API keys, though the text does not say whether these actions were actually performed.

What the attacker needed

Access to the beta staging environment; a feedback form that accepts HTML; a support employee opens the ticket

The fix

The company fixed the issue within four hours by correcting the Content Security Policy and input sanitisation.

How it was found

  1. Find the feedback button in the footer of the beta staging environment.
  2. Intercept the feedback POST request and note the subject, message and user_id parameters.
  3. Change user_id to another value and observe a 403 response.
  4. Put a script into the message field and submit the feedback.
  5. Wait for a support employee to open the ticket in the internal dashboard.
  6. Receive the employee's session cookie on 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.

A feedback form let people type text that the site treated as code rather than plain words. When a support worker opened the feedback inside the company's own tools, that code ran in their browser and quietly sent their login session to the attacker. With that session the attacker could act as the employee without ever knowing a password.

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 21bec131

View all

2 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.