How I Accessed Paid Video Content Without Authorization
The media metadata API returned signed playback URLs for paid video content without checking whether the requester had a subscription. Anyone who knew a media identifier could stream premium lessons outside the platform.
medium.com
Published on medium.com
While testing a popular educational platform, I noticed that free preview clips and paid lessons were served through the same API domain. Normally, premium content should have stricter access restrictions.
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
The server issued signed playback URLs for premium media without verifying the caller's identity or subscription status, relying on unguessable identifiers and a public API key instead of access control.
Impact
Premium lessons, along with their metadata, subtitles and transcripts, could be streamed or shared without a subscription, which the author says may lead to revenue loss and content piracy.
What the attacker needed
Knowledge of a media identifier; the public static API key; an HLS-compatible player
The fix
The server should authenticate the user and check for an active subscription before issuing signed playback URLs, and those URLs should be short-lived and tied to the user's session.
How it was found
- Open browser developer tools and inspect the network requests made when loading video content.
- Notice that free and paid videos use the same metadata endpoint and that a static API key is sent from the client.
- Request the metadata endpoint for a paid media identifier with that API key.
- Read the signed playback URL from the response and open it in an HLS-compatible player.
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.
A website's server should check who is asking before handing over links to paid videos. Here it handed out working playback links to anyone who asked, so people could watch lessons they had not paid for.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.