🇰🇷 한글 설명
WordPress의 'Add custom page template' 플러그인 2.0.1 이하 버전에서 'acpt_validate_setting' 함수의 'template_name' 파라미터가 제대로 검증되지 않아 PHP 코드 삽입 및 원격 코드 실행이 가능합니다. 관리자 권한을 가진 인증된 공격자가 서버에서 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
WordPress 플러그인의 설정 기능에 악의적인 코드를 주입할 수 있는 보안 문제입니다. 관리자 권한을 가진 사람이 이를 악용하면 서버를 완전히 제어할 수 있습니다.
🇺🇸 원문 (English)
The Add custom page template plugin for WordPress is vulnerable to PHP Code Injection leading to Remote Code Execution in all versions up to, and including, 2.0.1 via the 'acpt_validate_setting' function. This is due to insufficient sanitization of the 'template_name' parameter. This makes it possible for authenticated attackers, with Administrator-level access and above, to execute code on the server.
📍 영향받는 시스템
Add custom page template WordPress plugin versions up to and including 2.0.1
⚔️ 공격 벡터
Authenticated administrator injects malicious PHP code via unsanitized 'template_name' parameter in the 'acpt_validate_setting' function
🛡️ 대응 방법
Upgrade Add custom page template plugin to version 2.0.2 or later
🔧 검증 코드
출력 버전이 2.0.1 이하이면 취약함, 2.0.2 이상이면 패치됨, 플러그인 미설치 시 공백 출력
grep -i 'Version:' /var/www/html/wp-content/plugins/add-custom-page-template/add-custom-page-template.php 2>/dev/null | grep -oP '[0-9]+\.[0-9]+\.[0-9]+'