Skip to content

Commit

Permalink
영카트 Reflected XSS (17-0789) 취약점 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Nov 6, 2017
1 parent e46af30 commit 6cfb34a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adm/menu_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
$g5['title'] = '메뉴 추가';
include_once(G5_PATH.'/head.sub.php');

$code = isset($code) ? preg_replace('/[^0-9a-zA-Z]/', '', strip_tags($code)) : '';

// 코드
if($new == 'new' || !$code) {
$code = base_convert(substr($code,0, 2), 36, 10);
Expand Down

0 comments on commit 6cfb34a

Please sign in to comment.