🔍 CVE-2024-7420

5.8
CVSS Score
MEDIUM
2024-08-15
2026-04-08 18:22
✅ 완료

🇰🇷 한글 설명

WordPress용 'Insert PHP Code Snippet' 플러그인 1.3.6 이하 버전에서 nonce 검증 누락으로 인한 CSRF 취약점이 존재합니다. 인증되지 않은 공격자가 관리자를 속여 악성 링크를 클릭하게 하면 코드 스니펫을 활성화/비활성화하거나 삭제할 수 있습니다. CVE-2024-43275는 동일한 취약점의 중복 항목으로 확인되었습니다.

💡 쉬운 설명

워드프레스 사이트 관리자가 특정 링크를 클릭하면 공격자가 사이트의 PHP 코드 조각을 마음대로 켜고 끄거나 삭제할 수 있습니다. 마치 누군가 당신의 손을 빌려 몰래 스위치를 조작하는 것과 같습니다.

🇺🇸 원문 (English)

The Insert PHP Code Snippet plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.3.6. This is due to missing or incorrect nonce validation in the /admin/snippets.php file. This makes it possible for unauthenticated attackers to activate/deactivate and delete code snippets via a forged request granted they can trick a site administrator into performing an action such as clicking on a link. CVE-2024-43275 appears to be a duplicate of this issue.

📍 영향받는 시스템

WordPress 플러그인 'Insert PHP Code Snippet' 1.3.6 이하 모든 버전

⚔️ 공격 벡터

공격자가 악의적으로 조작된 URL을 관리자에게 전송하여 클릭을 유도, CSRF를 통해 코드 스니펫 활성화/비활성화/삭제 요청 위조

🛡️ 대응 방법

플러그인을 1.3.7 이상 최신 버전으로 업데이트하거나, 취약한 버전 사용 중단

🔧 검증 코드

출력된 버전이 1.3.6 이하이면 취약, 1.3.7 이상이면 패치 완료; 플러그인이 설치되지 않은 경우 빈 출력 또는 오류 메시지 출력

Shell / Script
wp plugin list --name=insert-php-code-snippet --fields=name,version,status 2>/dev/null || php -r "echo shell_exec('wp plugin list --name=insert-php-code-snippet --fields=name,version,status');"

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N

💻 영향받는 소프트웨어

PHP