[NT] Microsoft Internet Explorer JavaScript Window() Code Execution
From: SecuriTeam (support_at_securiteam.com)
Date: 11/29/05
- Previous message: SecuriTeam: "[NEWS] Cisco PIX TCP Connection DoS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: list@securiteam.com Date: 29 Nov 2005 11:41:55 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Microsoft Internet Explorer JavaScript Window() Code Execution
------------------------------------------------------------------------
SUMMARY
By crafting special Javascript string, attackers can cause Internet
Explorer to execute arbitrary code.
DETAILS
Vulnerable Systems:
* Microsoft Internet Explorer version 5.5
* Microsoft Internet Explorer version 6
The JavaScript "Window()" function when used in conjunction with a <BODY
onload> event. As a result, Internet Explorer encounters an exception when
trying to call a dereferenced 32bit address located in ECX, as highlighted
by the following line of code:
CALL DWORD [ECX+8]
Due to the bug, ECX is inadvertently populated by the Unicode
representation of a text string named "OBJECT", or more specifically
0x006F005B. As offset 0x006F005B points to an invalid (or non-existent)
memory location, Internet Explorer fails to progress, and in turn the end
user experiences an application crash (DoS).
Therefore, as the bug does not yield control of any internal register
and/or points to an offset of which we have no control, the original "low"
risk classification clearly reflects the improbable scenario for remote
code execution.
If we take a closer look at the vulnerability, we actually see that the
instruction is trying to dereference an offset in the range of 0x00600000,
which, coincidently, is reserved for the facilitation of all opened Window
characteristics on the desktop.
These structures vary in both length and content, but in the main, take
the form of window titles, buttons, and any File/edit/View menus bars
attributable to a particular Window session.
Consequently, it is feasible to assume that offset 0x006F005B could be
arrived at through the invocation of several new Windows structures, for
example circa 12 new web browsing sessions, which would increment
0x00600000 into 0x006F005B.
If this were possible, it would just leave the problem of trying to
identify a means by which custom shellcode could be inserted via one of
the Window Elements, and correctly aligned against the called
[0x006F005B].
Accordingly, several methods were tested. By using a combination of
multiple open windows (expanding the memory section), and legal techniques
that allow the modification of certain Window elements (examples below),
3rd party code execution was eventually realised!
Example:
1. Long HTML <TITLE>
2. Long embedded Document File Names
3. Large Alert Boxes
Unfortunately, all methods tested suffered from one major flaw -
inconsistency.
The assumption that a potential victim has a clean desktop (no open
applications) compounded by the fact that most window elements encompasses
some form of content length restriction, results in a very small
opportunity for any realistic exploitation.
Except, for one particular approach... a JavaScript prompt box.
By employing a simple technique to invoke multiple occurrences of large
JavaScript prompt Boxes, it is possible to flood/saturate the remoteness
between 0x00600000 - 0x006F005B ++ with data of our choice, yielding very
reliable execution of arbitrary code.
Proof of Concept:
<http://www.computerterrorism.com/research/ie/poc.htm>
http://www.computerterrorism.com/research/ie/poc.htm
ADDITIONAL INFORMATION
The information has been provided by
<mailto:securityadvisory@computerterrorism.com> computerterrorism.com.
The original article can be found at:
<http://www.computerterrorism.com/research/ie/ct21-11-2005>
http://www.computerterrorism.com/research/ie/ct21-11-2005
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Previous message: SecuriTeam: "[NEWS] Cisco PIX TCP Connection DoS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
- [NEWS] Palm OS Treo Find Feature System Password Bypass
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... use this vulnerability
to retrieve information from a locked device. ... the Find window on the bottom half of
the screen. ... To access the Edit window, press the Menu key while the Find window is
... (Securiteam) - [NEWS] Firefox: about:blank is Phishers Best Friend
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... origin of the displayed data.
... Having text displayed in a window that has an empty URL bar can confuse ...
there was an old UI spoofing bug - when a window was opened ... (Securiteam) - [EXPL] TCP Window Size RST
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... (IP addresses of the peers and
port numbers). ... be used to reset any TCP connection once the range of sequence
numbers is ... irssi's window size was larger so I figured ... (Securiteam) - [NT] SetWindowLong Shatter Attacks
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... The SetWindowLong function
changes an attribute of the specified window. ... the extra window memory of a window.
... Specifies the zero-based offset to the value to be set. ... (Securiteam) - [NT] Comodo DLL Injection via Weak Hash Function Exploitation Vulnerability
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Comodo DLL Injection via
Weak Hash Function Exploitation Vulnerability ... register unsigned long crc; ...
This program assumes that Internet Explorer is a privileged application ... (Securiteam)