🇰🇷 한글 설명
Zen Cart 1.2.6d 이전 버전에서 특정 PHP 설정 하에 admin/includes 디렉토리의 PHP 파일에 직접 접근할 수 있는 취약점입니다. 이를 통해 공격자가 웹서버의 전체 경로(path disclosure) 정보를 에러 메시지에서 획득할 수 있어 추가 공격에 활용될 수 있습니다.
💡 쉬운 설명
웹사이트 관리 폴더의 특정 파일들이 누구나 직접 접근할 수 있도록 열려 있습니다. 접근 시 서버의 내부 경로 정보가 노출되어 해커가 시스템 구조를 파악할 수 있게 됩니다.
🇺🇸 원문 (English)
Zen Cart 1.2.6d and earlier, under certain PHP configurations, allows remote attackers to obtain sensitive information via direct requests to files in the admin/includes directory, including (1) graphs/banner_daily.php, (2) graphs/banner_infobox.php, (3) graphs/banner_yearly.php, (4) graphs/banner_monthly.php, (5) application_bottom.php, (6) attributes_preview.php, (7) modules/category_product_listing.php, (8) modules/copy_to_confirm.php, (9) modules/delete_product_confirm.php, and (10) modules/move_product_confirm.php, which leaks the web server path in the resulting error message.
📍 영향받는 시스템
Zen Cart 1.2.6d 및 이전 버전
⚔️ 공격 벡터
HTTP GET 요청으로 admin/includes/graphs/*.php, admin/includes/*.php, admin/includes/modules/*.php 파일에 직접 접근하여 PHP 파일 포함 오류 메시지에서 절대 경로 정보 추출
🛡️ 대응 방법
Zen Cart를 1.2.6e 이상으로 업그레이드하거나, admin 디렉토리에 .htaccess 파일로 직접 접근 제한 설정
🔧 검증 코드
명령어가 /로 시작하는 절대 경로(예: /var/www/html/...)를 반환하면 취약점 확인, 403 또는 404 오류면 이미 보호됨
curl -s http://target/admin/includes/application_bottom.php 2>&1 | grep -oP '/[^\s]+' | head -1