🇰🇷 한글 설명
Meow Gallery 플러그인 5.5.1 이하 버전은 첨부파일 Alt 텍스트(aria-label 속성)의 입력값 검증과 출력 이스케이프가 부족하여 저장형 XSS에 취약합니다. 작성자 이상 권한의 공격자는 큰따옴표를 이용해 속성 컨텍스트를 벗어나 onclick 같은 이벤트 핸들러를 삽입할 수 있으며, 해당 페이지를 방문한 사용자의 브라우저에서 스크립트가 실행됩니다.
💡 쉬운 설명
사진 갤러리 플러그인의 이미지 설명 글자 입력란에 악성 코드를 숨겨 넣을 수 있는 취약점입니다. 누군가 그 페이지를 열면 숨겨진 코드가 몰래 실행되어 로그인 정보 등이 탈취될 수 있습니다.
🇺🇸 원문 (English)
The Meow Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Attachment Alt Text (aria-label attribute) in all versions up to, and including, 5.5.1 due to insufficient input sanitization and output 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. The vulnerable code path is only reachable when a gallery item is rendered as a link (i.e., link_href is non-empty), and exploitation relies on the fact that WordPress's sanitize_text_field() strips angle-bracketed tags but preserves double quotes, allowing an attacker to break out of the aria-label attribute context and inject event-handler attributes such as onclick.
📍 영향받는 시스템
WordPress용 Meow Gallery 플러그인 5.5.1 및 이전 모든 버전
⚔️ 공격 벡터
작성자 이상 권한을 가진 인증된 공격자가 첨부파일 Alt 텍스트에 따옴표를 이용한 onclick 이벤트 핸들러를 삽입해 저장형 XSS를 유발
🛡️ 대응 방법
Meow Gallery 플러그인을 5.5.1 초과의 패치된 최신 버전으로 업데이트하거나, 취약 버전이 설치되어 있으면 즉시 비활성화
🔧 검증 코드
출력된 버전이 5.5.1 이하이면 취약한 상태이므로 즉시 업데이트가 필요하고, 5.5.1 초과이거나 출력이 없으면 플러그인이 설치되지 않았거나 이미 패치된 상태입니다.
wp plugin get meow-gallery --field=version 2>/dev/null || grep -m1 'Version:' $(find /var/www -path '*meow-gallery*' -name 'meow-gallery.php' 2>/dev/null | head -1)