Skip to content
Business logic Write-up Intermediate

Ethical Hacking Stories — Denial-of-Service to BiciMAD Bikes

The bike booking request sent the user's national ID in a header that the server did not validate, so an attacker could book any bike using arbitrary or empty IDs. This allowed a denial-of-service by booking many bikes, and also booking with another user's ID.

Héctor Martos Follow

Published on infosecwriteups.com

In 2014, Madrid city made a great commitment to mobility deploying its own bicycle rental service called BiciMAD.

Héctor Martos, 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

Root cause

Likely the server trusted a client-supplied national ID header for booking without validating it or tying it to the authenticated user, and the penalty for multiple bookings was applied to that spoofable ID.

Impact

An attacker could book all available bikes, causing a denial-of-service, and could also book a bike using another user's ID, affecting the integrity of the booking service.

What the attacker needed

A BiciMAD user account; ability to intercept and modify app requests

The fix

The vulnerability was fixed after being reported.

How it was found

  1. Set up a proxy to inspect the app's network traffic.
  2. Observe the booking request and notice the national ID is sent in a header.
  3. Replicate the booking request with a different ID value.
  4. Verify the bike was booked with a GET request to the booking endpoint.
  5. Create a script to book multiple bikes using random IDs.
  6. Run the script and confirm the bikes are unavailable in the app.

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 book a bike in the app, your national ID number is sent to the server in a header. The server trusted this number without checking it, so anyone could change it to anything and still book a bike. This meant a person could book many bikes at once, stopping other people from using them.

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 Héctor Martos

View all

6 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.