Skip to content
IDOR Write-up Beginner

My First Two Bounties in Bug Bounty — Both Critical

The author found an IDOR in a chat feature where a conversation identifier could be changed to read other users' chats, and later found a SQL injection in a parameter that returned a database error on a single quote. An attacker could read private conversations and potentially extract database contents.

medium.com

Published on medium.com

After two months of grinding with absolutely nothing to show for it, I finally caught my first break on self hosted BBP.

Excessium, 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 chat endpoint trusted a client-supplied conversation identifier without checking ownership, and a parameter was concatenated into a SQL query without parameterisation.

Impact

An attacker could read any private chat on the platform and could extract data from the database via SQL injection; the text does not mention any defence limiting these attacks.

What the attacker needed

A free account; ability to create multiple chats; knowledge of user IDs

The fix

The IDOR was patched according to the text; the SQL injection should be fixed by using parameterised queries.

How it was found

  1. Create multiple accounts and multiple chats, then observe the conversation_id parameter in requests.
  2. Notice the first part of the identifier stays the same and the second part changes per chat.
  3. Modify the identifier to another pair of user IDs and access that conversation.
  4. After the IDOR was patched, insert a single quote into a parameter and observe a SQL error.
  5. Add another quote and see the error disappear, confirming SQL injection.
  6. Dump tables as proof of concept and report.

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 is when a website uses a simple identifier (like a number) to decide which record to show, and does not check that you are allowed to see it, so changing the number shows someone else's data. SQL injection is when user input is placed into a database query without proper handling, so a quote character can break the query and reveal an error or data. Here the chat ID could be swapped to read other chats, and a quote in a parameter caused a database error.

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.