Skip to content
IDOR Write-up Intermediate

IDOR leading to broken functionality

The flight alert feature allowed an attacker to create, edit, and delete flight alerts on another user's account by manipulating the email and flight alert ID parameters, after bypassing a 403 error by setting the destination and arrival cities to the same value. The attacker could thus break the functionality for the victim without permission.

medium.com

Published on medium.com

Hello everyone i want to share with you one of my first bugs after my first month of hunting .Firstly i want to give you the idea of program i was hunting on , it was a program that you can book hotels and flights and each of them have a tuns of function to test it , so i found a function in flight section called…

Le_Merdien, 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 backend did not properly check that the destination and arrival cities were different, and also failed to verify that the email and flight alert ID belonged to the authenticated user.

What the attacker needed

Two accounts (attacker and victim); ability to intercept and modify requests

How it was found

  1. Create two accounts, one attacker and one victim.
  2. Capture the request that creates a flight alert and note the email and operateType parameters.
  3. Change the email to the victim's email and observe a 403 Forbidden response.
  4. Modify the operateType parameter to 2 (edit) and set the destination and arrival cities to the same value to bypass the 403.
  5. Change the flight alert ID to the victim's ID and use operateType 2 to edit or 3 to delete the victim's flight alert.

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.

This report describes a logic flaw in a travel booking site's flight alert feature. By changing hidden request parameters, an attacker could act on another person's flight alerts, even though the website's front end tried to prevent it. The key was finding a way to make the server accept requests it should have rejected.

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.