Skip to content
IDOR Write-up Beginner

I Found a Data Leak While Buying My Marathon Photos

The marathon photo platform's order endpoint did not verify that the bib number belonged to the order owner, allowing an attacker with a valid paid order ID to change the bib number and obtain another runner's high-resolution photos for free. Additionally, a valid order ID exposed the buyer's email address and payment status.

blog.devops.dev

Published on blog.devops.dev

It is more than just a hobby for me. Like learning about information security, running is one of those side pursuits that keeps me motivated, no matter what is happening in my professional life or other parts of life.

Raja Sekar Durairaj, on blog.devops.dev

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 order endpoint did not verify that the bib number in the request was associated with the authenticated user or the order, and it returned sensitive order details without proper access control.

Impact

An attacker with a valid order ID could obtain other runners' high-resolution photos for free and access buyers' email addresses and payment status, potentially collecting participant information.

What the attacker needed

A valid paid order ID; knowledge of a bib number

The fix

The platform fixed the issues by securing the endpoint so that unauthorized access to download links is no longer possible.

How it was found

  1. Capture a valid paid order request in the browser.
  2. Change the bib number in the request to another runner's bib number.
  3. Send the modified request to the order endpoint.
  4. Observe that the server returns high-resolution photos for the other runner without payment.

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 buy something online, the website should check that you are allowed to see that order. Here, the website trusted a number you sent (the bib number) without checking it belonged to you, so someone could change it and see another person's photos. Also, just having a valid order number let someone see the buyer's email and whether they had paid.

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.