Skip to content
XSS Write-up Beginner

XSS Flaw on Paypal.com

A reflected cross-site scripting flaw existed on a PayPal page where a URL parameter was echoed back into the HTML without encoding. An attacker could trick a logged-in user into clicking a crafted link to steal their session cookies and perform actions such as money transfers.

praetorianprefect.com

Published on praetorianprefect.com

Earlier today Wesley Kerfoot reported on the Full Disclosure mailing list that a page in the Paypal.com domain is susceptible to a non-persistent reflected cross site scripting attack (XSS). While non-persistent XSS bugs are somewhat common, this is quite serious for a site like PayPal, where user accounts are linked…

The author, on praetorianprefect.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 reflected user-supplied input from the URL into the page without encoding or validating it.

Impact

An attacker could hijack a user's session and initiate financial transactions, including money transfers, or redirect the user to a spoofed site; a mitigation was later implemented that redirects requests to the affected path to the homepage.

What the attacker needed

Victim has a valid PayPal session; victim clicks a crafted link

The fix

The site should escape all output that originates from untrusted sources and validate user input; a mitigation redirecting the affected path was implemented.

How it was found

  1. Craft a URL for the PayPal page with a script in the business parameter.
  2. Send the link to a logged-in PayPal user and get them to click it.
  3. The script runs in the PayPal page context and can read the user's cookies.
  4. The attacker uses the stolen session to act as the user.

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.

Cross-site scripting (XSS) is when a website takes input from a user and puts it into a page without cleaning it first, so an attacker can make the site run their own JavaScript. Here, a part of the web address was placed directly into the page, so a link could contain a script that runs in the victim's browser. Because the script runs as if it came from PayPal, it can read the user's login cookie and send it 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.

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.