🇰🇷 한글 설명
LiteSpeed Cache WordPress 플러그인 7.9.2 이전 버전은 HTML 최적화 루틴이 스타일시트 콘텐츠로만 제한되지 않아, 렌더링된 페이지에서 속성을 닫는 마크업을 삭제할 수 있습니다. 이를 이스케이프되지 않은 댓글 작성자 출력과 결합하면, 인증되지 않은 사용자가 이벤트 핸들러 속성을 주입해 관리자를 포함한 방문자의 브라우저에서 JavaScript가 실행될 수 있습니다.
💡 쉬운 설명
웹사이트 댓글 작성자 이름 등에 특수한 코드를 넣으면, 사이트를 방문하는 사람의 브라우저에서 몰래 프로그램이 실행될 수 있습니다. 관리자가 해당 페이지를 보기만 해도 피해를 입을 수 있습니다.
🇺🇸 원문 (English)
The LiteSpeed Cache WordPress plugin before 7.9.2 does not limit one of its HTML optimization routines to stylesheet content, so it can delete the markup that closes an attribute in the rendered page, and combined with unescaped comment author output this allows unauthenticated users whose comments are published to inject event-handler attributes that run JavaScript in the browser of any visitor, including a logged-in administrator, viewing front-end pages while the optimization is enabled.
📍 영향받는 시스템
LiteSpeed Cache WordPress 플러그인 7.9.2 미만 버전 (HTML 최적화 기능 활성화 시)
⚔️ 공격 벡터
댓글 작성 시 이벤트 핸들러 속성이 포함된 악성 코드를 입력하면, 댓글이 게시된 페이지를 방문하는 사용자 브라우저에서 스크립트가 실행됨 (Stored XSS)
🛡️ 대응 방법
LiteSpeed Cache 플러그인을 7.9.2 이상으로 업데이트하고, HTML 최적화 기능을 점검하거나 비활성화합니다.
🔧 검증 코드
출력된 버전이 7.9.2 미만이면 취약하며, 7.9.2 이상이면 패치가 적용된 것입니다. 명령 결과가 없으면 플러그인이 설치되지 않은 경로를 확인하세요.
wp plugin get litespeed-cache --field=version 2>/dev/null || grep -m1 'Version:' wp-content/plugins/litespeed-cache/litespeed-cache.php 2>/dev/null