Skip to content
XSS Write-up Beginner

PayPal.com XSS Vulnerability

The search function on PayPal.com was vulnerable to cross-site scripting, allowing an attacker to inject and execute JavaScript in a victim's browser. The author reported the issue but was disqualified from the bug bounty programme because he was under 18.

seclists.org

Published on seclists.org

I'm Robert Kugler a 17 years old German student who's interested in securing computer systems.

The author, on seclists.org

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 sitewide search parameter was reflected into the page without adequate output encoding or input sanitisation.

What the attacker needed

Victim visits a crafted search URL

How it was found

  1. Open the PayPal sitewide search page.
  2. Enter a crafted JavaScript payload into the search field.
  3. The payload is reflected and executes in the browser.

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 a flaw where a website lets an attacker slip their own JavaScript code into a page that other people view. When a victim loads the page, the code runs in their browser as if PayPal had written it, so it could steal session data or act on the victim's behalf. Here the search box echoed back whatever was typed without proper cleaning.

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.