🇰🇷 한글 설명
WordPress용 WPConsent 플러그인 1.1.9 이하 버전에서 저장형 XSS 취약점이 발견되었습니다. 공격자가 적절한 HTML 태그와 특정 키를 이용해 악성 스크립트를 삽입하면, 사용자가 해당 페이지에 접속할 때 스크립트가 실행될 수 있습니다.
💡 쉬운 설명
웹사이트 댓글창에 몰래 악성 코드를 심어두는 공격입니다. 이 코드가 심어진 페이지를 방문하는 사용자의 정보를 훔치거나 원치 않는 동작을 실행할 수 있습니다.
🇺🇸 원문 (English)
The WPConsent – Cookie Banner & Cookie Consent for Privacy Compliance (GDPR / CCPA / EU Compliance Cookie Notice) plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Comment Content via Simple HTML DOM Parser Noise-Key Restoration (mXSS) in all versions up to, and including, 1.1.9 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires the Script Blocking feature to be enabled, and the exploit chain depends on an attacker submitting two coordinated comments — one embedding event-handler syntax inside an allowed <code> element and one placing the deterministic ___noise___ restoration key inside an allowed <abbr title=""> attribute — with the key offset confirmable via an unauthenticated wpconsent_debug=1 request.
📍 영향받는 시스템
WPConsent – Cookie Banner & Cookie Consent 플러그인 1.1.9 이하 모든 버전
⚔️ 공격 벡터
인증되지 않은 공격자가 특정 HTML 구조(code 및 abbr 태그)를 포함한 두 개의 댓글을 정교하게 작성하여 스크립트를 삽입함
🛡️ 대응 방법
플러그인을 최신 버전으로 업데이트하거나, 입력값 검증 및 출력 이스케이프 처리가 강화된 패치를 적용해야 합니다.
🔧 검증 코드
출력된 버전 번호가 1.1.9와 같거나 그보다 낮은지 확인하십시오.
wp-cli plugin list --name=wpconsent --format=json | grep -E 'version'