[NT] Buffer Overflow in HyperTerminal's .ht Files (MS04-043)
From: SecuriTeam (support_at_securiteam.com)
Date: 12/15/04
- Previous message: SecuriTeam: "[NT] Microsoft Word 6.0/95 Document Converter Buffer Overflow (MS04-041)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: list@securiteam.com Date: 15 Dec 2004 19:25:05 +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
- - - - - - - - -
Buffer Overflow in HyperTerminal's .ht Files (MS04-043)
------------------------------------------------------------------------
SUMMARY
When thinking about buffer overflow vulnerabilities, a file can sometimes
be as harmful as a packet. Even though past security issues have taught us
that it is unwise to use a string from a file/packet without first
checking its length, this is what happened here.
HyperTerminal will save sessions as files with the extension of .ht that
will contain the connection info for the current session. It is then
possible to have the connection restarted by loading or executing the
saved session file. Through the creation of a corrupt .ht file, it is
possible to gain control of EIP and execute arbitrary code.
DETAILS
It appears that a section of the heap, that is overwritten with the
corrupt file, contains a lookup table that is later used through a CALL
[ECX+374] instruction.
This allows for exploitation even on systems like XP SP2, as the
stack/heap protection does not come into play.
Basic exploitation can be achieved through sending the target user the
corrupt file. Once the file is opened, and HyperTerminal is closed any
arbitrary code will be executed.
Remote exploitation through Internet Explorer can be obtained through the
use of an iframe or other similar object to open a file from a public UNC
share or through a 'coupled' browser exploit that saves the file to a
known location before opening it. If HyperTerminal is the current default
telnet handler, Internet Explorer will automatically open the corrupt
file, leading to exploitation.
There did appear to be some URL manipulation that caused the \ character
to be altered, preventing the use of the UNC share, but this filtering
could be prevented by the use of another valid URL character.
Solutions:
- Install the vendor supplied patch available from:
<http://www.microsoft.com/technet/security/bulletin/MS04-043.mspx>
http://www.microsoft.com/technet/security/bulletin/MS04-043.mspx
- Remove the HyperTerminal application.
ADDITIONAL INFORMATION
The information has been provided by
<mailto:brett.moore@security-assessment.com> Brett Moore.
========================================
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: "[NT] Microsoft Word 6.0/95 Document Converter Buffer Overflow (MS04-041)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
- [UNIX] Jetbox Multiple Vulnerabilities
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... a user's browser session
in context of an affected site. ... exploited to execute arbitrary HTML and script code
in a user's browser ... Successful exploitation may lead to execution of arbitrary PHP
code by ... (Securiteam) - [NT] Microsoft Internet Explorer ART File Heap Corruption
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Microsoft Internet Explorer
ART File Heap Corruption ... Remote exploitation of a heap corruption vulnerability
in Microsoft ... (Securiteam) - [NEWS] Symantec Norton AntiVirus Multiple Local Privilege Escalation (MacOS)
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Local exploitation of a
design error in the DiskMountNotify specifically ... "/Library/Application Support/Norton Solutions
Support/Norton ... Vendor Response: ... (Securiteam) - [UNIX] Joomla BSQ Sitestats Component Multiple Vulnerabilities
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Secunia Research has discovered
some vulnerabilities in the BSQ ... SQL query. ... Successful exploitation
requires that "register_globals" is enabled. ... (Securiteam) - [UNIX] ADOdb SQL Injection and PHP Code Execution Vulnerabilities
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... ADOdb SQL Injection and
PHP Code Execution Vulnerabilities ... test script. ... Successful exploitation
requires that the affected script is placed ... (Securiteam)