🇰🇷 한글 설명
WordPress용 Hummingbird 플러그인의 log_msg() 함수에서 원격 코드 실행(RCE) 취약점이 발견되었습니다. 디버그 로그 파일 생성 시 보호 헤더가 누락되는 결함과 쿠키 값의 검증 미비로 인해, 공격자가 임의의 PHP 코드를 삽입하고 실행할 수 있습니다.
💡 쉬운 설명
해커가 특수한 쿠키를 보내면 웹사이트 서버에 몰래 악성 명령어를 저장하고 실행할 수 있는 위험한 보안 구멍이 발견되었습니다. 이로 인해 웹사이트의 모든 권한을 해커에게 탈취당할 수 있습니다.
🇺🇸 원문 (English)
The Hummingbird – Speed Optimization, Caching, Minify, Compress & CDN plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 3.21.0 via the log_msg() function in core/modules/class-page-cache.php. The page-cache debug log is written to wp-content/wphb-logs/page-caching-log.php, a directly web-accessible PHP file that is supposed to be protected by a leading '<?php die(); ?>' header. That header is guarded by class_exists( 'Filesystem' ), which can never match because class_exists() resolves string arguments in the global namespace while the class is Hummingbird\Core\Filesystem; when the log is created during a front-end request the header is therefore omitted entirely. get_cookies() then writes the raw name of any cookie matching the wphb_cache_ prefix into that file without sanitization. This makes it possible for unauthenticated attackers to write arbitrary PHP into the log file with a single anonymous request and execute it by requesting the file directly, resulting in full remote code execution. Exploitation requires the site administrator to have enabled Page Caching with the Debug Log option (non-default), and the log file to be created during a front-end request — a state reached by the plugin's own 'Clear logs' action, any cache flush, or unattended via the plugin's daily log-rotation cron, which can strip the protective header from an existing log file.
📍 영향받는 시스템
Hummingbird – Speed Optimization, Caching, Minify, Compress & CDN plugin for WordPress (3.21.0 버전 이하 모든 버전)
⚔️ 공격 벡터
인증되지 않은 공격자가 조작된 쿠키를 포함한 HTTP 요청을 보내 로그 파일에 PHP 코드를 주입한 후 해당 파일을 직접 호출하여 실행
🛡️ 대응 방법
플러그인을 최신 버전으로 업데이트하고, 설정에서 Page Caching의 Debug Log 옵션을 비활성화하십시오.
🔧 검증 코드
출력된 결과에서 Hummingbird 플러그인의 버전이 3.21.0 이하인지 확인하십시오.
wp plugin list --status=active | grep -i 'hummingbird'