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

Commit

Permalink
KVE-2018-1772, 1808, 1817 취약점 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Dec 18, 2018
1 parent 4242516 commit f02e419
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 14 deletions.
2 changes: 2 additions & 0 deletions adm/shop_admin/couponzoneform.php
Expand Up @@ -2,6 +2,8 @@
$sub_menu = '400810';
include_once('./_common.php');

$cz_id = (int) $cz_id;

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

$g5['title'] = '쿠폰존 쿠폰관리';
Expand Down
2 changes: 2 additions & 0 deletions adm/shop_admin/itemcopy.php
Expand Up @@ -2,6 +2,8 @@
$sub_menu = '400300';
include_once('./_common.php');

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

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

$g5['title'] = '상품 복사';
Expand Down
2 changes: 2 additions & 0 deletions adm/shop_admin/itemuseform.php
Expand Up @@ -3,6 +3,8 @@
include_once('./_common.php');
include_once(G5_EDITOR_LIB);

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

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

$sql = " select *
Expand Down
6 changes: 6 additions & 0 deletions adm/shop_admin/orderlist.php
Expand Up @@ -22,6 +22,12 @@
if(! preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $fr_date) ) $fr_date = '';
if(! preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $to_date) ) $to_date = '';

$od_misu = preg_replace('/[^0-9a-z]/i', '', $od_misu);
$od_cancel_price = preg_replace('/[^0-9a-z]/i', '', $od_cancel_price);
$od_refund_price = preg_replace('/[^0-9a-z]/i', '', $od_refund_price);
$od_receipt_point = preg_replace('/[^0-9a-z]/i', '', $od_receipt_point);
$od_coupon = preg_replace('/[^0-9a-z]/i', '', $od_coupon);

$sql_search = "";
if ($search != "") {
if ($sel_field != "") {
Expand Down
3 changes: 3 additions & 0 deletions adm/shop_admin/orderprintresult.php
Expand Up @@ -2,6 +2,9 @@
$sub_menu = '500120';
include_once('./_common.php');

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

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

//print_r2($_GET); exit;
Expand Down
2 changes: 1 addition & 1 deletion mobile/shop/item.php
Expand Up @@ -2,7 +2,7 @@
include_once('./_common.php');
include_once(G5_LIB_PATH.'/iteminfo.lib.php');

$it_id = trim($_GET['it_id']);
$it_id = get_search_string(trim($_GET['it_id']));

// 분류사용, 상품사용하는 상품의 정보를 얻음
$sql = " select a.*,
Expand Down
4 changes: 2 additions & 2 deletions mobile/shop/iteminfo.php
@@ -1,8 +1,8 @@
<?php
include_once('./_common.php');

$it_id = $_GET['it_id'];
$info = $_GET['info'];
$it_id = get_search_string(trim($_GET['it_id']));
$info = preg_replace('/[^0-9a-z]/i', '', $_GET['info']);

// 분류사용, 상품사용하는 상품의 정보를 얻음
$sql = " select a.*,
Expand Down
6 changes: 3 additions & 3 deletions mobile/shop/itemqaform.php
Expand Up @@ -6,9 +6,9 @@
alert_close("상품문의는 회원만 작성 가능합니다.");
}

$w = trim($_REQUEST['w']);
$it_id = trim($_REQUEST['it_id']);
$iq_id = trim($_REQUEST['iq_id']);
$w = preg_replace('/[^0-9a-z]/i', '', trim($_REQUEST['w']));
$it_id = get_search_string(trim($_REQUEST['it_id']));
$iq_id = preg_replace('/[^0-9]/', '', trim($_REQUEST['iq_id']));

// 상품정보체크
$sql = " select it_id from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
Expand Down
6 changes: 3 additions & 3 deletions mobile/shop/itemuseform.php
Expand Up @@ -6,9 +6,9 @@
alert_close("사용후기는 회원만 작성 가능합니다.");
}

$w = trim($_REQUEST['w']);
$it_id = trim($_REQUEST['it_id']);
$is_id = trim($_REQUEST['is_id']);
$w = preg_replace('/[^0-9a-z]/i', '', trim($_REQUEST['w']));
$it_id = get_search_string(trim($_REQUEST['it_id']));
$is_id = preg_replace('/[^0-9]/', '', trim($_REQUEST['is_id']));

// 상품정보체크
$sql = " select it_id from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
Expand Down
4 changes: 2 additions & 2 deletions mobile/shop/largeimage.php
@@ -1,8 +1,8 @@
<?php
include_once('./_common.php');

$it_id = $_GET['it_id'];
$no = $_GET['no'];
$it_id = get_search_string(trim($_GET['it_id']));
$no = preg_replace('/[^0-9a-z]/i', '', $_GET['no']);

$sql = " select it_id, it_name, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
from {$g5['g5_shop_item_table']} where it_id='$it_id' ";
Expand Down
2 changes: 1 addition & 1 deletion shop/item.php
Expand Up @@ -6,7 +6,7 @@
return;
}

$it_id = trim($_GET['it_id']);
$it_id = get_search_string(trim($_GET['it_id']));

include_once(G5_LIB_PATH.'/iteminfo.lib.php');

Expand Down
2 changes: 1 addition & 1 deletion shop/itemuseform.php
Expand Up @@ -12,7 +12,7 @@
alert_close("사용후기는 회원만 작성 가능합니다.");
}

$w = trim($_REQUEST['w']);
$w = preg_replace('/[^0-9a-z]/i', '', trim($_REQUEST['w']));
$it_id = get_search_string(trim($_REQUEST['it_id']));
$is_id = preg_replace('/[^0-9]/', '', trim($_REQUEST['is_id']));

Expand Down
2 changes: 1 addition & 1 deletion shop/largeimage.php
Expand Up @@ -6,7 +6,7 @@
return;
}

$it_id = $_GET['it_id'];
$it_id = get_search_string(trim($_GET['it_id']));
$no = $_GET['no'];

$sql = " select it_id, it_name, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
Expand Down

0 comments on commit f02e419

Please sign in to comment.