Skip to content
XSS Write-up Intermediate

Reflected XSS in ebay.com

A reflected cross-site scripting vulnerability existed in the LH_SpecificSeller parameter of an eBay search page, where user input was placed inside a hidden span. An attacker could craft a link that, when opened in Internet Explorer, would execute script in the victim's browser.

Sukhmeet Singh Follow

Published on medium.com

#### Sukhmeet Singh

Sukhmeet Singh, 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 application reflected the LH_SpecificSeller parameter into an HTML attribute without properly encoding it, and the filtering only removed some characters, allowing a CSS expression payload to execute in Internet Explorer.

Impact

An attacker could execute arbitrary script in the context of the eBay domain when a victim visited a crafted link using Internet Explorer, potentially stealing cookies or performing actions as the user.

What the attacker needed

Victim uses Internet Explorer; victim clicks a crafted link

The fix

The vulnerability was fixed by eBay after the report.

How it was found

  1. Identify the search page with the LH_SpecificSeller parameter.
  2. Craft a URL with a payload that uses a style attribute with a CSS expression.
  3. Open the URL in Internet Explorer to trigger 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.

Cross-site scripting (XSS) is a bug where a website puts user input into a page without making it safe, so an attacker can make the page run their own code. Here, a search parameter was reflected into a hidden part of the page, and a special trick using an old Internet Explorer feature let that code run. The attacker only needed to send a crafted link to a victim.

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 Sukhmeet Singh

View all

1 more disclosed report, best first.

More from Ebay

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.