🇰🇷 한글 설명
WordPress의 'Redirection for Contact Form 7' 플러그인 3.2.4 이하 버전에 존재하는 PHP Object Injection 취약점으로, delete_associated_files 함수의 신뢰할 수 없는 입력 역직렬화를 통해 인증되지 않은 공격자가 PHP 객체를 주입할 수 있습니다. 'Create Post' 확장이 설치되어 있고 다른 플러그인의 POP chain이 존재할 경우 임의 파일 삭제, 데이터 유출, 코드 실행이 가능합니다.
💡 쉬운 설명
WordPress 파일 업로드 플러그인의 보안 결함으로 누구나 서버 파일을 삭제할 수 있습니다. PHP 8.0 이상에서는 안전하지만 구형 PHP에서는 위험합니다.
🇺🇸 원문 (English)
The Redirection for Contact Form 7 plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.2.4 via deserialization of untrusted input in the delete_associated_files function. This makes it possible for unauthenticated attackers to inject a PHP Object. This vulnerability may be exploited by unauthenticated attackers when a form is present on the site with a file upload action, and doesn't affect sites with PHP version > 8. This vulnerability also requires the 'Redirection For Contact Form 7 Extension - Create Post' extension to be installed and activated in order to be exploited. No known POP chain is present in the vulnerable software, which means this vulnerability has no impact unless another plugin or theme containing a POP chain is installed on the site. If a POP chain is present via an additional plugin or theme installed on the target system, it may allow the attacker to perform actions like delete arbitrary files, retrieve sensitive data, or execute code depending on the POP chain present. We confirmed there is a usable gadget in Contact Form 7 plugin that makes arbitrary file deletion possible when installed with this plugin. Given Contact Form 7 is a requirement of this plugin, it is likely that any site with this plugin and the 'Redirection For Contact Form 7 Extension - Create Post' extension enabled is vulnerable to arbitrary file deletion.
📍 영향받는 시스템
WordPress 'Redirection for Contact Form 7' v3.2.4 이하 (PHP < 8.0, 'Create Post' 확장 설치 필수)
⚔️ 공격 벡터
인증 없이 파일 업로드 폼을 통해 직렬화된 악성 PHP 객체를 전송하여 POP chain 트리거
🛡️ 대응 방법
플러그인을 3.2.5 이상으로 업그레이드하거나 PHP 8.0 이상으로 업데이트
🔧 검증 코드
출력되는 버전이 3.2.5 이상이면 안전, 3.2.4 이하면 취약함
grep -r "Version:" /var/www/html/wp-content/plugins/redirection-for-contact-form-7/ 2>/dev/null | head -1