[KVE-2022-2036] Gnuboard5 관리자페이지 내 Stored XSS 취약점 수정
This commit is contained in:
@ -121,7 +121,7 @@ require_once './admin.head.php';
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<textarea name="ma_list" style="display:none"><?php echo $ma_list ?></textarea>
|
<textarea name="ma_list" style="display:none"><?php echo html_purifier($ma_list); ?></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn_confirm01 btn_confirm">
|
<div class="btn_confirm01 btn_confirm">
|
||||||
|
|||||||
@ -380,15 +380,15 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="mb_signature">서명</label></th>
|
<th scope="row"><label for="mb_signature">서명</label></th>
|
||||||
<td colspan="3"><textarea name="mb_signature" id="mb_signature"><?php echo $mb['mb_signature'] ?></textarea></td>
|
<td colspan="3"><textarea name="mb_signature" id="mb_signature"><?php echo html_purifier($mb['mb_signature']); ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="mb_profile">자기 소개</label></th>
|
<th scope="row"><label for="mb_profile">자기 소개</label></th>
|
||||||
<td colspan="3"><textarea name="mb_profile" id="mb_profile"><?php echo $mb['mb_profile'] ?></textarea></td>
|
<td colspan="3"><textarea name="mb_profile" id="mb_profile"><?php echo html_purifier($mb['mb_profile']); ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="mb_memo">메모</label></th>
|
<th scope="row"><label for="mb_memo">메모</label></th>
|
||||||
<td colspan="3"><textarea name="mb_memo" id="mb_memo"><?php echo $mb['mb_memo'] ?></textarea></td>
|
<td colspan="3"><textarea name="mb_memo" id="mb_memo"><?php echo html_purifier($mb['mb_memo']); ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="mb_cert_history">본인인증 내역</label></th>
|
<th scope="row"><label for="mb_cert_history">본인인증 내역</label></th>
|
||||||
|
|||||||
@ -108,11 +108,11 @@ require_once './admin.head.php';
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="po_ips">투표참가 IP</label></th>
|
<th scope="row"><label for="po_ips">투표참가 IP</label></th>
|
||||||
<td><textarea name="po_ips" id="po_ips" readonly rows="10"><?php echo preg_replace("/\n/", " / ", $po['po_ips']) ?></textarea></td>
|
<td><textarea name="po_ips" id="po_ips" readonly rows="10"><?php echo html_purifier(preg_replace("/\n/", " / ", $po['po_ips'])); ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="mb_ids">투표참가 회원</label></th>
|
<th scope="row"><label for="mb_ids">투표참가 회원</label></th>
|
||||||
<td><textarea name="mb_ids" id="mb_ids" readonly rows="10"><?php echo preg_replace("/\n/", " / ", $po['mb_ids']) ?></textarea></td>
|
<td><textarea name="mb_ids" id="mb_ids" readonly rows="10"><?php echo html_purifier(preg_replace("/\n/", " / ", $po['mb_ids'])); ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@ -593,7 +593,7 @@ if(!$default['de_kakaopay_cancelpwd']){
|
|||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="de_bank_account">은행계좌번호</label></th>
|
<th scope="row"><label for="de_bank_account">은행계좌번호</label></th>
|
||||||
<td>
|
<td>
|
||||||
<textarea name="de_bank_account" id="de_bank_account"><?php echo $default['de_bank_account']; ?></textarea>
|
<textarea name="de_bank_account" id="de_bank_account"><?php echo html_purifier($default['de_bank_account']); ?></textarea>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@ -66,6 +66,8 @@ while($res = sql_fetch_array($qry))
|
|||||||
$group_name = '미분류';
|
$group_name = '미분류';
|
||||||
else
|
else
|
||||||
$group_name = $tmp['fg_name'];
|
$group_name = $tmp['fg_name'];
|
||||||
|
|
||||||
|
$res['fo_content'] = html_purifier($res['fo_content']);
|
||||||
$list_text .="
|
$list_text .="
|
||||||
<li class=\"screen_list sms5_box\">
|
<li class=\"screen_list sms5_box\">
|
||||||
<span class=\"box_ico\"></span>
|
<span class=\"box_ico\"></span>
|
||||||
|
|||||||
@ -174,7 +174,7 @@ function multi_update(sel)
|
|||||||
<input type="checkbox" name="fo_no[]" value="<?php echo $res['fo_no']?>" id="fo_no_<?php echo $i; ?>">
|
<input type="checkbox" name="fo_no[]" value="<?php echo $res['fo_no']?>" id="fo_no_<?php echo $i; ?>">
|
||||||
</div>
|
</div>
|
||||||
<div class="li_preview">
|
<div class="li_preview">
|
||||||
<textarea readonly class="box_txt box_square"><?php echo $res['fo_content']?></textarea>
|
<textarea readonly class="box_txt box_square"><?php echo html_purifier($res['fo_content']); ?></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="li_info">
|
<div class="li_info">
|
||||||
<span class="sound_only">그룹 </span><b><?php echo $group_name?></b><br>
|
<span class="sound_only">그룹 </span><b><?php echo $group_name?></b><br>
|
||||||
|
|||||||
@ -67,7 +67,7 @@ include_once(G5_ADMIN_PATH.'/admin.head.php');
|
|||||||
<div class="sms5_box write_wrap">
|
<div class="sms5_box write_wrap">
|
||||||
<span class="box_ico"></span>
|
<span class="box_ico"></span>
|
||||||
<label for="sms_contents" id="wr_message_lbl">내용</label>
|
<label for="sms_contents" id="wr_message_lbl">내용</label>
|
||||||
<textarea name="fo_content" id="sms_contents" class="box_txt box_square" onkeyup="byte_check('sms_contents', 'sms_bytes');" accesskey="m"><?php echo $write['fo_content']?></textarea>
|
<textarea name="fo_content" id="sms_contents" class="box_txt box_square" onkeyup="byte_check('sms_contents', 'sms_bytes');" accesskey="m"><?php echo html_purifier($write['fo_content']); ?></textarea>
|
||||||
|
|
||||||
<div id="sms_byte"><span id="sms_bytes">0</span> / 80 byte</div>
|
<div id="sms_byte"><span id="sms_bytes">0</span> / 80 byte</div>
|
||||||
|
|
||||||
|
|||||||
@ -109,7 +109,7 @@ function all_send()
|
|||||||
|
|
||||||
<div id="con_sms" class="sms5_box">
|
<div id="con_sms" class="sms5_box">
|
||||||
<span class="box_ico"></span>
|
<span class="box_ico"></span>
|
||||||
<textarea class="box_txt is_overview" readonly><?php echo $write['wr_message'];?></textarea>
|
<textarea class="box_txt is_overview" readonly><?php echo html_purifier($write['wr_message']); ?></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ($write['wr_re_total'] && !$wr_renum) { ?>
|
<?php if ($write['wr_re_total'] && !$wr_renum) { ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user