Skip to content
IDOR Write-up Beginner

How I Hacked My Own Phone, Found 2 Critical Vulnerabilities, and

Two IDOR flaws in a social media app's API let a user read other people's private profiles by changing a profile identifier, and reset anyone's password by changing a user identifier while reusing a valid reset token. The author says the company confirmed and patched both and paid a bounty.

Krish_cyber Follow

Published on krishna-cyber.medium.com

Most people use their smartphones for social media, shopping, or streaming. I decided to hack mine.

Krish_cyber, on krishna-cyber.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 API trusted client-supplied identifiers (profile_id and user_id) without checking that the caller owned or was authorised for that object, and the reset token was not tied to the account it was issued for.

Impact

An attacker could read other users' private profile data at scale and take over arbitrary accounts by resetting their passwords.

What the attacker needed

An account on the app; ability to intercept app traffic; victim's identifier known or guessable

The fix

The text says the company patched the flaws, but does not describe how; properly, the API should check that the caller owns each object and bind reset tokens to the specific account.

How it was found

  1. Intercept the app's HTTP traffic with a proxy and note the profile request carrying a profile identifier.
  2. Change the profile identifier to another value and observe that another user's private profile, including email and posts, is returned.
  3. Automate incrementing the identifier with a script to collect many profiles.
  4. Send a password reset request and change the user identifier while keeping a valid token to reset another account's 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.

An IDOR happens when a website looks up a record using an identifier sent by the user but never checks that this user is allowed to see that record. Changing the number in a request then shows someone else's data, like swapping a locker number and finding the door still opens. Here the same mistake let the author read private profiles and reset other people's passwords.

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 by Krish_cyber

View all

12 more disclosed reports, best first.

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.