Receiver passed to proxy get hook is not outerized when proxy is on the window's proto chain
Originally disclosed on Mozilla
- Fixed in 9 months
- Paid in 2 months
- Disclosed after 9 months
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".
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.