🇰🇷 한글 설명
The Cozy Blocks 워드프레스 플러그인(2.2.27 이하)의 productRating.iconColor 매개변수에 입력값 검증 및 출력 이스케이프가 부족하여 저장형 XSS 취약점이 존재합니다. 기여자(Contributor) 이상 권한을 가진 인증된 공격자가 악성 스크립트를 삽입할 수 있으며, productRating 옵션이 활성화되고 WooCommerce 상품에 0이 아닌 평점이 있을 때 발생합니다.
💡 쉬운 설명
글을 쓸 수 있는 권한을 가진 사용자가 웹페이지에 몰래 악성 코드를 심을 수 있는 취약점입니다. 이 페이지를 방문한 다른 사용자의 브라우저에서 해당 코드가 실행될 수 있습니다.
🇺🇸 원문 (English)
The Cozy Blocks – Website Builder for WordPress Block Editor | Gutenberg Blocks, Patterns & Templates plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'productRating.iconColor' parameter in all versions up to, and including, 2.2.27 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The vulnerable code path is only reached when the productRating option is enabled and the associated WooCommerce product has a non-zero rating.
📍 영향받는 시스템
Cozy Blocks 워드프레스 플러그인 2.2.27 이하 버전
⚔️ 공격 벡터
기여자 이상 권한의 공격자가 productRating.iconColor 값에 악성 스크립트를 삽입 후 해당 페이지를 사용자가 방문하게 유도
🛡️ 대응 방법
Cozy Blocks 플러그인을 2.2.28 이상(패치된 버전)으로 업데이트하거나, 취약 옵션인 productRating을 비활성화
🔧 검증 코드
출력된 버전이 2.2.27 이하이면 취약하며, 2.2.28 이상이면 패치된 것으로 판단합니다. 명령이 실패하면 플러그인 경로를 확인하세요.
wp plugin get cozy-blocks --field=version 2>/dev/null || grep -i 'Version:' wp-content/plugins/cozy-blocks/*.php 2>/dev/null | head -1