- 정보공유
[PHP] 크로스 사이트 스크립팅(XSS) 테스트
파라미터 문자열 뒤에
"><body%20onload=alert(document.domain)>
해결방법
$sst = isset($_REQUEST['sst']) && $_REQUEST['sst'] ? preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\/\^\*]/", "", clean_xss_tags($_REQUEST['sst'])) : '';
[PHP] 크로스 사이트 스크립팅(XSS) 테스트
파라미터 문자열 뒤에
"><body%20onload=alert(document.domain)>
해결방법
$sst = isset($_REQUEST['sst']) && $_REQUEST['sst'] ? preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\/\^\*]/", "", clean_xss_tags($_REQUEST['sst'])) : '';