diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index c165d39bcbc..ab4db856975 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -108,6 +108,8 @@ function test_sql_and_script_inject($val, $type) $inj += preg_match('/onerror\s*=/i', $val); // onerror can be set on img or any html tag like $inj += preg_match('/onfocus\s*=/i', $val); // onfocus can be set on input text html tag like $inj += preg_match('/onload\s*=/i', $val); // onload can be set on svg tag or other tag like body + $inj += preg_match('/onclick\s*=/i', $val); // onclick can be set on img text html tag like + $inj += preg_match('/onscroll\s*=/i', $val); // onscroll can be on textarea //$inj += preg_match('/on[A-Z][a-z]+\*=/', $val); // To lock event handlers onAbort(), ... $inj += preg_match('/:|:|:/i', $val); // refused string ':' encoded (no reason to have it encoded) to lock 'javascript:...' //if ($type == 1)