AlphaOne Technology Support Forums
Welcome, Guest. Please login or register.
January 08, 2009, 03:08:43 AM

Login with username, password and session length
Search:     Advanced search
1733 Posts in 827 Topics by 5342 Members
Latest Member: hikslyypro
* Home Help Search Login Register
AlphaOne Technology Support Forums  |  IMPORTANT ANNOUNCEMENTS  |  Security Announcements  |  Windows-based Security Issues  |  Topic: Microsoft HTML Help vulnerable to integer overflow 0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Microsoft HTML Help vulnerable to integer overflow  (Read 929 times)
Brad
SysAdmin
Tech Team
Hero Member
********
Offline Offline

Posts: 391



View Profile
Microsoft HTML Help vulnerable to integer overflow
« on: June 28, 2005, 11:03:13 PM »

Overview
Microsoft HTML Help contains an integer overflow vulnerability, allowing a remote attacker to execute arbitrary code.

I. Description
HTML Help

The Microsoft HTML Help system ". . . is the standard help system for the Windows platform." HTML Help components can be compiled to ". . . compress HTML, graphic, and other files into a relatively small compiled help (.chm) file. . ." The resulting compiled Help (CHM) file can then ". . . be distributed with a software application, or downloaded from the Web." The Help Viewer application ". . . uses the underlying components of Microsoft Internet Explorer to display help content. It supports HTML, ActiveX, Java, scripting languages (JScript, and Microsoft Visual Basic Scripting Edition). . ."

The InfoTech Storage Format

CHM files use the Microsoft InfoTech Storage format (ITS). IE can access components within CHM files (via the IStorage interface) using several protocol handlers: ms-its, ms-itss, its, mk:@MSITStore.

For example, the following URL references an HTML file within a CHM file hosted on a remote web site:

    ms-its:http://www.example.com/directory/path/compiledhelpfile.chm:/htmlfile.html

This URL references a local CHM file:

    its:file://c:\directory\path\compiledhelpfile.chm:/htmlfile.html

The Problem

Microsoft HTML Help contains an integer overflow vulnerability. A CHM file with a specially crafted size field can cause a buffer overflow in HTML Help, which can corrupt heap memory.

II. Impact
By convincing a victim to view a specially crafted CHM file, an attacker could execute arbitrary code with the privileges of the user. By using one of the InfoTech Storage Format protocols, such as ms-its, an attacker can cause open an arbitrary CHM file as the result of viewing an HTML document (web page, HTML email).

III. Solution
Upgrade or patch

Microsoft has addressed this issue in Microsoft Security Bulletin MS05-026, http://www.microsoft.com/technet/security/bulletin/MS05-026.mspx.

Workarounds

Unregister the HTML Help InfoTech protocol

Unregister the InfoTech Protocol. Although this does not remove the vulnerability, it may remove some attack vectors such as viewing a specially crafted HTML document. According to the Microsoft Security Bulletin, the following steps will unregister the HTML Help InfoTech protocol:

            1. Click Start, click Run, type "regsvr32 /u %windir%\system32\itss.dll" (without the quotation marks), and then click OK.

            Note On Windows 98 and Windows Millennium Edition, replace "system32" with "system" in this command.

            2. A dialog box appears and confirms that the unregistration process has succeeded. Click OK to close the dialog box.

            Impact of Workaround: All HTML Help functionality will be unavailable. This will affect the online Help in Windows or in any application that uses HTML Help functionality.

References


http://www.microsoft.com/technet/security/bulletin/MS05-026.mspx
http://www.ngssoftware.com/advisories/msitss.txt
http://www.eeye.com/html/research/advisories/AD20050614.html
http://secunia.com/advisories/15683/
http://www3.ca.com/securityadvisor/vulninfo/vuln.aspx?id=33045
http://www.osvdb.org/displayvuln.php?osvdb_id=17305
Logged

Pages: [1] Go Up Print 
AlphaOne Technology Support Forums  |  IMPORTANT ANNOUNCEMENTS  |  Security Announcements  |  Windows-based Security Issues  |  Topic: Microsoft HTML Help vulnerable to integer overflow « previous next »
Jump to:  

Powered by MySQL Powered by PHP AlphaOne Technology Support Forums | Powered by SMF 1.0.7.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!