Skip to content
Disclosed report CVE-2012-3994

Object.defineProperty can shadow |top|

Mariusz Mlynski Follow

Originally disclosed on Mozilla

  • Fixed in 2 months
  • Paid in 7 months
  • Disclosed after 2 months
Text
Created attachment 633854
shadow top.location test

Filing a new bug, as requested by Boris in Bug 756719 comment 10.

With bug 750307 fixed, the location property itself seems to be hardened well enough, but plugins may try to access it through |top.location| -- for instance, Adobe Flash Player opens javascript:top.location+"__flashplugin_unique__" to determine the page origin. And it is possible to shadow |top| using Object.defineProperty.

Incidentally, Google Chrome seems to disallow redefining |top|.

The original report as published on Mozilla's Bugzilla, by Mariusz Mlynski. 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 high-severity security bug in DOM: Core & HTML. Mozilla made it public on 26 August 2012 as CVE-2012-3994.

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

More by Mariusz Mlynski

View all

26 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.