Reflect XSS and CSP Bypass on https://www.paypal.com/businesswallet/currencyConverter/
A currency conversion endpoint reflected unsanitised user input from a URL parameter, allowing script injection. An attacker could run JavaScript in another user's browser session on the PayPal domain.
- Triaged in 19 hours
- Fixed in 26 days
- Paid in 26 days
- Disclosed after 12 months
Summary by the program
An endpoint used for currency conversion was found to suffer from a reflected XSS vulnerability, where user input was not being properly sanitized in a parameter in the URL. This could lead to a malicious user injecting malicious JavaScript, HTML, or any other type of code that the browser may execute. The malicious script will execute in the browser page DOM of another user typically without their knowledge or consent. This was resolved by implementing additional controls to validate and sanitize user input before being returned in the response.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could execute script in a victim's browser on the PayPal origin, though the report gives no detail on what that script could reach.
What the attacker needed
Victim loads a crafted URL
The fix
It was fixed by adding controls that validate and sanitise user input before it is returned in the response.
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 report has not been written yet. The Original tab links to the source.
A web page took text from the address bar and put it into the page without cleaning it. If that text is code, the browser runs it as if PayPal had written it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.