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.
- Fixed in 2.3 years
- Paid in 2.3 years
- Disclosed after 2.3 years
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.
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
- Open the provided test page in the browser.
- Enter a URL into the input box and click the Test button.
- The URL is loaded as the src of an audio element.
- 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.