Skip to content

Commit

Permalink
[보안패치] $kind 변수를 이용한 XSS 취약점 수정 (Pocas님,211214)
Browse files Browse the repository at this point in the history
  • Loading branch information
kagla committed Dec 22, 2021
1 parent 796b6d9 commit 20c94e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bbs/memo.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
$unkind = 'send';
else if ($kind == 'send')
$unkind = 'recv';
else
else {
$kind = clean_xss_tags(trim($kind));
alert(''.$kind .'값을 넘겨주세요.');
}

if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)

Expand Down

0 comments on commit 20c94e5

Please sign in to comment.