🔍 CVE-2026-4300

6.4
CVSS Score
MEDIUM
2026-04-08
2026-07-24 20:10
✅ 완료

🇰🇷 한글 설명

WordPress의 Robo Gallery 플러그인 5.1.3 이하 버전에서 저장형 XSS 취약점이 발견되었습니다. 'Loading Label' 설정 필드에 특수 마커를 사용한 악성 스크립트를 삽입하면, 플러그인이 이를 검증 없이 자바스크립트로 변환하여 실행합니다. 이를 통해 권한을 가진 공격자가 사용자 브라우저에서 임의의 코드를 실행할 수 있습니다.

💡 쉬운 설명

갤러리 설정창에 특수한 기호를 섞은 코드를 입력하면, 웹사이트 방문자가 해당 페이지를 볼 때 공격자가 심어놓은 악성 코드가 자동으로 실행되는 문제입니다. 글 작성 권한이 있는 사용자가 이 기능을 악용하여 다른 방문자의 정보를 훔칠 수 있습니다.

🇺🇸 원문 (English)

The Robo Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'Loading Label' setting in all versions up to, and including, 5.1.3. The plugin uses a custom `|***...***|` marker pattern in its `fixJsFunction()` method to embed raw JavaScript function references within JSON-encoded configuration objects. When a gallery's options are rendered on the frontend, `json_encode()` wraps all string values in double quotes. The `fixJsFunction()` method then strips the `"|***` and `***|"` sequences, effectively converting a JSON string value into raw JavaScript code. The Loading Label field (stored as `rbs_gallery_LoadingWord` post_meta) is an `rbstext` type field that is sanitized with `sanitize_text_field()` on save. While this strips HTML tags, it does not strip the `|***...***|` markers since they contain no HTML. When a user inputs `|***alert(document.domain)***|`, the value passes through sanitization intact, is stored in post_meta, and is later retrieved and output within an inline `<script>` tag via `renderMainBlock()` with the quote markers stripped — resulting in arbitrary JavaScript execution. The gallery post type uses `capability_type => 'post'`, allowing Author-level users to create galleries. 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 a page containing the gallery shortcode.

📍 영향받는 시스템

WordPress Robo Gallery plugin (version 5.1.3 and below)

⚔️ 공격 벡터

권한이 있는 사용자가 'Loading Label' 설정에 |***alert(1)***| 형태의 페이로드를 삽입하여 저장

🛡️ 대응 방법

Robo Gallery 플러그인을 최신 버전으로 업데이트하거나, 해당 설정 필드에 대한 입력값 검증 로직을 수정해야 합니다.

🔧 검증 코드

출력 결과에 robo-gallery가 포함되어 있다면 해당 플러그인이 설치된 것이며, 설치된 버전을 확인하여 5.1.3 이하인지 점검해야 합니다.

Shell / Script
wp plugin list --status=active | grep -i 'robo-gallery'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

💻 영향받는 소프트웨어

WordPress