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.
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.
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
- Find the video listing API endpoint and note its page and limit parameters.
- Increase the limit value in the request.
- Observe that the response contains other users' video data.
- Set up a listener that records incoming web requests.
- Send a request to the text-over-video endpoint with the listener URL as the video address.
- 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.