🇰🇷 한글 설명
phpwcms의 mail_file_form.php 파일에서 text_evento와 email_eventonome_evento 파라미터를 통해 입력값이 적절히 검증되지 않아 원격 공격자가 임의의 PHP 코드를 실행할 수 있는 취약점입니다. render_PHPcode 함수에서 사용자 입력이 직접 처리되어 발생합니다.
💡 쉬운 설명
phpwcms라는 웹사이트 관리 프로그램의 메일 폼에서 공격자가 악의적인 코드를 보낼 수 있습니다. 이를 통해 서버에서 원하는 작업을 실행하고 시스템을 완전히 장악할 수 있습니다.
🇺🇸 원문 (English)
phpwcms 1.2.5-DEV and earlier, and 1.1 before RC4, allows remote attackers to execute arbitrary code via crafted arguments to the (1) text_evento and (2) email_eventonome_evento parameters to phpwcms_code_snippets/mail_file_form.php and sample_ext_php/mail_file_form.php, which is processed by the render_PHPcode function. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information.
📍 영향받는 시스템
phpwcms 1.2.5-DEV 이전, 1.1 RC4 이전 모든 버전
⚔️ 공격 벡터
HTTP POST/GET 요청을 통해 /phpwcms_code_snippets/mail_file_form.php 또는 /sample_ext_php/mail_file_form.php의 text_evento, email_eventonome_evento 파라미터에 PHP 코드 주입
🛡️ 대응 방법
phpwcms를 1.2.5 이상 또는 1.1 RC4 이상으로 즉시 업그레이드하고, 입력값 검증 및 구분자 이스케이프 처리 추가
🔧 검증 코드
phpwcms 설치 경로에서 render_PHPcode 함수 사용 여부 확인. 해당 함수가 발견되면 취약한 버전 가능성 높음. 버전은 /var/www/html/phpwcms/admin/login/CHANGELOG 또는 패키지 매니저로 확인
grep -r 'render_PHPcode' /var/www/html/ 2>/dev/null | head -5