Authenticating a PayPal Notification Is Not the Same as Trusting
The WordPress plugin verified that PayPal sent the payment notification but never checked that the paid amount matched the order. An attacker could make a tiny real payment and set the invoice to an expensive pending order, marking it as paid.
Published on nitishyaddala.medium.com
Payment bugs are my favorite kind to find. With most vulnerabilities you end up arguing about severity, about whether the preconditions are realistic, about whether anyone would actually chain it.
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
The plugin authenticated the PayPal IPN but failed to verify that the payment amount, currency, and receiver matched the order being completed.
Impact
An attacker could mark high-value pending orders as paid for almost nothing, causing the store to lose revenue.
What the attacker needed
No account required; Ability to make a small real payment; Target order must be pending
The fix
The vendor patched it in a release past 2.4.9; the fix should re-check the business data (amount, currency, receiver) against the stored order before completing it.
How it was found
- Start a minimal real payment through the plugin and set the invoice to the ID of an expensive pending order.
- PayPal processes the small payment and sends a genuine IPN, which passes the _notify-validate check.
- The handler sees VERIFIED, never compares the amount, and marks the targeted high-value order completed.
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 pay online, the payment service sends a message back to the shop saying 'this payment happened'. The plugin checked that the message really came from PayPal, but it did not check that the amount in the message matched the price of the order. So someone could pay a very small amount and still get an expensive order marked as paid.
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.