🔍 CVE-2026-7430

4.4
CVSS Score
MEDIUM
2026-05-29
2026-07-21 12:10
✅ 완료

🇰🇷 한글 설명

WordPress의 Post Snippets 플러그인 4.0.19 이하 버전에서 저장형 교차 사이트 스크립팅(XSS) 취약점이 발견되었습니다. 임포트된 스니펫 콘텐츠를 렌더링할 때 출력 이스케이프 처리가 미흡하여, 관리자가 악성 파일로 스니펫을 가져올 경우 임의의 스크립트가 실행될 수 있습니다.

💡 쉬운 설명

플러그인을 통해 악성 코드가 포함된 설정 파일을 불러오면, 관리자가 글 편집 화면을 열 때마다 해커가 심어놓은 스크립트가 자동으로 실행될 수 있는 문제입니다. 이는 관리자 권한을 가진 사용자가 악의적인 파일을 업로드할 때 발생합니다.

🇺🇸 원문 (English)

The Post Snippets plugin for WordPress is vulnerable to Stored Cross-Site Scripting in all versions up to, and including, 4.0.19. This is due to insufficient output escaping of imported snippet content when rendering JavaScript variables in the post editor. Specifically, the `jqueryUiDialog()` method in `WPEditor.php` embeds snippet content directly into JavaScript string literals without escaping double quotes (the quote-escaping code on line 214 is commented out). When snippets are imported via the Import/Export feature, the content bypasses WordPress's `wp_magic_quotes()` (which would otherwise add protective backslashes), allowing double quotes in snippet content to break out of the JavaScript string context. This makes it possible for authenticated attackers, with Administrator-level access and above, to inject arbitrary web scripts via a malicious import file that execute whenever any administrator accesses a post editor page. Please note that this does not affect single-site installations as administrators already have the `unfiltered_html` capability.

📍 영향받는 시스템

WordPress Post Snippets plugin version 4.0.19 and below

⚔️ 공격 벡터

관리자 권한을 가진 공격자가 악성 스크립트가 포함된 스니펫 임포트 파일을 사용하여 공격

🛡️ 대응 방법

Post Snippets 플러그인을 최신 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 4.0.19 이하이면 해당 취약점에 노출된 상태입니다.

Shell / Script
wp plugin list --name post-snippets --format=json | grep -oP '(?<=version\":")[^"]+'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

WordPress