![]() |
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
following from this thread: http://www.indexscript.com/forum/showthread.php?t=2260 - i'm posting a consolidated fix in this thread for the sql injection security hole exploited today:
if you are using v2.8 and have not modified your utils.php file found in the include folder: 1. you can simply download the utils.php attached in this post for v2.8 and replace your existing one with it if you are using v2.7 and have not modified your utils.php file found in the include folder: 1. you can simply download the utils.php attached in this post for v2.7 and replace your existing one with it if you want to perform a manual replace: 1. open up your utils.php in the include folder 2. look for: Code:
function fnpreparesql($field) {
if(!get_magic_quotes_gpc()) {
return mysql_real_escape_string($field);
}
else {
return $field;
}
}
Code:
function fnpreparesql($field) {
if(get_magic_quotes_gpc()) {
$temp = stripslashes($field);
}
else {
$temp = $field;
}
if(stristr($temp, "dir_login")) {
$temp = "";
}
return mysql_real_escape_string($temp);
}
Code:
= " . $cat_id Code:
= " . fnpreparesql($cat_id) Code:
= " . $start_id Code:
= " . fnpreparesql($start_id) Code:
= " . $row['parent_id'] Code:
= " . fnpreparesql($row['parent_id']) Code:
= " . $row['cat_id'] Code:
= " . fnpreparesql($row['cat_id'])
__________________
Get your IndexScript skins HERE Some other interesting sites: Pneumococcal Diseases | Learn about Colic | Pregnancy Articles | Humor Portal Last edited by hakon : 07-26-2007 at 05:38 PM. Reason: consolidate fix into a single thread |
| Thread Tools | |
| Display Modes | |
|
|