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

Commit

Permalink
영카트 Reflected XSS 취약점(17-560) 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Sep 21, 2017
1 parent b45cdfa commit 9353d66
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions adm/shop_admin/sale1date.php
Expand Up @@ -4,6 +4,9 @@

auth_check($auth[$sub_menu], "r");

$fr_date = preg_replace('/[^0-9]/i', '', $fr_date);
$to_date = preg_replace('/[^0-9]/i', '', $to_date);

$fr_date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $fr_date);
$to_date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $to_date);

Expand Down
3 changes: 3 additions & 0 deletions adm/shop_admin/sale1month.php
Expand Up @@ -4,6 +4,9 @@

auth_check($auth[$sub_menu], "r");

$fr_month = preg_replace('/[^0-9]/i', '', $fr_month);
$to_month = preg_replace('/[^0-9]/i', '', $to_month);

$fr_month = preg_replace("/([0-9]{4})([0-9]{2})/", "\\1-\\2", $fr_month);
$to_month = preg_replace("/([0-9]{4})([0-9]{2})/", "\\1-\\2", $to_month);

Expand Down
2 changes: 2 additions & 0 deletions adm/shop_admin/sale1today.php
Expand Up @@ -4,6 +4,8 @@

auth_check($auth[$sub_menu], "r");

$date = preg_replace('/[^0-9]/i', '', $date);

$date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1-\\2-\\3", $date);

$g5['title'] = "$date 일 매출현황";
Expand Down
3 changes: 3 additions & 0 deletions adm/shop_admin/sale1year.php
Expand Up @@ -4,6 +4,9 @@

auth_check($auth[$sub_menu], "r");

$fr_year = preg_replace('/[^0-9]/i', '', $fr_year);
$to_year = preg_replace('/[^0-9]/i', '', $to_year);

$g5['title'] = $fr_year.' ~ '.$to_year.' 연간 매출현황';
include_once (G5_ADMIN_PATH.'/admin.head.php');

Expand Down

0 comments on commit 9353d66

Please sign in to comment.