Skip to content
XSS Write-up Intermediate

A Researcher’s Reflection on Identifying a Vulnerability in a C

A live JWT and an API xToken were stored client-side and could be accessed, and combined with a template-injection XSS, an attacker could retrieve these tokens and perform authenticated requests, leading to account takeover.

Tyreek Haynes Follow

Published on meetcyber.net

Most researchers bounce off enterprise crypto platforms in the first 30 minutes. Rate‑limited.

Tyreek Haynes, on meetcyber.net

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 stored sensitive authentication tokens in client-side storage (localStorage) and also had a template injection vulnerability that allowed script execution, enabling token theft.

Impact

The vulnerability allowed session hijacking, authentication bypass, and unauthorized access to merchant data, potentially causing financial and reputational damage.

What the attacker needed

Template-injection XSS vulnerability; victim visits malicious page

How it was found

  1. Identify a valid, in-scope asset
  2. Map the merchant-side infrastructure
  3. Discover an exposed GraphQL endpoint
  4. Recover authentication tokens
  5. Validate token usability and permissions
  6. Perform authenticated queries

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 website stored secret login tokens in the browser where malicious code could read them. An attacker could trick the site into running their code, steal the tokens, and then act as the victim user.

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 Tyreek Haynes

View all

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