Skip to content
IDOR Write-up Intermediate

Traffic Analysis

The ATM Milano mobile app used a custom authentication header that included the user's email address and an HMAC signature, but the HMAC did not cover the username, so changing the email address in the header allowed access to other users' wallets and tickets. An attacker could retrieve and potentially redeem tickets belonging to any user whose email address they knew.

blog.jacopojannone.com

Published on blog.jacopojannone.com

Some design flaws left ATM Milano’s mobile app vulnerable to attacks: anyone could access any users’ data and tickets by just knowing their e-mail address. Meanwhile, some apparent security features made the vulnerabilities harder to spot and to exploit.

The author, on blog.jacopojannone.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 view other users' wallets and tickets, and potentially redeem those tickets by using the PNR code at a ticket machine or by abusing the API to validate the ticket and obtain the QR code.

What the attacker needed

Knowledge of victim's email address; ability to intercept and modify app traffic

The fix

The vulnerabilities were fixed by ATM by switching to JWT tokens signed with a server-side secret, so the client no longer knows the signing key and cannot forge tokens for other users.

How it was found

  1. Configure an HTTPS proxy on the smartphone to intercept the app's traffic.
  2. Log in to the app and capture the login request and the subsequent wallet request.
  3. Observe that the Authentication header contains the username (email) and a base64-encoded HMAC.
  4. Modify the Authentication header to replace the username with another user's email address.
  5. Send the modified wallet request and receive the other user's wallet data, including their ticket.

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 sent a special header with each request that contained the user's email address and a signature to prove the request was genuine. However, the signature did not include the email address, so anyone could change the email to someone else's and still have a valid signature. This meant an attacker could see other people's tickets just by knowing their email address.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.