🇰🇷 한글 설명
WordPress용 Bootstrap Shortcodes 플러그인 3.4.6 미만 버전에서 [bs_tcontent] 숏코드의 id 속성을 통해 저장형 XSS 취약점이 발생합니다. id 값에 공백을 포함할 경우 HTML 속성이 비정상적으로 종료되어 자바스크립트 이벤트 핸들러를 주입할 수 있습니다. 이를 통해 기여자(Contributor) 이상의 권한을 가진 공격자가 사용자 브라우저에서 임의의 스크립트를 실행할 수 있습니다.
💡 쉬운 설명
웹사이트 게시물에 특수하게 조작된 코드를 저장하면, 다른 사용자가 해당 페이지를 볼 때 악성 스크립트가 자동으로 실행되는 보안 결함입니다. 글을 쓸 수 있는 권한이 있는 사용자가 웹사이트의 제어권을 탈취하거나 정보를 훔칠 수 있습니다.
🇺🇸 원문 (English)
The Bootstrap Shortcodes plugin for WordPress before 3.4.6 is vulnerable to stored XSS via the id attribute of the [bs_tcontent] shortcode. The bs_tcontent() shortcode handler in inc/bs_tabs.php emits the id attribute value into an unquoted HTML attribute. esc_attr() is applied, but it does not encode space characters, so a space in the supplied value terminates the attribute and any following text is parsed as additional HTML attributes, including JavaScript event handlers. This allows authenticated attackers with Contributor-level access and above to inject arbitrary web script that executes in the browser of any user who views the page and interacts with the injected element.
📍 영향받는 시스템
WordPress Bootstrap Shortcodes plugin version < 3.4.6
⚔️ 공격 벡터
기여자 이상의 권한을 가진 사용자가 [bs_tcontent] 숏코드의 id 속성에 공백과 자바스크립트 이벤트 핸들러를 포함한 악성 페이로드를 삽입하여 공격
🛡️ 대응 방법
Bootstrap Shortcodes 플러그인을 최신 버전인 3.4.6 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 결과에서 bootstrap-shortcodes의 버전이 3.4.6 미만인지 확인하십시오.
wp-cli plugin list --allow-root | grep -E 'bootstrap-shortcodes'