Skip to content

Commit

Permalink
[KVE-2023-5153] XSS 취약점 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Jul 4, 2023
1 parent 4eba618 commit ffc8706
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mobile/shop/listtype.php
Expand Up @@ -32,7 +32,7 @@
if (!$skin)
$skin = $default['de_mobile_listtype_list_skin'];
else
$skin = preg_replace('#\.+[\\\/]#', '', $skin);
$skin = preg_replace('#\.+[\\\/]#', '', strip_tags($skin));

define('G5_SHOP_CSS_URL', G5_MSHOP_SKIN_URL);

Expand Down Expand Up @@ -65,7 +65,7 @@
}
else
{
echo '<div align="center">'.$skin.' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
echo '<div align="center">'.get_text($skin).' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
}
?>
</div>
Expand Down
4 changes: 2 additions & 2 deletions shop/listtype.php
Expand Up @@ -34,7 +34,7 @@
else
$order_by = 'it_order, it_id desc';

$skin = isset($skin) ? $skin : '';
$skin = isset($skin) ? strip_tags($skin) : '';
if (!$skin || preg_match('#\.+[\\\/]#', $skin))
$skin = $default['de_listtype_list_skin'];
else
Expand Down Expand Up @@ -77,7 +77,7 @@
}
else
{
echo '<div align="center">'.$skin.' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
echo '<div align="center">'.get_text($skin).' 파일을 찾을 수 없습니다.<br>관리자에게 알려주시면 감사하겠습니다.</div>';
}

$qstr .= '&amp;type='.$type.'&amp;sort='.$sort;
Expand Down

0 comments on commit ffc8706

Please sign in to comment.