🇰🇷 한글 설명
WordPress의 Gallery Custom Links 플러그인 2.3.3 이하 버전에서 저장형 XSS 취약점이 발견되었습니다. 인증된 공격자가 댓글 본문과 사용자 이름을 조작하여 악성 스크립트를 삽입할 수 있으며, 사용자가 해당 페이지를 방문할 때 스크립트가 실행됩니다.
💡 쉬운 설명
로그인이 가능한 사용자가 댓글과 이름을 특수하게 조작하여 웹사이트에 악성 코드를 숨겨둘 수 있는 문제입니다. 이 코드는 다른 사용자가 해당 페이지를 볼 때 자동으로 실행되어 정보를 탈취할 수 있습니다.
🇺🇸 원문 (English)
The Gallery Custom Links plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'display_name (profile.php) + comment (wp-comments-post.php)' parameter in all versions up to, and including, 2.3.3 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The exploit requires two coordinated inputs from the same authenticated attacker: an HTML comment payload stored in a comment body (preserved verbatim by WordPress comment kses) and a matching simple_html_dom noise key placed in the attacker's display_name (which survives esc_attr() intact), with substitution occurring after both filters have run during the plugin's default-on output-buffering pass over the full rendered page.
📍 영향받는 시스템
WordPress Gallery Custom Links plugin (버전 2.3.3 및 그 이하 모든 버전)
⚔️ 공격 벡터
인증된 사용자가 댓글(wp-comments-post.php)과 프로필 이름(profile.php)에 조작된 페이로드를 입력하여 공격
🛡️ 대응 방법
플러그인을 최신 버전으로 업데이트하거나, 입력값 검증 및 출력 이스케이프 처리가 강화된 패치를 적용하십시오.
🔧 검증 코드
출력된 결과에서 플러그인 이름과 현재 설치된 버전을 확인하여 취약한 버전(2.3.3 이하)인지 체크합니다.
wp plugin list --status=active | grep -i 'gallery-custom-links'