Skip to content
Disclosed report CVE-2015-4502

Receiver passed to proxy get hook is not outerized when proxy is on the window's proto chain

Boris Zbarsky Follow

Originally disclosed on Mozilla

  • Fixed in 9 months
  • Paid in 2 months
  • Disclosed after 9 months
Text
Created attachment 8528652
Testcase

Credit for finding this goes to André Bargull (cced).

If you have a proxy that has a handler like this:

  {
    get: function(t,pk,r) {
    },
    has: function(t,pk) {
      return pk == 'try_to_get_global_object';
    }
  }

on the proto chain of the window and then you evaluate the bareword "try_to_get_global_object" then the "r" that's passed to the get hook is the inner window.  The attached testcase shows this clearly: r === window tests false, but calling a getter on "r" that just returns "this" (which just serves to outerize) returns something that's equal to "window".

The original report as published on Mozilla's Bugzilla, by Boris Zbarsky. 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 JavaScript Engine. Mozilla made it public on 14 August 2015 as CVE-2015-4502.

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

More by Boris Zbarsky

View all

1 more disclosed report, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.