Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
[KVE-2020-0013]그누보드_Reflect XSS_수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Mar 3, 2020
1 parent 894f43d commit 4905006
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion adm/board_copy.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</tr>
<tr>
<th scope="col"><label for="target_subject">게시판 제목<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="target_subject" value="[복사본] <?php echo $board['bo_subject'] ?>" id="target_subject" required class="required frm_input" maxlength="120"></td>
<td><input type="text" name="target_subject" value="[복사본] <?php echo get_sanitize_input($board['bo_subject']); ?>" id="target_subject" required class="required frm_input" maxlength="120"></td>
</tr>
<tr>
<th scope="col">복사 유형</th>
Expand Down
2 changes: 2 additions & 0 deletions adm/board_copy_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
$target_table = trim($_POST['target_table']);
$target_subject = trim($_POST['target_subject']);

$target_subject = strip_tags(clean_xss_attributes($target_subject));

if (!preg_match('/[A-Za-z0-9_]{1,20}/', $target_table)) {
alert('게시판 TABLE명은 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (20자 이내)');
}
Expand Down

0 comments on commit 4905006

Please sign in to comment.