Skip to content
IDOR Write-up Beginner

How I Hacked Hackers Account

The login page accepted a userid parameter without authentication, allowing an attacker to log in as any user by supplying that user's ID. The attacker could obtain other users' IDs from a messaging group feature that exposed them via usernames.

medium.com

Published on medium.com

๐Ÿ‘จโ€๐Ÿ’ป Iโ€™m Shuvo Kumar Saha, also known as Syper Shuvo โ€” a passionate Security Researcher and Bug Bounty Hunter ๐Ÿ•ต๏ธโ€โ™‚๏ธ from ๐Ÿ‡ง๐Ÿ‡ฉ Bangladesh.

Shuvo Kumar Saha, 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 login endpoint used a client-supplied userid parameter to identify the account without verifying the requester's authentication or session.

Impact

An attacker could take over any user's account, including other hackers' accounts, by supplying their user ID.

What the attacker needed

Access to the login page; knowledge of the victim's user ID

How it was found

  1. Create two accounts and analyse parameters in Burp.
  2. Open a new browser without logging in and inspect cookies/parameters.
  3. Add the userid parameter with a previously created account's ID.
  4. Observe being logged in without authentication.
  5. Obtain another user's ID via the messaging group feature by adding them by username.
  6. Edit or add userid to the target's ID on the login page to access their account.

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 should check who you are before letting you into an account. Here, the login page trusted a number (the user ID) that anyone could change, so a person could become another user just by editing that number. The IDs were not secret because a group feature revealed them.

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.