- Joined
- Jun 5, 2006
- Messages
- 133
- Reaction score
- 0
sorry theoutlawtorn, the only person around that could hack my server is mo3head, and we're homies. And no I'm not giving it out.
$act1= $_GET['act'];
if (($act1)!="drop")
{
$act2 = test($act1);
if (($act1) != ($act2))
{
$_GET['act'] = "";
header( 'Location: http://lostsoulzko.net' ) ;
exit;
}
}
final fix for this vulnerability:
index.php
if (!empty($_GET['act']) && (file_exists('./' . $_GET['act'] . '.php'))) {
echo $part1;
include('./' . $_GET["act"] . '.php');
insted of this insert this:
if (!empty($_GET['act']) && (file_exists('./' . trim($_GET['act']) . '.php'))) {
echo $part1;
include('./' . trim($_GET["act"]) . '.php');
function test($str){
$mal = array(" ", "%", "\\","/","+","-","(",")","*",";");
$ret = str_replace($mal, "", $str);
$ret = str_replace("'","''",$ret);
return $ret;
}