Skip to content
IDOR Write-up Beginner

I Wasn’t Trying to Hack Them, But I Did: A Beginner’s Story o

An API endpoint returned other users' video data when the page size parameter was increased, and a video rendering endpoint fetched any URL supplied by the user, including attacker-controlled addresses. An attacker could read other users' content and make the server send requests to internal or external destinations.

0x62616B61 Follow

Published on medium.com

Before I get into the technical details, let’s get something straight. I’m not a professional pentester — at least, not yet.

0x62616B61, 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 user-supplied input without checking permissions or restricting which URLs it would fetch.

Impact

An attacker could view other users' generated videos and make the server send requests to internal or external addresses, potentially scanning internal networks or reaching sensitive services.

What the attacker needed

A user account on the application; ability to send custom API requests

The fix

The report recommends checking user permissions on every request and maintaining an allow-list of approved domains for URLs the server fetches; it does not state that the issues were fixed.

How it was found

  1. Find the video listing API endpoint and note its page and limit parameters.
  2. Increase the limit value in the request.
  3. Observe that the response contains other users' video data.
  4. Set up a listener that records incoming web requests.
  5. Send a request to the text-over-video endpoint with the listener URL as the video address.
  6. See the server's request arrive at the listener, confirming it fetched the supplied URL.

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.

The app had two mistakes. First, it let anyone ask for a bigger list of videos than intended, and it handed back other people's videos instead of only their own. Second, when the app needed to download a video to put text on it, it trusted whatever web address the user gave it, so someone could make the company's server visit a website of their choosing.

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.