🇰🇷 한글 설명
WordPress용 Perfmatters 플러그인 2.5.9.1 이하 버전에서 경로 탐색(Path Traversal)을 통한 임의 파일 삭제 취약점이 발견되었습니다. PMCS::action_handler() 메서드가 $_GET['delete'] 파라미터를 검증 없이 처리하여, 인증된 공격자가 서버의 중요한 파일을 삭제할 수 있습니다. 특히 wp-config.php 파일을 삭제할 경우 사이트 제어권을 완전히 탈취당할 위험이 있습니다.
💡 쉬운 설명
웹사이트 관리 도구인 Perfmatters 플러그인의 허점을 이용해 해커가 서버의 중요한 파일을 마음대로 지울 수 있는 문제입니다. 이를 통해 사이트 설정 파일을 삭제하면 해커가 사이트를 통째로 장악할 수 있습니다.
🇺🇸 원문 (English)
The Perfmatters plugin for WordPress is vulnerable to arbitrary file deletion via path traversal in all versions up to, and including, 2.5.9.1. This is due to the `PMCS::action_handler()` method processing the `$_GET['delete']` parameter without any sanitization, authorization check, or nonce verification. The unsanitized filename is concatenated with the storage directory path and passed to `unlink()`. This makes it possible for authenticated attackers, with Subscriber-level access and above, to delete arbitrary files on the server by using `../` path traversal sequences, including `wp-config.php` which would force WordPress into the installation wizard and allow full site takeover.
📍 영향받는 시스템
Perfmatters plugin for WordPress (version 2.5.9.1 and below)
⚔️ 공격 벡터
인증된 사용자(구독자 권한 이상)가 경로 탐색 문자열(../)을 포함한 GET 요청을 통해 임의 파일 삭제
🛡️ 대응 방법
Perfmatters 플러그인을 최신 버전으로 업데이트하거나 해당 취약점이 해결된 버전 이상을 사용하십시오.
🔧 검증 코드
출력된 버전 번호가 2.5.9.1과 같거나 그보다 낮은 숫자인지 확인하십시오.
wp plugin list --name perfmatters --format=json | grep -oP '(?<=version":")[^"]+'