🇰🇷 한글 설명
WordPress의 Seraphinite Accelerator 플러그인 2.29.15 이하 버전에서 'seraph_accel_prep' 파라미터를 통한 반사형 XSS 취약점이 발견되었습니다. PHP의 느슨한 비교 연산자(!=)를 이용한 HMAC 검증 우회와 출력 이스케이프 미비가 결합되어 공격자가 임의의 스크립트를 삽입할 수 있습니다.
💡 쉬운 설명
공격자가 특수하게 조작된 링크를 통해 사용자의 웹 브라우저에서 악성 코드를 실행할 수 있는 보안 약점입니다. 사용자가 링크를 클릭하면 개인정보 탈취나 계정 권한 탈취 등의 피해를 입을 수 있습니다.
🇺🇸 원문 (English)
The Seraphinite Accelerator plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'seraph_accel_prep' parameter in versions up to, and including, 2.29.15. This is due to the CacheExtractPreparePageParams() function using PHP's loose inequality operator (!=) to compare the expected HMAC string against the JSON-decoded 'nonce' value — supplying the JSON boolean true causes any non-empty HMAC string to compare as loosely equal, bypassing the signature check — combined with insufficient output escaping in the _CbContentFinishSkip() function, which concatenates the attacker-controlled 'selfTest' field directly into the HTML response body. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a specially crafted link.
📍 영향받는 시스템
Seraphinite Accelerator plugin for WordPress (version 2.29.15 and below)
⚔️ 공격 벡터
조작된 'seraph_accel_prep' 파라미터가 포함된 링크를 사용자에게 클릭하도록 유도하는 방식
🛡️ 대응 방법
Seraphinite Accelerator 플러그인을 최신 버전으로 즉시 업데이트하십시오.
🔧 검증 코드
명령어 결과에 현재 설치된 플러그인 버전이 2.29.15 이하로 나타나면 취약한 상태입니다.
wp plugin list --name seraphinite-accelerator --format=json | grep -E '"version":"[0-2]\.[0-9]{2}\.[0-9]{2}"'