Skip to content
Access control Write-up Beginner

Hunting Bugs On Ott Or Media Streaming Platforms Check This Out Hacking Hls Streams

The author describes how HLS video streams use an M3U8 index file that lists chunk URLs and may embed a decryption key, so anyone who can fetch the index can potentially download and decrypt paid video content. In a test against an OTT platform, the chunks lacked authorisation but the key was not retrievable, so the content stayed protected.

Sam Follow

Published on infosecwriteups.com

Hey folks 🤠, This blog is on hacking/testing the hls streams for some bounty and fun. If you ever notice an .M3U8 extension in your network traffic and if the content is not public then this is the blog for you ! give it a try.

Sam, on infosecwriteups.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 streaming chunks and the M3U8 index were served without any session or authorisation check, leaving only encryption as a defence.

Impact

An attacker could download and decrypt paid video content without a subscription, but on the tested platform the key was not exposed so the attempt failed.

What the attacker needed

Access to the M3U8 file; no authorisation on chunk requests

The fix

HLS streams should be protected by requiring a session or authorisation when fetching chunks and by storing the key in encrypted form.

How it was found

  1. Capture network traffic and look for an .M3U8 file.
  2. Fetch the M3U8 file using a finder or downloader tool.
  3. Check the M3U8 file for an hls.keys line to find the decryption key.
  4. Download and merge the chunks with a downloader or ffmpeg.

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.

Video sites often split a film into many small pieces and give the player a list file (an M3U8) saying where each piece is. If that list is public and the pieces are not locked to your account, someone can download every piece and rebuild the film without paying. The author tried this on a real service but could not get the decryption key, so the attempt failed.

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.

More by Sam

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.