🇰🇷 한글 설명
WordPress용 Youtube Showcase 플러그인 4.0.4 이하 버전에서 'emd_mb_meta' 숏코드를 통해 저장형 XSS 취약점이 발생합니다. 첨부 파일 제목에 대한 입력값 검증 및 출력 이스케이프 처리가 미흡하여, 인증된 공격자가 악성 스크립트를 삽입할 수 있습니다.
💡 쉬운 설명
웹사이트 게시물에 악성 코드를 몰래 심어두는 취약점입니다. 권한이 있는 사용자가 이미지 제목을 조작하면, 다른 사용자가 해당 페이지를 볼 때 악성 스크립트가 실행될 수 있습니다.
🇺🇸 원문 (English)
The Youtube Showcase plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 4.0.4 via the 'emd_mb_meta' shortcode. This is due to insufficient input sanitization and output escaping on attachment titles referenced by the shortcode's image field: EMD_MB_Helper::image_info() returns the attachment's raw post_title, and EMD_MB_Helper::shortcode() interpolates it into title="%s" HTML attributes via sprintf() without esc_attr(). This makes it possible for authenticated attackers, with author-level access and above (upload_files capability required to create the attachment, edit_posts/publish_posts to embed the shortcode), to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
📍 영향받는 시스템
Youtube Showcase plugin for WordPress (version 4.0.4 and below)
⚔️ 공격 벡터
인증된 공격자가 미디어 라이브러리에 악성 제목을 가진 첨부 파일을 업로드하고 숏코드를 사용하여 페이지에 삽입
🛡️ 대응 방법
Youtube Showcase 플러그인을 최신 버전으로 업데이트하거나, 입력값 검증 및 출력 이스케이프가 적용된 패치를 적용하십시오.
🔧 검증 코드
명령어 결과에 버전이 4.0.4 이하로 나타나면 해당 취약점에 노출된 상태입니다.
wp plugin list --name youtube-showcase --format=json | grep -E '"version":"[0-4]\.[0-4]\.[0-4]"'