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

Commit

Permalink
KVE-2018-0729 영카트 원격코드인젝션 취약점 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Sep 17, 2018
1 parent 74466fb commit 74a6563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shop.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2245,7 +2245,7 @@ function get_shop_order_data($od_id, $type='item')
{
global $g5;

$od_id = clean_xss_tags($od_id);
$od_id = preg_replace('/[^0-9a-z_-]/i', '', clean_xss_tags($od_id));

if( $type == 'personal' ){
$row = sql_fetch("select * from {$g5['g5_shop_personalpay_table']} where pp_id = $od_id ", false);
Expand Down
2 changes: 2 additions & 0 deletions mobile/shop/inicis/pay_return.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
set_session('P_AMT', '');
set_session('P_HASH', '');

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

$sql = " select * from {$g5['g5_shop_order_data_table']} where od_id = '$oid' ";
$row = sql_fetch($sql);

Expand Down

0 comments on commit 74a6563

Please sign in to comment.