Nullsoft Winamp Heap Overrun Flaw (Jan 29, 2009)

By

Nullsoft Winamp is a multimedia player application that is capable of playing many formats of audio and video files. Winamp can play AIFF media file which has file extension .aiff. A heap-buffer overrun vulnerability exists in the way that Winamp handles the AIFF files.

The AIFF file consists of a header and followed by chunks. One of the chunks in AIFF file is COMM chunk. The structure of the COMM chunk is as below:

 Type Size Description --------- ----- ------------------------------------ 0x0000 4 "COMM"  0x0004 4 < COMM chunk size > 0x0008 2 < Number of channels(c) > 0x000A 4 < Number of frames(f) > 0x000E 2 < bits/samples(b) > 0x0010 10 < Sample rate > 

The vulnerability is due to the codes allocate a fixed heap buffer, but use the data from “COMM chunk size” field in the file showed above as the counter, which can cause the overrun of the allocated heap butter. A successful exploitation with this vulnerability would allow the attacker to execute arbitrary code on the vulnerable system in the context of the logged in user.

SonicWALL UTM team has developed and released the following IPS signatures.

  • 5262 Nullsoft Winamp AIFF Parsing Heap BO Attempt 1
  • 5363 Nullsoft Winamp AIFF Parsing Heap BO Attempt 2

The signatures have generated the following hits in a few days:

screenshot

Security News
The SonicWall Capture Labs Threat Research Team gathers, analyzes and vets cross-vector threat information from the SonicWall Capture Threat network, consisting of global devices and resources, including more than 1 million security sensors in nearly 200 countries and territories. The research team identifies, analyzes, and mitigates critical vulnerabilities and malware daily through in-depth research, which drives protection for all SonicWall customers. In addition to safeguarding networks globally, the research team supports the larger threat intelligence community by releasing weekly deep technical analyses of the most critical threats to small businesses, providing critical knowledge that defenders need to protect their networks.