Internet Explorer 6 heap-based buffer overflow via long SRC/NAME attributes in IFRAME/FRAME/EMBED (MS04-040)
A heap-based buffer overflow in Microsoft Internet Explorer 6 is triggered when processing specially crafted HTML containing overly long SRC or NAME attributes in IFRAME, FRAME, and EMBED elements (commonly referred to as the “IFRAME vulnerability” / “HTML Elements Vulnerability”). The overflow occurs during handling of these long attribute values, enabling memory corruption that can be leveraged for arbitrary code execution in the context of the user running IE, and can also result in a crash of IE or applications hosting the WebBrowser ActiveX control.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Remote code execution with the privileges of the user running Internet Explorer (or a host application using the WebBrowser ActiveX control). Also enables denial of service via crashing IE/host applications. Reported exploitation in the wild by malware (e.g., Bofra / W32-MyDoom variants).
If you can’t patch tonight, do this now.
Disable Active scripting in the Internet zone (and any zone used by applications leveraging the WebBrowser ActiveX control). Avoid following unsolicited links. Use current versions of Outlook/Outlook Express that default to the Restricted Sites Zone; render email in plain text. Keep antivirus up to date (as a supplemental control).
Patch, then assume compromise.
Apply the vendor fix referenced in Microsoft Security Bulletin MS04-040. Alternatively, install Windows XP Service Pack 2 (not affected per the provided advisory).
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.