Skip to content
Business logic Write-up Intermediate

Blockchain Network Is Secured But Not The Apps And Their Integrations

The booking API did not bind the transaction hash to the number of tickets, so a user could book many tickets with a single payment. The refund endpoint then paid out per ticket, allowing the attacker to drain ETH from the admin wallet.

WeSecureApp Follow

Published on infosecwriteups.com

During the security assessment for a blockchain-based web application, it was observed that some of the functions were vulnerable to unauthenticated ETH transfer from an admin wallet to the attacker’s wallet. The web application was a booking application where a user can book tickets and pay with a crypto token.

WeSecureApp, on infosecwriteups.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

Impact

An attacker could book many tickets with one payment and then obtain refunds exceeding the amount paid, potentially draining up to 10 ETH from the admin wallet in the example.

What the attacker needed

A user account; a MetaMask wallet; ability to send a small ETH payment

The fix

The application should bind the transaction hash to the exact number of tickets and validate refunds against the original payment amount.

How it was found

  1. Start a ticket booking and pay 0.1 ETH via MetaMask.
  2. The app confirms payment with a POST to the wallet endpoint.
  3. The booking request sends transaction_hash and total_tickets, but they are not linked.
  4. Change total_tickets to book many tickets for the same payment.
  5. Cancel the booking; the server validates ticket IDs and refunds per ticket.
  6. Receive refunds exceeding the original payment, draining the admin wallet.

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 for tickets, the app checks that a payment happened but not how many tickets that payment was for. So someone can say they bought 100 tickets after paying for one, then cancel all 100 and get 100 refunds. This lets them take more money from the app's wallet than they 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.

More by WeSecureApp

View all

3 more disclosed reports, best first.

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.