patch: 474fc8f9a9
This commit is contained in:
parent
3a186fd873
commit
8cc0463ff4
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue