How I hacked Paypal to create money
PayPal's fee refund mechanism credited the fee back to the receiving account when a refund was issued, even if the account had insufficient balance to cover the original fee. An attacker could repeatedly send small payments to a zero-balance account, refund them, and receive more money from PayPal than was originally paid, effectively creating money.
medium.com
Published on medium.com
I discovered this bug on Aug 31, 2014 when I was trying to set up PayPal on my website for accepting payments. I notified PayPal about this bug and and they have fixed it now.
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 fee refund logic did not check whether the account had actually paid the fee, so it credited the fee back regardless of the account's balance.
Impact
An attacker could repeatedly generate small amounts of money from PayPal, potentially accumulating significant sums over many transactions.
What the attacker needed
A PayPal account with zero or low balance; a second PayPal account to send payments; ability to issue refunds
The fix
PayPal fixed the issue, likely by ensuring the fee refund only occurs when the fee was actually paid.
How it was found
- Create a new PayPal account to accept payments.
- Put a 'Buy Now' button on a website with a price of $0.01.
- Pay that amount from a personal account.
- Refund the payment from the receiving account.
- Observe that the balance increased by $0.29 from PayPal.
- Send the money to the personal account and repeat.
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.
When you accept a payment on PayPal, they take a small fee. If you later refund the payment, they normally give that fee back to you. The bug was that they gave the fee back even when your account had no money to pay it in the first place, so you ended up with extra money from PayPal.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.