XSS in Apigee - Google Acquisition
The callback parameter on the Apigee MFA login page allowed open redirection and also accepted javascript: URLs, so a crafted link could run script when the victim clicked the back button. Because session cookies lacked the HttpOnly flag, that script could read them.
Published on tutorgeeks.blogspot.com
The original lives on tutorgeeks.blogspot.com
We do not hold its text, 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 callback parameter was passed to a redirect without validating the scheme, so javascript: URLs were treated as navigation targets.
Impact
An attacker could run script in the victim's browser on the login domain and read session cookies that were not protected by HttpOnly, potentially leading to account takeover.
What the attacker needed
Victim clicks a crafted link; victim clicks the back button
The fix
The issue was fixed, likely by validating the callback parameter and blocking javascript: URLs.
How it was found
- Open the MFA setup page with a callback parameter pointing to an external site.
- Click the back button and observe the redirect to the external site.
- Replace the callback value with a javascript: URL.
- Send the crafted link to a victim and have them click the back button, which executes the script.
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 web page took a value from the address bar and used it to decide where to send you next. The author found that the page also accepted a javascript: address, which makes the browser run code instead of navigating. Since the login cookie could be read by scripts, that code could steal the victim's session.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.