🇰🇷 한글 설명
WordPress의 Easy Google Fonts 플러그인 2.0.4 이하 버전에서 저장형 XSS 취약점이 발견되었습니다. control_selectors 메타 필드에 입력값 검증(sanitize_callback)이 누락되어, 인증된 공격자가 악성 스크립트를 삽입하고 이를 프론트엔드 스타일 태그에 직접 출력할 수 있습니다.
💡 쉬운 설명
글 작성 권한이 있는 사용자가 웹사이트에 몰래 악성 코드를 심을 수 있는 보안 약점입니다. 이 코드가 실행되면 해당 페이지를 방문하는 다른 사용자들의 정보가 탈취될 위험이 있습니다.
🇺🇸 원문 (English)
The Easy Google Fonts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the control_selectors meta field in all versions up to, and including, 2.0.4. This is due to the plugin registering the control_selectors meta field with show_in_rest enabled but without a sanitize_callback, and subsequently outputting this unsanitized data directly into <style> tags on the frontend without proper escaping. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
📍 영향받는 시스템
Easy Google Fonts plugin (WordPress) version 2.0.4 and below
⚔️ 공격 벡터
인증된 공격자(Author 권한 이상)가 control_selectors 메타 필드에 악성 스크립트를 삽입하여 공격
🛡️ 대응 방법
Easy Google Fonts 플러그인을 최신 버전으로 업데이트하거나, 입력값 검증 및 출력 이스케이프 처리가 포함된 패치를 적용하십시오.
🔧 검증 코드
출력된 플러그인 버전이 2.0.4 이하인지 확인하여 취약 여부를 판단합니다.
wp plugin list --status=active | grep -i 'easy-google-fonts' && wp plugin list --all | grep -E 'easy-google-fonts' | awk '{print $2 " " $3}'