🇰🇷 한글 설명
WordPress용 Contact Form 7 – CFDB7 플러그인 1.4.1 이하 버전에서 임의 파일 삭제 취약점이 발견되었습니다. 공격자가 조작된 multipart 필드를 주입하여 서버 내의 임의 파일을 삭제할 수 있으며, 이는 파일 경로 검증 및 소유권 확인 부재로 인해 발생합니다.
💡 쉬운 설명
해커가 특수한 데이터를 보내 웹사이트 서버에 있는 중요한 파일을 마음대로 지울 수 있는 문제입니다. 파일 이름이 제대로 확인되지 않아 발생하는 보안 허점입니다.
🇺🇸 원문 (English)
The Database Addon for Contact Form 7 – CFDB7 plugin for WordPress is vulnerable to Arbitrary File Deletion in versions up to, and including, 1.4.1. This is due to the plugin storing arbitrary (non-form-tag) submission fields in its db7_forms row and the process_bulk_action() delete handler then matching any stored key whose name contains the substring 'cfdb7_file' and passing the stored value directly to unlink() without validating that the file actually belongs to the submission being deleted or constraining the filename with basename()/realpath(). This makes it possible for unauthenticated attackers to inject a crafted multipart field.
📍 영향받는 시스템
WordPress Database Addon for Contact Form 7 – CFDB7 plugin (버전 1.4.1 이하)
⚔️ 공격 벡터
인증되지 않은 공격자가 조작된 multipart 필드를 포함한 요청을 전송하여 발생
🛡️ 대응 방법
해당 플러그인을 최신 버전으로 업데이트하거나, 파일 삭제 기능이 포함된 취약한 코드를 수정해야 합니다.
🔧 검증 코드
명령어 결과에 해당 플러그인이 나타나면 설치된 것이며, 설치된 버전이 1.4.1 이하인지 확인이 필요합니다.
wp plugin list --status=active | grep -E 'contact-form-7-database-addon'