what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

hyperterm.txt

hyperterm.txt
Posted Dec 30, 2004
Authored by Brett Moore SA

A vulnerability in Microsoft HyperTerminal due to a boundary error in the handling of session files and telnet URLs can cause a buffer overflow by tricking a user into opening a malicious HyperTerminal session file (.ht) or clicking a specially crafted telnet URL in a malicious e-mail or on a website.

tags | advisory, overflow
SHA-256 | d5f48a0b9578759b5f20f38c3291107ddbb5f6e43f50da443fe60a814a424542

hyperterm.txt

Change Mirror Download
========================================================================
= HyperTerminal - Buffer Overflow In .ht File
=
= MS Bulletin posted:
= http://www.microsoft.com/technet/security/bulletin/MS04-043.mspx
=
= Affected Software:
= Microsoft Windows NT Server 4.0 SP 6a
= Microsoft Windows NT Server 4.0 Terminal Server Edition SP6
= Microsoft Windows 2000 SP4
= Microsoft Windows XP SP2
= Microsoft Windows XP 64-Bit Edition SP1
= Microsoft Windows XP 64-Bit Edition Version 2003
= Microsoft Windows Server 2003
= Microsoft Windows Server 2003 64-Bit Edition
=
= Public disclosure on December 15, 2004
========================================================================

== Overview ==

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 which
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.

== Exploitation ==

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.
- Remove the HyperTerminal application.

== Credit ==

Discovered and advised to Microsoft July 15, 2004 by Brett Moore of
Security-Assessment.com

%-) Merry Xmas guys, Ceaser, Ollie, R and the unconventional, Dave,
%-) K2 and the convers crew, DarkSpyrit and the whole eEye team.

== About Security-Assessment.com ==

Security-Assessment.com is a leader in intrusion testing and security
code review, and leads the world with SA-ISO, online ISO17799 compliance
management solution. Security-Assessment.com is committed to security
research and development, and its team have previously identified a
number of vulnerabilities in public and private software vendors products.

######################################################################
CONFIDENTIALITY NOTICE:

This message and any attachment(s) are confidential and proprietary.
They may also be privileged or otherwise protected from disclosure. If
you are not the intended recipient, advise the sender and delete this
message and any attachment from your system. If you are not the
intended recipient, you are not authorised to use or copy this message
or attachment or disclose the contents to any other person. Views
expressed are not necessarily endorsed by Security-Assessment.com
Limited. Please note that this communication does not designate an
information system for the purposes of the New Zealand Electronic
Transactions Act 2003.
######################################################################
Login or Register to add favorites

File Archive:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    28 Files
  • 9
    Jul 9th
    44 Files
  • 10
    Jul 10th
    24 Files
  • 11
    Jul 11th
    25 Files
  • 12
    Jul 12th
    11 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    28 Files
  • 16
    Jul 16th
    6 Files
  • 17
    Jul 17th
    34 Files
  • 18
    Jul 18th
    6 Files
  • 19
    Jul 19th
    34 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    19 Files
  • 23
    Jul 23rd
    17 Files
  • 24
    Jul 24th
    47 Files
  • 25
    Jul 25th
    31 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close