From b2feac9d90f2ecfd5916c4d49176ff1a138744c8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 4 Jan 2018 19:25:52 +0100 Subject: [PATCH] CVE-2017-17971 --- htdocs/main.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 2b4ad4de3c5..501b7d8a97f 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -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 $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 input text html tag like + $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 textarea if ($type == 1) { $inj += preg_match('/javascript:/i', $val);