Skip to content
Info disclosure Disclosed report Intermediate CVE-2020-15666

MediaError message property leaks cross-origin response status

The message property of the MediaError interface returned different strings depending on whether a cross-origin audio resource loaded successfully, letting a script infer the response status of a cross-origin resource. An attacker could use this to probe whether a victim is authenticated to, or whether a resource exists on, another origin.

gunesacar Follow

Originally disclosed on Mozilla

  • Fixed in 2.3 years
  • Paid in 2.3 years
  • Disclosed after 2.3 years
Text
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0
Build ID: 20180208173149

Steps to reproduce:

1- Visit: https://output.jsbin.com/nejatopusi
2- Enter a URL in the input box, click the "Test" button
The URL will be loaded as the `src` of an audio element.


Actual results:

The message property of the MediaError interface contains a different string for resources that loads successfully. This allows an attacker to infer the response status for a cross-origin resource.



Expected results:

Cross-origin response status should not be detectable by scripts unless necessary CORS headers are sent by the server.

The original report as published on Mozilla's Bugzilla, by gunesacar. 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 MediaError message string was derived from the underlying network response rather than being a generic, origin-neutral error, so it leaked cross-origin status information.

What the attacker needed

Victim visits attacker page; attacker knows target URL

The fix

The MediaError message should not vary with cross-origin response status unless the server sends the necessary CORS headers.

How it was found

  1. Open the provided test page in the browser.
  2. Enter a URL into the input box and click the Test button.
  3. The URL is loaded as the src of an audio element.
  4. Observe that the MediaError message differs depending on the resource's response status.

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.

When a web page loads an audio file from another site, the browser reports an error if it fails. The error message differed depending on whether the other site answered successfully or not. That difference let a malicious page learn things about another site that the browser is normally supposed to keep private.

What is Info disclosure?

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

More from Mozilla

View all

The newest disclosed reports for this program.

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.