Fix: security
Add another restriction
This commit is contained in:
parent
9cc3bf0f87
commit
ea94610492
@ -84,6 +84,7 @@ function test_sql_and_script_inject($val, $get)
|
||||
// For XSS Injection done by adding javascript with script
|
||||
$sql_inj += preg_match('/<script/i', $val);
|
||||
$sql_inj += preg_match('/img[\s]src/i', $val);
|
||||
$sql_inj += preg_match('/base[\s]href/i', $val);
|
||||
if ($get) $sql_inj += preg_match('/javascript:/i', $val);
|
||||
// For XSS Injection done by adding javascript with onmousemove, etc... (closing a src or href tag with not cleaned param)
|
||||
if ($get) $sql_inj += preg_match('/"/i', $val); // We refused " in GET parameters value
|
||||
|
||||
Loading…
Reference in New Issue
Block a user