[KVE-2026-0876] 모바일 상품 리스트 sort 파라미터 Blind SQL Injection 수정

This commit is contained in:
thisgun committed 2026-05-26 06:27:53 +00:00
1 parent 8be4476f56
commit a781b4aef3
2 files changed
+5 -1

No files matched your search

+2 -1
View File
@@ -1,7 +1,8 @@
<?php
include_once('../../common.php');
if (isset($_REQUEST['sort'])) {
// SQL 주석 토큰 차단 추가 — 데스크톱 shop/_common.php 와 동일 패턴
if (isset($_REQUEST['sort']) && !preg_match("/(--|#|\/\*|\*\/)/", $_REQUEST['sort'])) {
$sort = trim($_REQUEST['sort']);
$sort = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\s]/", "", $sort);
} else {