Exploit database

Vulnerability

CVE-2005-1790

Vulnerability details

Score
2.6
Severity
low

CVSS 2.0 · NVD

Vector string

AV:N/AC:H/Au:N/C:N/I:N/A:P

Description

Microsoft Internet Explorer 6 SP2 6.0.2900.2180 and 6.0.2800.1106, and earlier versions, allows remote attackers to cause a denial of service (crash) and execute arbitrary code via a Javascript BODY onload event that calls the window function, aka "Mismatched Document Object Model Objects Memory Corruption Vulnerability."

CVE Program

Exploit source choices

2 sources
MS05-054 Microsoft Internet Explorer JavaScript OnLoad Handler Remote Code Execution
MSF-windows--browser--ms05_054_onloadMetasploitWindows / remote

This bug is triggered when the browser handles a JavaScript 'onLoad' handler in conjunction with an improperly initialized 'window()' JavaScript function. This exploit results in a call to an address lower than the heap. The javascript prompt() places our shellcode near where the call operand points to. We call prompt() multiple times in separate iframes to place our return address. We hide the prompts in a popup window behind the main window. We spray the heap a second time with our shellcode and point the return address to the heap. I use a fairly high address to make this exploit more reliable. IE will crash when the exploit completes. Also, please note that Internet Explorer must allow popups in order to continue exploitation.

2005-11-21ms05_054_onload.rb