Changeset 12 for trunk/client/modules.php
- Timestamp:
- Dec 2, 2009, 6:20:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules.php
r10 r12 27 27 } 28 28 29 30 29 if(isset($_SERVER['QUERY_STRING']) && (!stripos_clone($_SERVER['QUERY_STRING'], "ad_click") || !stripos_clone($_SERVER['QUERY_STRING'], "url"))) { 31 30 $queryString = $_SERVER['QUERY_STRING']; 32 if (stripos_clone($queryString,'%20union%20') OR stripos_clone($queryString,' /*') OR stripos_clone($queryString,'*/union/*') OR stripos_clone($queryString,'c2nyaxb0') OR stripos_clone($queryString,'+union+') OR stripos_clone($queryString,'http://') OR (stripos_clone($queryString,'cmd=') AND !stripos_clone($queryString,'&cmd')) OR (stripos_clone($queryString,'exec') AND !stripos_clone($queryString,'execu')) OR stripos_clone($queryString,'concat')) {31 if (stripos_clone($queryString,'%20union%20') OR stripos_clone($queryString,'..') OR stripos_clone($queryString,'+') OR stripos_clone($queryString,'/*') OR stripos_clone($queryString,'*/union/*') OR stripos_clone($queryString,'c2nyaxb0') OR stripos_clone($queryString,'+union+') OR stripos_clone($queryString,'http://') OR (stripos_clone($queryString,'cmd=') AND !stripos_clone($queryString,'&cmd')) OR (stripos_clone($queryString,'exec') AND !stripos_clone($queryString,'execu')) OR stripos_clone($queryString,'concat')) { 33 32 die('Operazione non consentita'); 34 33 } 35 34 } 36 37 35 38 36 foreach ($_GET as $sec_key => $secvalue) { … … 211 209 if (isset($param['tema'])){ 212 210 $tema=$param['tema']; 211 $tema=htmlentities($tema); // evita xss 212 if(eregi("%", $tema)) $tema="default";// evita xss 213 213 $_SESSION['newtema']="$tema"; 214 214 } 215 216 if (eregi("%",$_SESSION['newtema'])) $_SESSION['newtema']="default"; // xss 215 217 if (isset($_SESSION['newtema'])) $tema=$_SESSION['newtema']; 216 217 218 218 219 219 $PHP_SELF=$_SERVER['PHP_SELF'];
Note:
See TracChangeset
for help on using the changeset viewer.