Hacking PayPal Accounts with one click (Patched)
PayPal's CSRF token was reusable for a user and could be obtained from a page that issued a token to a logged-out user. An attacker could then perform actions such as changing security questions and adding privileged users on behalf of a victim.
Published on yasserali.com
Today I am going to publicly disclose a critical vulnerability I have found during my research in PayPal, This vulnerability enabled me to completely bypass the CSRF Prevention System implemented by PayPal, The vulnerability is patched very fast and PayPal paid me the maximum bounty they give ;).
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 CSRF token was not tied to a single session or request and was issued to unauthenticated users, making it reusable.
Impact
An attacker could take full control over a victim's account by changing security questions and other settings, though the text notes the password itself could not be changed without the security answers.
What the attacker needed
Victim is logged in; attacker can lure victim to a crafted page
The fix
The vulnerability was fixed by PayPal after being reported.
How it was found
- Visit the send-money page while logged out to obtain a valid Auth token.
- Use that token to send requests on behalf of a victim.
- Reuse the security-questions setup request, which is not password protected, to change the victim's questions.
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.
A CSRF token is a secret code a website puts in forms to prove a request really came from its own pages, not from an attacker's site. Here the code was not unique per request and could be obtained even when not logged in, so an attacker could reuse it to make changes to a victim's account.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.