|
##################################################################################=0D
## ## _ _ _ _ ##=0D
## Hacker: NanoyMaster ## /|| \ | || \ / ||\ ##=0D
## Exploit: JAF CMS ## / || |\\| || \/ || \ ##=0D
## Version: 4.0 RC1 ## \ || | \ || |\/| || / ##=0D
## ## \||_| \_||_| |_||/ ##=0D
##################################################################################=0D
## vulnerabilities: XSS in shoutbox ##=0D
## PHP execution ##=0D
## XSS in forum ##=0D
## ##=0D
##################################################################################=0D
## \m/___Props___\m/ ##=0D
## z3r0phr34k ##=0D
## System_Meltdown ##=0D
## THK-GEO & THK-h3x ##=0D
## All of Exploitarians ##=0D
##################################################################################=0D
=0D
=0D
//------------------------------------------------------------------------------//=0D
// XSS in shoutbox //=0D
//------------------------------------------------------------------------------//=0D
=0D
Self explanitory... in the message body put: =0D
=0D
Error: module/shout/jafshout.php=0D
Line: 168 - 202=0D
=0D
187 - 191 {=0D
$message = preg_replace('/"/','',$_POST['message']);=0D
$message = preg_replace("/>/",">",$_POST['message']);=0D
$message = preg_replace("/","<",$_POST['message']);=0D
$message = str_replace("onmouse","",$_POST['message']);=0D
$message = str_replace("/\/","edited",$_POST['message']);=0D
}=0D
=0D
change the relevent lines to look like the following, bar the first $_POST['message'].=0D
=0D
187 - 191 {=0D
$message = preg_replace('/"/','',$message);=0D
$message = preg_replace("/>/",">",$message);=0D
$message = preg_replace("/","<",$message);=0D
$message = str_replace("onmouse","",$message);=0D
$message = str_replace("/\/","edited",$message);=0D
}=0D
etc etc.=0D
=0D
*note* =0D
This should be implemented on all of the variables stored to the flat-file=0D
module/files/shout =0D
*end note*=0D
=0D
=0D
//------------------------------------------------------------------------------//=0D
// PHP execution //=0D
//------------------------------------------------------------------------------//=0D
=0D
Yet again in the shoutbox type something like:=0D
=0D
Windoze) =0D
Linux) =0D
=0D
you could see how usefull this could be ;) possably overwright admin/data_inc.php=0D
(where the admin's password hash is) :p=0D
=0D
Error: module/shout/jafshout.php=0D
Line: 168 - 202=0D
Patch: (see above code)=0D
=0D
=0D
//------------------------------------------------------------------------------//=0D
// XSS in forum //=0D
//------------------------------------------------------------------------------//=0D
=0D
Self explanitory... in the message body put: =0D
=0D
Error: module/forum/topicwin.php=0D
Line: 112- 123=0D
=0D
112 - 117 {=0D
$n_topic["name"]=$name;=0D
$n_topic["email"]=$email;=0D
$n_topic["title"]=$title;=0D
$n_topic["date"]=$date;=0D
$n_topic["ldate"]=$date;=0D
$n_topic["lname"]=$name;=0D
}=0D
=0D
change the relevent lines to look like the following.=0D
=0D
112 - 117 {=0D
$n_topic["name"]=htmlentities($name, ENT_QUOTES);=0D
$n_topic["email"]=htmlentities($email, ENT_QUOTES);=0D
$n_topic["title"]=htmlentities($title, ENT_QUOTES);=0D
$n_topic["date"]=htmlentities($date, ENT_QUOTES);=0D
$n_topic["ldate"]=htmlentities($date, ENT_QUOTES);=0D
$n_topic["lname"]=htmlentities($name, ENT_QUOTES); =0D
}=0D
etc etc.=0D
=0D
//------------------------------------------------------------------------------//=0D
// End //=0D
//------------------------------------------------------------------------------//