Skip to content
Business logic Write-up Intermediate

How I Hacked an Android App to Get Free Beer

The Android app authorised point awards using beacon identifiers (UUID, major, minor) that are broadcast in the clear over Bluetooth, and the server accepted these identifiers without any additional proof. An attacker within beacon range could capture the identifiers and replay them to earn free points and free beer.

breakdev.org

Published on breakdev.org

Just recently I stumbled upon an Android app that lets you receive free products in various pubs, restaurants or cafes in exchange for points accumulated with previous purchases. When the purchase is made, you let the vendor know that you want to receive points.

The author, on breakdev.org

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 server treated static, publicly broadcast beacon identifiers as sufficient proof of physical presence, with no cryptographic challenge or other secret tied to the transaction.

Impact

An attacker within beacon range could replay the broadcast identifiers to earn points without a purchase, potentially redeeming them for free products; the text does not show a completed redemption.

What the attacker needed

Beacon within Bluetooth range; ability to intercept app traffic; a valid app account

How it was found

  1. Set up an HTTPS interception proxy and install its root certificate on the phone.
  2. Configure the phone to send traffic through the proxy and capture the app's requests.
  3. Use the beacon vendor's developer app to read the UUID, major and minor numbers broadcast by the restaurant's beacon.
  4. Send a points request containing the captured beacon identifiers to the server.

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.

The app gives you loyalty points when a small Bluetooth device (a beacon) is waved near your phone. The phone reads a few numbers from that beacon and sends them to the server to prove you are really at the restaurant. Because the beacon shouts those numbers into the air for anyone nearby to hear, a person can copy them and send the same numbers from home to get points without buying anything.

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.