Skip to content
CORS Disclosed report Advanced CVE-2018-12391

Cross-origin audio leak in HLS

A cross-origin audio leak in HLS playback allowed an attacker to steal audio samples from another origin. The browser checked the initial audio URL but missed a redirect, enabling access to cross-origin audio data via the Web Audio API.

Jun Follow

Originally disclosed on Mozilla

  • Fixed in 2 months
  • Paid in 2 months
  • Disclosed after 2 months
Text
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.75 Safari/537.36

Steps to reproduce:

1. Go to https://test.shhnjk.com/hls/webvideo.html
2. Wait for video to stop playing and observe the alert saying "super bad"


Actual results:

Cross-origin audio data leaks. Audio tag on the right side will play stolen sound.


Expected results:

HTTP Live Stream is supported in Firefox for Android. And the M3U8 file allows audio data to be fetched from other origin. But Firefox only checks the url and misses the following redirect in https://test.shhnjk.com/hls/same.m3u8

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio",NAME="English stereo",LANGUAGE="en",AUTOSELECT=YES,URI="https://test.shhnjk.com/location.php?url=https://vuln.shhnjk.com/audio.m3u8"

Where audio file is redirected and provided from "https://vuln.shhnjk.com/audio.m3u8". We can abuse this missed check to steal the audio samples using Web Audio API and read the audio data across-origin.

The original report as published on Mozilla's Bugzilla, by Jun. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the browser only validated the initial audio URL for cross-origin restrictions but did not re-check after an HTTP redirect, allowing the final cross-origin audio to be read.

Impact

An attacker could steal audio samples from another origin, potentially exposing private audio content.

What the attacker needed

Victim visits a malicious page; browser supports HLS and Web Audio API

How it was found

  1. Visit the provided test page.
  2. Wait for the video to stop playing.
  3. Observe the alert and the audio tag playing stolen sound.

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 report has not been written yet. The Original tab links to the source.

A web page can load media from another site, but normally it cannot read the raw audio data due to security rules. Here, a redirect trick let the page bypass that rule and read the audio, which could expose private audio content.

What is CORS?

A permissive cross-origin policy lets another site read responses with the user's credentials.

More by Jun

View all

17 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

CORS misconfiguration

The lesson behind this report.

A permissive cross-origin policy lets another site read responses with the user's credentials.