Skip to content
IDOR Write-up Beginner

IDOR-”Bir bakıp çıkacaz izne gerek yok!!”

The live chat transcript download endpoint used sequential numeric filenames and did not check whether the requested transcript belonged to the logged-in user. An attacker could change the filename to read another user's chat transcript, which in this lab contained a password that allowed account takeover.

medium.com

Published on medium.com

Sinema filmlerinde hackerları nasıl görürüz? Karanlık bir odada, siyah kapüşonlu, saniyede bin tuşa basan ve sürekli “Access Denied” uyarısını aşmaya çalışan dahi suçlular… Ancak gerçek hayatta, milyon dolarlık şirketlerin verilerini çalmak için bazen kapıyı anahtarla açmaya gerek kalmaz.

YusufCanCinar, 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

The server used predictable sequential identifiers for transcripts and did not verify that the requested transcript belonged to the authenticated user.

Impact

An attacker could read other users' chat transcripts and, in this lab, obtain a password that led to full account takeover.

What the attacker needed

A free account; access to the live chat feature

The fix

The endpoint should verify that the requested transcript belongs to the authenticated user before returning it, and use unpredictable identifiers.

How it was found

  1. Start a live chat and send a message, then end the conversation.
  2. Download the transcript and note the filename is 2.txt.
  3. Start another chat and download its transcript to see the filename is 3.txt.
  4. Capture the transcript download request in Burp Suite and send it to Repeater.
  5. Change the filename in the request from 2.txt to 1.txt and send it.
  6. Read the response, which contains another user's chat transcript with a password.

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 website sometimes uses simple numbers to name files or records, like 1.txt, 2.txt. If the site does not check that the file belongs to you before showing it, you can change the number and read someone else's file. Here, changing the transcript number revealed another person's chat, which included their password.

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.