Skip to content
IDOR Write-up Beginner

Day 18: How a Researcher Hacked One of the Biggest Airlines Group

The password reset API used sequential numeric user IDs and did not verify that the reset token belonged to the target user. An attacker could list thousands of email addresses without authentication and change any user's password by sending a request with only a new password and no reset token.

dani3l Follow

Published on medium.com

About a year ago, when the researcher started exploring HackerOne, they discovered one of the most impactful bugs ever. they received a private invitation to a Vulnerability Disclosure Program (VDP) from an airline group. Since they were still learning and wanted to gain experience, they decided to participate in the…

dani3l, on medium.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 API trusted a client-supplied numeric user ID and did not require or validate the reset token when updating a password.

Impact

The vulnerability allowed changing the password of any user in the airline group, potentially exposing credit cards and sensitive data for millions of accounts across multiple airlines.

What the attacker needed

Knowledge of a victim's numeric user ID; no authentication required

How it was found

  1. Request a password reset and capture the PATCH request sent to the profile endpoint.
  2. Notice the request contains a numeric user ID that appears to auto-increment.
  3. Access the profile endpoint directly in the browser with the same ID to see the email address.
  4. Iterate through other user IDs to list thousands of emails without authentication.
  5. Create a second account and send a PATCH request to its profile with a new password and the original reset token.
  6. Remove the resetToken from the request and resend it to change the second account's password successfully.

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.

A password reset link usually contains a secret token that proves you own the account. Here the website used simple numbers to identify users and did not check that the token matched the user being changed. So anyone could guess other users' numbers, read their email addresses, and even set a new password for them.

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.

More by dani3l

View all

4 more disclosed reports, best first.

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.