Skip to content
Business logic Write-up Intermediate

Hackeando Voy, Hackeando Vengo — El Caso BiciMAD Go

The BiciMAD Go bike reservation endpoint accepted an arbitrary NIF (Spanish tax ID) in a request header without server-side validation, allowing an attacker to reserve any number of bikes using random or empty values. This could be exploited to deny service by making all bikes unavailable to other users.

Héctor Martos Follow

Published on infosecwriteups.com

En 2014 el ayuntamiento de Madrid hizo una gran apuesta por la movilidad desplegando su propio servicio público de alquiler de bicicletas llamado 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

The server trusted a client-supplied NIF header without validating it, so the reservation limit and penalty were tied to an unverified value.

Impact

An attacker could reserve all available bikes, causing a denial of service for other users, and could also reserve bikes using another user's NIF, affecting integrity; the author rated it high severity (CVSS 7.6).

What the attacker needed

A valid user account; ability to intercept and modify requests

The fix

The vulnerability was fixed after being reported, as the author states measures were taken to resolve it.

How it was found

  1. Set up a proxy to capture the app's network traffic.
  2. Inspect the reservation request and notice the NIF is sent in a header.
  3. Replicate the request with a modified NIF value (e.g., an invalid one) and observe it is accepted.
  4. Write a script to reserve multiple bikes using randomly generated NIFs.
  5. Run the script and confirm the bikes are reserved and cannot be unlocked by others.
  6. After 10 minutes, run the script again to verify the penalty does not prevent re-reservation.

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 bike-sharing app lets you reserve a bike for 10 minutes. The app sends your personal ID number (NIF) in a header when you reserve. The server did not check if that ID was real or belonged to you, so someone could send fake IDs and reserve many bikes, stopping others 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.