Skip to content
IDOR Write-up Beginner

Bug Writeup: FBCTF IDOR

The FBCTF platform had an insecure direct object reference (IDOR) vulnerability in the attachment download endpoint, allowing any authenticated user to access attachments of inactive flags by changing the id parameter. An attacker could view flags before they were active, gaining an unfair advantage in a CTF competition.

George Osterweil Follow

Published on georgeosterweil.com

This is a writeup for a bug I found a few months ago in Facebook’s Capture the Flag Platform (FBCTF). It was a fixed a while ago, so I’ll describe the bug and how I found it.

George Osterweil, on georgeosterweil.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 code did not check whether the flag associated with the attachment was active before serving the file.

Impact

Teams could access attachments of inactive flags, potentially revealing flags early and compromising the competitive integrity of a CTF event.

What the attacker needed

A registered team account; knowledge of an inactive attachment id

The fix

The developers added a check to ensure the flag is active before serving the attachment.

How it was found

  1. Log in as a non-admin user
  2. From the gameboard, select an active flag.
  3. Click the attachment link below the description, and view the captured request in Burp. Right click and choose “Send to Repeater”.
  4. Change the id parameter to the id of an inactive flag.
  5. You will see the flag’s attachment.

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.

An IDOR (Insecure Direct Object Reference) happens when a website uses a user-supplied identifier, like a number in a URL, to directly access a file or record without checking if the user is allowed to see it. Here, any logged-in user could change the number in the attachment link to view files that were supposed to be hidden until later. This let players see the answers (flags) early.

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 from Meta

View all

The newest disclosed reports for this program.

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.