🇰🇷 한글 설명
WordPress Perfect Images 플러그인의 /wp-json/wp-retina-2x/v1/replace REST API에 권한 검사(capability check)가 누락되어, 7.2.0 이하 모든 버전에서 인증된 공격자가 권한이 없는 파일을 변경할 수 있습니다. 공격자는 Author 이상 권한이 필요합니다.
💡 쉬운 설명
WordPress 이미지 최적화 플러그인의 보안 검사가 빠져 있어, 글 작성자 권한을 가진 사용자가 다른 사람의 파일을 바꿀 수 있습니다. 플러그인을 최신 버전으로 업데이트하면 이 문제가 해결됩니다.
🇺🇸 원문 (English)
The Perfect Images plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the /wp-json/wp-retina-2x/v1/replace REST API in all versions up to, and including, 7.2.0 This makes it possible for authenticated attackers, with Author-level access and above, to replace files that do not belong to them.
📍 영향받는 시스템
Perfect Images WordPress 플러그인 7.2.0 이하 모든 버전
⚔️ 공격 벡터
Author 이상 권한의 인증된 사용자가 /wp-json/wp-retina-2x/v1/replace 엔드포인트에 요청을 보내 권한 없는 파일을 교체
🛡️ 대응 방법
Perfect Images 플러그인을 7.2.1 이상(패치된 버전)으로 업데이트하거나, 취약 버전 사용 시 플러그인을 비활성화
🔧 검증 코드
출력된 버전이 7.2.0 이하이면 취약하며, 7.2.1 이상이면 패치된 상태입니다. 아무 출력이 없으면 플러그인이 설치되어 있지 않은 것입니다.
wp plugin get perfect-images --field=version 2>/dev/null || grep -m1 'Version:' wp-content/plugins/perfect-images/*.php 2>/dev/null