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

[VG-VD-20-115] Leaking External URL protocol handler presence through image tags

Firefox renders images from existing protocol handlers differently from non-existing ones, allowing a script to detect which handlers are installed. An attacker could brute-force a list of protocol handlers to fingerprint the victim's system.

Rotem Kerner Follow

Originally disclosed on Mozilla

  • Fixed in 29 days
  • Paid in 40 days
  • Disclosed after 29 days
Text
Created attachment 9169778
ff.html

Dear Mozilla,

Fortinet's FortiGuard Labs have discovered a security issue in your product Firefox on 8/12/2020. We estimate its risk level is 2, on a scale of 1 (lowest) to 5 (highest), in terms of its impact. Please advise of the appropriate contact person in your company to handle this issue.

Fortinet's research remains ethical at all times, and we therefore strive to Responsible Disclosure. Fortinet vulnerability disclosure policy can be found at https://fortiguard.com/zeroday/responsible-disclosure.

For this particular issue, we will wait until 9/13/2020 for vendor response before we post an advisory on our website (https://fortiguard.com/zeroday) and/or any other publication form (e.g. conference talk, demo, podcast, etc.).

In the case you agree to patch this issue, we'll extend the disclosure deadline to 90 days (it's 11/13/2020  for this issue) automatically.

We might disclose it *earlier* than that date only if:

1)	Public proof of concept code for the vulnerability is released or it's disclosed by other people, increasing the danger of the vulnerability being exploited in the wild;

2)	Active attack against the vulnerability is detected;

3)	Or you have patched the vulnerability or released solution/workaround - a positive fact we'll be happy to mention.

Fortinet will use reasonable efforts to communicate a schedule of planned mediums, including conferences with the appropriate stakeholders within the affected company.

Our security researchers work on your product or service either because it is popular and/or interesting, so please take this positively. This research is done free of charge for you, although our researchers will appreciate being mentioned in a Hall of Fame or bug bounty if any. Threats to our security researchers are not acceptable and will be dealt with by our Legal team.

We look forward to working closely with you to resolve this issue. If you wish to switch to confidential emails, our PGP key can be found at https://fortiguard.com/secresearch-pgpkey.



Kind regards,

Fortinet's FortiGuard Labs.
 

Vulnerability Description:
-----------------------------
This vulnerability has been tested on Firefox 78.0.1 (64-bit) under Windows 10. To leak the protocol handlers in Firefox, we leverage differences in the way Firefox renders images sourced from existing and non-existing protocol handlers.
 
For example, if we try to load a web page containing the following element - 

<img src=”search-ms://abc”>

and observe the elements styling using developer tools, we would see that the default styling for broken images generates element with size of 24x24. Unlike the example above, if we try to create an image element and set source to some non-existent handler like the following - 
 
<img src=”NonExistingHandler://abc”>
 
this will result with an element with different sizing of 0x0.

This difference can be measured using a simple JS script. Basing on this, a malicious actor may perform a brute-force attack to disclose the different protocol handlers on a targeted system.


please note that the ff.html file contains the PoC for this vulnerability.

Thanks,

Rotem Kerner

The original report as published on Mozilla's Bugzilla, by Rotem Kerner. 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, Firefox applies different default styling to broken images depending on whether the protocol handler exists, creating a measurable side channel.

Impact

An attacker could brute-force and disclose which protocol handlers are present on a targeted system, aiding in fingerprinting.

What the attacker needed

Victim uses Firefox; victim visits a malicious page

How it was found

  1. Create an image element with a source using a protocol handler to test.
  2. Observe the rendered size of the image element.
  3. Compare sizes to determine if the handler exists.
  4. Repeat for other handlers to enumerate them.

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 protocol handler is a program that opens a specific type of link, like mailto: for email. This report shows that Firefox displays images from known handlers at a normal size but images from unknown handlers as zero-sized. A malicious website can use this size difference to check which programs are installed on your computer.

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.