🇰🇷 한글 설명
cpCommerce 1.2.x의 _functions.php에서 redirect 후 exit를 호출하지 않아 GLOBALS[prefix] 파라미터를 통한 보호 메커니즘 우회가 가능합니다. 이를 통해 원격 파일 포함, 디렉토리 트래버설, 임의 PHP 코드 실행 등이 가능합니다.
💡 쉬운 설명
cpCommerce 웹샵 시스템의 보안 결함으로 인해 공격자가 권한 없이 파일을 읽거나 악의적인 코드를 실행할 수 있습니다. 특정 파라미터 조작만으로도 서버 전체가 침해될 수 있는 심각한 취약점입니다.
🇺🇸 원문 (English)
_functions.php in cpCommerce 1.2.x, possibly including 1.2.9, sends a redirect but does not exit when it is called directly, which allows remote attackers to bypass a protection mechanism to conduct remote file inclusion and directory traversal attacks, execute arbitrary PHP code, or read arbitrary files via the GLOBALS[prefix] parameter, a different vector than CVE-2003-1500.
📍 영향받는 시스템
cpCommerce 1.2.x (1.2.9 포함)
⚔️ 공격 벡터
GLOBALS[prefix] 파라미터를 통한 원격 파일 포함(RFI) 및 디렉토리 트래버설 공격
🛡️ 대응 방법
cpCommerce를 1.3.0 이상으로 업그레이드하거나 _functions.php의 redirect 함수에 exit 호출 추가
🔧 검증 코드
검색 결과가 나오면 해당 경로의 cpCommerce 설치본이 존재함을 의미하며, 파일 수정 날짜와 버전 확인 필요
find / -name '_functions.php' -type f 2>/dev/null | xargs grep -l 'cpCommerce' | head -1