This commit is contained in:
Amberstone 2024-10-05 05:53:57 +09:00
parent 3a186fd873
commit 8cc0463ff4
Signed by: amber
GPG key ID: 094B0E55F98D8BF1

View file

@ -432,7 +432,7 @@ function admin_check_xss_params($params)
if (is_array($value)) { if (is_array($value)) {
admin_check_xss_params($value); admin_check_xss_params($value);
} else if (preg_match('/<\s?[^\>]*\/?\s?>/i', $value) && (preg_match('/script.*?\/script/ius', $value) || preg_match('/[onload|onerror]=.*/ius', $value))) { } else if (preg_match('/<\s?[^\>]*\/?\s?>/i', $value) && (preg_match('/script.*?\/script/ius', $value) || preg_match('/(onload|onerror)=.*/ius', $value))) {
alert('요청 쿼리에 잘못된 스크립트문장이 있습니다.\\nXSS 공격일수도 있습니다.'); alert('요청 쿼리에 잘못된 스크립트문장이 있습니다.\\nXSS 공격일수도 있습니다.');
die(); die();
} }