Skip to content
IDOR Write-up Intermediate

How I Uncovered IDOR, XSS, and Full Account Takeover in a Single

The API endpoint for user posts was vulnerable to IDOR, allowing access to private posts by changing the user ID. The bio field had stored XSS, enabling session cookie theft and account takeover.

Krish_cyber Follow

Published on krishna-cyber.medium.com

Imagine finding three critical vulnerabilities in one target — each flaw more dangerous than the last. That’s exactly what happened during my recent bug bounty sprint, where I chained an IDOR, a stored XSS, and a full account takeover to compromise an entire social media platform.

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 missing access control checks on the API endpoint and lack of input sanitisation on the bio field.

Impact

An attacker could access private posts, steal session cookies, and take over accounts, including admin accounts.

What the attacker needed

A free account; victim visits attacker's profile

The fix

The company added WAF rules to block XSS payloads and overhauled API security.

How it was found

  1. Increment the user ID parameter in the API endpoint to access other users' private posts.
  2. Inject a script into the bio field to steal session cookies.
  3. Use the stolen cookie to log in as the victim.

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) is when a website uses a simple identifier like a user ID in the URL and doesn't check if you're allowed to see that data. Stored XSS (Cross-Site Scripting) is when a website saves malicious code (like a script) in a profile field and runs it for anyone who views that profile, letting the attacker steal login cookies.

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.