CVE-2017-17971
This commit is contained in:
parent
f6ff6610e4
commit
b2feac9d90
@ -102,6 +102,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 <img title='...' onerror = alert(1)>
|
||||
$inj += preg_match('/onfocus\s*=/i', $val); // onfocus can be set on input text html tag like <input type='text' value='...' onfocus = alert(1)>
|
||||
$inj += preg_match('/onload\s*=/i', $val); // onload can be set on input text html tag like <input type='text' value='...' onfocus = alert(1)>
|
||||
$inj += preg_match('/onclick\s*=/i', $val); // onclick can be set on img text html tag like <img onclick = alert(1)>
|
||||
$inj += preg_match('/onscroll\s*=/i', $val); // onscroll can be textarea
|
||||
if ($type == 1)
|
||||
{
|
||||
$inj += preg_match('/javascript:/i', $val);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user