Skip to content
Info disclosure Write-up Advanced

I discovered a browser bug

A browser bug allowed a malicious site to mix known and unknown data in media elements, leaking the length of cross-origin resources. In Edge, the bug was worse: it allowed reading the full content of cross-origin resources via the Web Audio API.

Jake Archibald Follow

Published on jakearchibald.com

I accidentally discovered a huge browser bug a few months ago and I'm pretty excited about it. Security engineers always seem like the "cool kids" to me, so I'm hoping that now I can be part of the club, and y'know, get into the special parties or whatever.

Jake Archibald (@jaffathecake), on jakearchibald.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 browser did not properly restrict how media elements combine responses from different origins, allowing opaque data to be mixed with known data and exposed.

What the attacker needed

Victim visits malicious site; victim logged into target site; browser vulnerable (Firefox 59.0b9 or Edge)

The fix

The bugs were fixed in Firefox and Edge, and standards work (CORB) was added to prevent similar issues.

How it was found

  1. Create a page with an audio element pointing to a malicious server.
  2. The malicious server responds with a crafted WAV header and then redirects to the target site.
  3. The browser follows the redirect and requests the target resource with cookies.
  4. The browser combines the responses and exposes the duration of the audio.
  5. The attacker calculates the length of the target resource from the duration.

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.

When a web page loads an image or audio file from another site, the browser normally blocks the page from reading the content. This bug let a malicious page trick the browser into revealing private data from other sites, like the size of a file or even its full contents in Edge.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.