DoS on PayPal via web cache poisoning
An invalid Transfer-Encoding header could be used to poison the web cache on PayPal's main site, causing JavaScript files from a separate domain to be replaced with a '501 Not Implemented' error message. This could impact core functionality of the site.
Originally disclosed on HackerOne
- Triaged in 20 hours
- Fixed in 29 days
- Paid in 29 days
- Disclosed after 4 months
Summary by the program
On https://paypal.com/, you could impact core functionality by using an invalid Transfer-Encoding header to replace JavaScript files from www.paypalobjects.com with the message '501 Not Implemented'. This was patched and awarded a $9,700 bounty.
Summary by the researcher
By the time you read this, there should be a full writeup on this technique at https://portswigger.net/research/responsible-denial-of-service-with-web-cache-poisoning
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
Root cause
Likely the cache did not properly validate or normalise the Transfer-Encoding header, allowing a malformed request to poison the cached response for a resource.
Impact
This could impact core functionality by causing users to receive an error message instead of necessary JavaScript files, potentially breaking the site.
What the attacker needed
Ability to send crafted HTTP requests
The fix
The issue was patched.
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 cache stores copies of web pages to serve them faster. If an attacker can trick the cache into storing a broken or malicious response, other users will receive that bad response. Here, a malformed request header caused the cache to store an error message instead of the real JavaScript file, which could break the website for many users.
What is Cache bugs?
A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.