Wednesday, August 26, 2015

CVE-2015-4483: Firefox Mixed Content Blocker bypass with feed: protocol

Today, I would like to share details of CVE-2015-4483. This bug was fixed in Firefox 40. Security advisory is here.

Usually, Firefox can block mixed content as follows:

But using feed: protocol and POST method as follows, we can bypass it:
<form action="feed:" method="post">
<input type="submit" value="go">

To use this bug, we need http: resource in target https: website. So, you might think such website is broken from the beginning. But wait! I think this bug affects many websites.

Please go to the following page and see location.protocol:

location.protocol returns "feed:". Next, let's see Google Analytics tracking code.

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxx-y']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
Let's take a look at red js code. If location.protocol is not "https:", insecure ga.js ( is loaded in the page. Combining with "location.protocol==feed:" trick, what's going to happen? Yes, we can load insecure js via GA tracking code! :)

For example, we can load insecure js in as follows:

Firefox 40 can block mixed content properly. But it seems that we can still put "feed:" string to protocol part of URL.

Thank you!


  1. Viagra Online
    Viagra Online works to treat ED pills Online by helping you have and maintain an erection. Buy Viagra Online is a type of drug called type 5 (PDE5). It works by the action of an enzyme called PDE5. After taking Buy generic 100mg Viagra Online, it quickly enters your system. It starts working after about an hour, but you can take it anywhere from 30 minutes to 4 hours before sexual activity.
    Buy Viagra Online


  2. Online Viagra
    Uses of Viagra
    Generic Viagra Online For Sale is safe in stable diseases, heart failure, and artery disease. In addition, many have looked, there has been no clear evidence that Cheap Viagra has an increased rate of heart attacks or events. Canada Viagra helps blood flow to the penis, but your brain is still your most sex organ. Viagra Canada won’t work if you’re not in the mood. Some side effects of Viagra from Canada are headaches and a runny or blocked nose or a nosebleed. In addition, some men feel or dizzy.
    generic Viagra Online

  3. Hey there! Thanks for sharing about bypassing Firefox's Mixed Content Blocker with the feed: protocol. It's a neat trick to know for sure! By the way, if you're into creating infographics, I'd love to hear more about your favorite infographic makers.

  4. This comment has been removed by the author.