🔍 CVE-2026-18412

9.1
CVSS Score
CRITICAL
2026-08-10
2026-09-08 14:07
✅ 완료

🇰🇷 한글 설명

OpenCart v4.2.0.0의 확장 프로그램 설치 프로그램이 .ocmod.zip 파일의 압축을 해제할 때 경로 검증을 수행하지 않는 취약점입니다. 공격자는 경로 탐색(Path Traversal) 시퀀스를 포함한 악성 파일을 통해 웹 루트 디렉토리에 PHP 웹쉘을 생성할 수 있습니다.

💡 쉬운 설명

압축 파일을 풀 때 파일이 저장될 위치를 제대로 확인하지 않아 발생하는 문제입니다. 이를 통해 해커가 서버의 중요한 위치에 몰래 악성 프로그램을 심을 수 있습니다.

🇺🇸 원문 (English)

OpenCart extensions are uploaded as zip files with .ocmod.zip extensions. Upon installation, the OpenCart v4.2.0.0 extension installer extracts these zip files, but does not validate that the extracted paths stay inside the intended extraction directory. An attacker can craft a malicious extension containing file path traversal sequences, such as ../. With this vulnerability, an attacker can write files, such as a PHP web shell, into the webroot directory.

📍 영향받는 시스템

OpenCart v4.2.0.0

⚔️ 공격 벡터

경로 탐색(Path Traversal) 시퀀스가 포함된 악성 .ocmod.zip 확장 프로그램 업로드

🛡️ 대응 방법

OpenCart 보안 패치가 적용된 최신 버전으로 업데이트하거나, 설치 파일의 경로 검증 로직을 수정해야 합니다.

🔧 검증 코드

현재 설치된 OpenCart 버전이 4.2.0.0 이상인지 확인하여 취약 여부를 판단합니다.

Shell / Script
php -r 'echo version_compare(OpenCart_Version_Variable, "4.2.0.0", ">=") ? "Vulnerable" : "Safe";' 2>/dev/null

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

💻 영향받는 소프트웨어

PHP