Skip to content

J-Security Center

Latest Attack Object Updates
  • IDP Daily Update #1282
    posted: 10/10/08
  • NSM Daily Update #1282
    posted: 10/10/08
  • Deep Inspection 5.3r5 and above, 5.4, 6.0 #1282
    posted: 10/10/08
  • Deep Inspection 5.1, 5.2, 5.3r4 and below #1274
    posted: 10/10/08
  • Deep Inspection 5.0 #1132
    posted: 04/01/08
  • Antivirus
    posted: 10/10/08

Title: Microsoft Windows ASN.1 Library Bit String Processing Integer Handling Vulnerability

Severity: CRITICAL

Description:

Microsoft Windows Abstract Syntax Notation 1 (ASN.1) handling Library (MSASN1.dll) is shipped as a part of the Microsoft Windows Operating System. The MSASN1 library provides an application programmer's interface into Microsoft ASN.1 encoding/decoding and processing functions.

Microsoft ASN.1 handling library has been reported prone to an integer overflow vulnerability that may result in arbitrary heap-based memory corruption. The issue presents itself in the ASN.1 BER decoding/encoding routines, specifically the ASN1BERDecBitString() function. ASN1BERDecBitString() handles constructed bit strings by concatenating each of the simple bit strings that comprise the compound one. The integer overflow occurs when a bit string is processed and the number of bits in the bit string is added to the cumulative total as follows:
lea eax, [ecx+eax+7]

This may provide a conduit for an attacker to trigger a boundary condition error. When the first bit string processed by ASN1BERDecBitString possesses a specified signed length of 0xfffffff9(-7), and then the aforementioned arithmetic (ecx+eax+7) sums the accumulated bits (0) with the signed length of the bit string (-7). The rounding value (+7) is then added to the total. This will result in a total assigned length of zero.

It has been reported that this value is then further processed by the DecMemReAlloc() function call, and ultimately results in a zero-byte chunk being allocated on the heap. The original bit string lengths are passed to the function ASN1bitcpy(). This function later performs a memcpy() operation to copy supplied bit string data into the zero-byte allocated heap based buffer. This operation will result in the corruption of heap based management structures, and may ultimately be leveraged by an attacker to have arbitrary code executed in the context of the affected process.

This vulnerability is exposed in a number of security related operating system components, including Kerberos (via UDP port 88), Microsoft IIS with SSL support enabled and NTLMv2 authentication (via TCP ports 135, 139 and 445). Other components may also be affected, though a comprehensive list is not available at this time. Client applications which use the library will be affected, including LSASS.EXE and CRYPT32.DLL (and any application that relies on CRYPT32.DLL). The vulnerable library is used frequently in components that handle certificates such as Internet Explorer and Outlook. Handling of signed ActiveX components could also present an exposure.

It should be noted that because ASN.1 data will likely be encoded, for example Kerberos, SSL, IPSec or Base64 encoded, the malicious integer values may be obfuscated and as a result not easily detectable.

This vulnerability was originally covered in BID 9626, but further information has been made available which identifies a number of distinct vulnerabilities in the library and so this specific issue has been assigned an individual BID.

Affected Products:

  • AOL Instant Messenger 5.0.2938
  • AOL Instant Messenger 5.1.3036
  • AOL Instant Messenger 5.2.3292
  • AOL Instant Messenger 5.5.3415 Beta
  • Adobe Acrobat 5.0.0
  • Adobe Acrobat 5.0.5
  • Adobe Acrobat 6.0.0
  • Altova xmlspy Enterprise Edition 0.0.02004
  • Altova xmlspy Enterprise Edition 0.0.02004 R2
  • Altova xmlspy Home Edition 0.0.02004
  • Altova xmlspy Home Edition 0.0.02004 R2
  • Altova xmlspy Professional Edition 0.0.02004
  • Altova xmlspy Professional Edition 0.0.02004 R2
  • Avaya DefinityOne Media Servers
  • Avaya IP600 Media Servers
  • Avaya S3400 Message Application Server
  • Avaya S8100 Media Servers
  • Intuit Quicken 2003 0.0.0
  • Intuit TurboTax 2003 0.0.0
  • JASC Software PaintShop Pro 5.0.0
  • JASC Software PaintShop Pro 5.0.01
  • JASC Software PaintShop Pro 5.0.03
  • JASC Software PaintShop Pro 6.0.0
  • JASC Software PaintShop Pro 6.0.01
  • JASC Software PaintShop Pro 6.0.02
  • JASC Software PaintShop Pro 7.0.0
  • JASC Software PaintShop Pro 7.0.01
  • JASC Software PaintShop Pro 7.0.02
  • JASC Software PaintShop Pro 7.0.04
  • JASC Software PaintShop Pro 8.0.00
  • JASC Software PaintShop Pro 8.0.01
  • JASC Software PaintShop Pro 8.10.0
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Advanced Server SP1
  • Microsoft Windows 2000 Advanced Server SP2
  • Microsoft Windows 2000 Advanced Server SP3
  • Microsoft Windows 2000 Advanced Server SP4
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Professional SP1
  • Microsoft Windows 2000 Professional SP2
  • Microsoft Windows 2000 Professional SP3
  • Microsoft Windows 2000 Professional SP4
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Server SP1
  • Microsoft Windows 2000 Server SP2
  • Microsoft Windows 2000 Server SP3
  • Microsoft Windows 2000 Server SP4
  • Microsoft Windows 98
  • Microsoft Windows 98SE
  • Microsoft Windows NT Server 4.0.0
  • Microsoft Windows NT Server 4.0.0 SP1
  • Microsoft Windows NT Server 4.0.0 SP2
  • Microsoft Windows NT Server 4.0.0 SP3
  • Microsoft Windows NT Server 4.0.0 SP4
  • Microsoft Windows NT Server 4.0.0 SP5
  • Microsoft Windows NT Server 4.0.0 SP6
  • Microsoft Windows NT Server 4.0.0 SP6a
  • Microsoft Windows NT Terminal Server 4.0.0
  • Microsoft Windows NT Terminal Server 4.0.0 SP1
  • Microsoft Windows NT Terminal Server 4.0.0 SP2
  • Microsoft Windows NT Terminal Server 4.0.0 SP3
  • Microsoft Windows NT Terminal Server 4.0.0 SP4
  • Microsoft Windows NT Terminal Server 4.0.0 SP5
  • Microsoft Windows NT Terminal Server 4.0.0 SP6
  • Microsoft Windows NT Workstation 4.0.0
  • Microsoft Windows NT Workstation 4.0.0 SP1
  • Microsoft Windows NT Workstation 4.0.0 SP2
  • Microsoft Windows NT Workstation 4.0.0 SP3
  • Microsoft Windows NT Workstation 4.0.0 SP4
  • Microsoft Windows NT Workstation 4.0.0 SP5
  • Microsoft Windows NT Workstation 4.0.0 SP6
  • Microsoft Windows NT Workstation 4.0.0 SP6a
  • Microsoft Windows Server 2003 Datacenter Edition
  • Microsoft Windows Server 2003 Datacenter Edition Itanium
  • Microsoft Windows Server 2003 Enterprise Edition
  • Microsoft Windows Server 2003 Enterprise Edition Itanium
  • Microsoft Windows Server 2003 Standard Edition
  • Microsoft Windows Server 2003 Web Edition
  • Microsoft Windows XP 64-bit Edition
  • Microsoft Windows XP 64-bit Edition SP1
  • Microsoft Windows XP 64-bit Edition Version 2003
  • Microsoft Windows XP 64-bit Edition Version 2003 SP1
  • Microsoft Windows XP Home
  • Microsoft Windows XP Home SP1
  • Microsoft Windows XP Professional
  • Microsoft Windows XP Professional SP1
  • Musicmatch Inc. Musicmatch Jukebox 8.0.0
  • Musicmatch Inc. Musicmatch Jukebox 8.1.0
  • Musicmatch Inc. Musicmatch Jukebox 8.2.0
  • Van Dyke Technologies SecureCRT 4.0.1
  • Van Dyke Technologies SecureCRT 4.0.2
  • Van Dyke Technologies SecureCRT 4.0.3
  • Van Dyke Technologies SecureCRT 4.0.4
  • Van Dyke Technologies SecureCRT 4.0.5
  • Yahoo! Messenger 5.5.0
  • Yahoo! Messenger 5.5.0 .1249
  • Yahoo! Messenger 5.6.0
  • Yahoo! Messenger 5.6.0 .0.1347
  • Yahoo! Messenger 5.6.0 .0.1351
  • Yahoo! Messenger 5.6.0 .0.1355
  • Yahoo! Messenger 5.6.0 .0.1356
  • Yahoo! Messenger 5.6.0 .0.1358

References: