Skip to content
Business logic Write-up Intermediate

How to not implement payment features - Insights from Bugbounty

The application failed to validate a tip amount, allowing a negative tip to reduce the total price. It also allowed adding spaces to bank account numbers to trigger repeated penny-drop transfers, used sequential order IDs that could be brute-forced to leak payment session data, and had a race condition when placing orders with wallet credit that resulted in refunds without deducting the credit.

sivakrishnasamireddi Follow

Published on medium.com

I would like to share my findings on payment bugs that I uncovered during my participation in a bug bounty program. My goal is to help fellow bug bounty hunters gain insights into common payment flaws that may exist in various platforms integrating payment systems.

Siva Krishna Samireddi, on medium.com

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 developers did not validate input values (negative tip, bank account number with spaces) and used predictable order IDs, plus lacked proper synchronisation when placing orders with wallet credit.

Impact

An attacker could book services at a fraction of the cost, steal funds via repeated penny-drop transfers, access tokenized card data, and obtain free wallet credit through a race condition.

What the attacker needed

A user account; ability to intercept and modify requests; a bank account for penny drop; multiple accounts and OTPs for bulk exploitation

How it was found

  1. Intercept the checkout update-details request and change the adjustedTip parameter to a negative value.
  2. Add a bank account number with a trailing space to trigger an IMPS transfer to a previously verified account.
  3. Brute-force sequential order_id values to retrieve payment session information.
  4. Place two orders simultaneously using the same wallet credit; one order is placed and the other is cancelled but the credit is refunded.

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.

This report describes several payment-related bugs. One lets a user enter a negative tip, which lowers the total price instead of adding to it. Another lets a user add extra spaces to a bank account number to trick the system into sending repeated small verification payments. A third uses guessable order numbers to access other people's payment information. The last is a race condition where placing two orders at once with the same wallet balance leads to a refund without actually spending the credit.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.