Skip to content
IDOR Write-up Beginner

**How I Found a $$$ Account Takeover Bug (And What You Can Learn From It)**

The web app used a base64-encoded user ID in the URL to identify accounts, and the server did not verify that the requester was authorised to view that account. An attacker could change the ID to a victim's and view their dashboard and sensitive information without logging in.

Shra_23 Follow

Published on medium.com

Bug bounty hunting isn’t always about fancy tools or complex exploits. Sometimes, all you need is curiosity, patience, and a browser.

Shra_23, 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 server trusted a client-supplied, merely base64-encoded user identifier and rendered account data without checking the session's authorisation for that specific account.

Impact

An attacker could view another user's dashboard and sensitive information such as personal data or payment info, though they could not change anything.

What the attacker needed

A free account; victim's user ID known or guessable; ability to stop page redirect

The fix

The server should validate the session and check authorisation for the requested account before rendering any data, and should not rely on base64 encoding as protection.

How it was found

  1. Create two accounts, one attacker and one victim.
  2. Log in with the attacker account in one browser.
  3. Copy the URL and replace the registrationId with the victim's base64-encoded user ID.
  4. Open the modified link in a second browser that is not logged in.
  5. When the page tries to redirect to login, stop the refresh to stay on the page.

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.

When you log into a website, the site often puts an identifier in the web address to know which account to show. Here, that identifier was just the username scrambled in a simple way (base64), not a secret. The site never checked whether the person asking for that page was actually allowed to see that account, so anyone could change the identifier and peek at someone else's data.

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.