🔍 CVE-2026-104021

7.2
CVSS Score
HIGH
2026-10-10
2026-10-13 13:30
✅ 완료

🇰🇷 한글 설명

WordPress용 Fastcache by Host.it 플러그인 1.7.4 이하 버전에서 코드 주입 취약점이 발견되었습니다. `fastcache_settings[cache_cookie_exclude][]` 파라미터에 입력된 값이 적절한 검증 없이 .htaccess 파일에 삽입되어, 공격자가 임의의 Apache 지시어를 주입할 수 있습니다. 이를 통해 관리자 권한을 가진 공격자는 서버 설정을 변경하거나 임의의 PHP 코드를 실행할 수 있습니다.

💡 쉬운 설명

웹사이트 설정 파일에 악성 명령어를 몰래 끼워 넣을 수 있는 보안 약점입니다. 공격자가 이 취약점을 이용하면 웹사이트의 설정을 마음대로 바꾸거나 해킹 도구를 실행할 수 있습니다.

🇺🇸 원문 (English)

The Fastcache by Host.it plugin for WordPress is vulnerable to Code Injection in all versions up to, and including, 1.7.4 via the `fastcache_settings[cache_cookie_exclude][]` parameter. This is due to the plugin registering the `cache_cookie_exclude` setting via `register_setting()` without a `sanitize_callback`, while `buildSiteHtaccessRules()` applies only `trim()` to each cookie value before interpolating it directly into an Apache `RewriteCond` line — a normalization that strips surrounding whitespace but leaves embedded newlines intact, allowing an attacker to break out of the capture group and append arbitrary directives. This makes it possible for authenticated attackers, with administrator-level access and above, to inject arbitrary Apache directives into the site's `.htaccess` file via `file_put_contents()`, enabling server-level configuration changes such as setting `php_value auto_prepend_file` to execute attacker-controlled PHP code on every request.

📍 영향받는 시스템

WordPress Fastcache by Host.it plugin (버전 1.7.4 및 그 이하 모든 버전)

⚔️ 공격 벡터

인증된 관리자 권한을 이용해 특정 파라미터에 줄바꿈 문자를 포함한 악성 값을 입력하여 .htaccess 파일에 지시어 주입

🛡️ 대응 방법

Fastcache 플러그인을 최신 버전으로 업데이트하거나, 해당 플러그인 사용을 중단하고 보안 패치가 적용된 버전을 확인하십시오.

🔧 검증 코드

출력된 버전 번호가 1.7.4 이하인지 확인하여 취약 여부를 판단합니다.

Shell / Script
wp plugin list --name fastcache --format=json | grep -E '"version":"[0-9.]+"'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP