🇰🇷 한글 설명
WordPress의 Document Gallery 플러그인 5.1.1 이하 버전에서 'dg_thumber_webhook' 액션 요청 본문의 입력값 검증 및 출력 이스케이프 미흡으로 인해 저장형 XSS 취약점이 발생합니다. 공격자는 인증되지 않은 상태에서도 임의의 웹 스크립트를 삽입할 수 있으며, 이는 플러그인의 고급 설정에서 로깅이 활성화된 경우에 실행됩니다.
💡 쉬운 설명
해커가 웹사이트 게시물에 몰래 악성 코드를 심어두어, 사용자가 해당 페이지를 방문할 때 코드가 실행되게 만드는 취약점입니다. 다만, 플러그인의 로그 기록 기능이 켜져 있어야만 공격이 성공할 수 있습니다.
🇺🇸 원문 (English)
The Document Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'dg_thumber_webhook' Action Request Body in all versions up to, and including, 5.1.1 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. Exploitation requires that logging be enabled in the plugin's Advanced settings, which is only the default state when WP_DEBUG is true; otherwise an administrator must manually enable it.
📍 영향받는 시스템
WordPress Document Gallery plugin (버전 5.1.1 및 그 이하 모든 버전)
⚔️ 공격 벡터
인증되지 않은 공격자가 'dg_thumber_webhook' 요청 본문에 악성 스크립트를 삽입하여 서버에 저장
🛡️ 대응 방법
플러그인을 최신 버전으로 업데이트하고, WP_DEBUG를 false로 설정하여 로깅 기능을 비활성화합니다.
🔧 검증 코드
출력된 결과에서 document-gallery 플러그인의 버전이 5.1.1 이하인지 확인합니다.
wp plugin list --allow-root | grep -E 'document-gallery'