Skip to content
XSS Write-up Beginner

Google Acquisition XSS (Apigee)

A reflected cross-site scripting vulnerability existed in the password reset URL of an Apigee account management page, where the token parameter was not properly sanitised. An attacker could craft a malicious link that, when clicked by a victim, would execute script in the victim's browser and could steal their session cookies.

TnMch Follow

Published on medium.com

I enter apigee.com which provides API management, so as always I start my burp suite and I try to verify all the functions as possible,

TnMch, 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 token parameter in the password reset URL was reflected into the page without proper output encoding, allowing script injection.

Impact

An attacker could steal a victim's session cookies by tricking them into clicking a crafted password reset link, potentially leading to account takeover.

What the attacker needed

Victim clicks a crafted link; attacker can send emails or messages

How it was found

  1. Log out and go to the login/register page.
  2. Request a password reset and receive an email with a reset link containing a token parameter.
  3. Modify the token value in the URL to include a script payload.
  4. Load the modified URL in a browser and observe the script executing (alert box).
  5. Use a payload that sends document.cookie to an attacker-controlled server.
  6. Click the link and see the cookies arrive at 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 click a password reset link, the website puts a long code (token) into the address. The site failed to clean up that code before showing it back on the page. This meant an attacker could put their own code in the link, and if you clicked it, your browser would run that code and could send your login cookies to the attacker.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Google

View all

The newest disclosed reports for this program.

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.