🇰🇷 한글 설명
Simple Fields 플러그인의 wp_abspath 파라미터에 null byte를 인젝션하여 임의의 파일을 읽을 수 있는 취약점입니다. PHP 5.3.4 이전 버전에서 발생하며, allow_url_include가 활성화된 경우 Apache 로그에 PHP 코드를 주입하여 원격 코드 실행이 가능합니다.
💡 쉬운 설명
WordPress 플러그인의 버그로 인해 공격자가 서버의 민감한 파일(예: /etc/passwd)을 읽을 수 있습니다. 특정 조건에서는 악의적인 코드를 실행할 수도 있습니다.
🇺🇸 원문 (English)
Simple Fields 0.2 through 0.3.5 WordPress Plugin contains a local file inclusion vulnerability that allows unauthenticated attackers to read arbitrary files by injecting null bytes into the wp_abspath parameter on PHP versions before 5.3.4. Attackers can supply malicious wp_abspath values to simple_fields.php to include files like /etc/passwd or inject PHP code into Apache logs for remote code execution when allow_url_include is enabled.
📍 영향받는 시스템
Simple Fields 0.2~0.3.5, PHP 5.3.4 이전 버전의 WordPress 설치
⚔️ 공격 벡터
simple_fields.php의 wp_abspath 파라미터에 null byte 또는 경로 탐색 문자열(예: ../../../etc/passwd%00)을 주입
🛡️ 대응 방법
Simple Fields 플러그인을 0.3.6 이상으로 업그레이드하거나 비활성화, PHP 5.3.4 이상으로 업그레이드
🔧 검증 코드
결과가 출력되면 Simple Fields 플러그인이 설치되어 있는 것이므로 버전을 확인하고 업그레이드 필요 여부 판단
find /var/www -name 'simple_fields.php' 2>/dev/null | xargs grep -l 'wp_abspath' 2>/dev/null