Skip to content
Disclosed report CVE-2015-7187

To disable JS, set { script: false } when creating the panel, but inline JS is still executing

jason Follow

Originally disclosed on Mozilla

  • Fixed in 45 days
  • Paid in 48 days
  • Disclosed after 45 days
Text
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36

Steps to reproduce:

1. Create a browser extension for Firefox.

2. Create a panel with script: false:

function createPanel () {
        var sd = require("sdk/self").data;
        myPanel = require("sdk/panel").Panel({ 
                        width: 640, 
                        height: 522, 
                        allow: { script: false },
                        contentScriptFile: [ sd.url("full.js"), sd.url("popupscript.js") ]
    

3. Pull an external html page into the panel and include: <script>alert('this shouldnt happen');</script>

Issue was found on firefox 40, but I believe it exists prior.


Actual results:

Alert box with "this shouldnt happen" appears.


Expected results:

Inline script should have been ignored due to this flag:

allow: { script: false }

The original report as published on Mozilla's Bugzilla, by jason. 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.

What is known

A medium-severity security bug in General. Mozilla made it public on 2 October 2015 as CVE-2015-7187.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.