🇰🇷 한글 설명
miniCMS 1.0 및 2.0의 update.php와 updatenews.php에서 pagename 또는 area 파라미터로 받은 입력값의 실행 가능한 확장자(예: .php)를 제대로 검증하지 않아, 공격자가 악의적인 PHP 파일을 content/ 또는 content/news/ 디렉토리에 작성할 수 있습니다. 이를 통해 서버에서 임의의 PHP 코드를 원격으로 실행할 수 있습니다.
💡 쉬운 설명
miniCMS 웹사이트 관리 도구에서 파일을 저장할 때 파일 이름을 충분히 검사하지 않아, 공격자가 악성 PHP 파일을 웹서버에 올릴 수 있습니다. 업로드된 PHP 파일을 실행하면 웹서버 전체를 장악할 수 있습니다.
🇺🇸 원문 (English)
miniCMS 1.0 and 2.0 allows remote attackers to execute arbitrary PHP code via a crafted (1) pagename or (2) area variable containing an executable extension, which is not properly handled by (a) update.php when writing files to content/, or (b) updatenews.php when writing files to content/news/.
📍 영향받는 시스템
miniCMS 1.0, 2.0
⚔️ 공격 벡터
update.php 또는 updatenews.php의 pagename/area 파라미터에 .php 확장자를 포함시켜 악성 파일 작성
🛡️ 대응 방법
miniCMS를 최신 버전으로 업그레이드하거나 파일 확장자 필터링 추가 및 파일 실행 권한 제한
🔧 검증 코드
파일이 발견되고 pagename/area 파라미터가 검증 없이 사용되면 시스템이 CVE-2012-5231에 취약함을 의미합니다.
find /var/www -name 'update*.php' -type f 2>/dev/null | head -1 && grep -l 'pagename\|area' /var/www/*/update*.php 2>/dev/null