🔍 CVE-2026-12165

8.8
CVSS Score
HIGH
2026-06-17
2026-06-17 14:44
✅ 완료

🇰🇷 한글 설명

WordPress용 'The Contest Gallery' 플러그인 30.0.2 버전 이하에서 권한 상승 취약점이 발견되었습니다. 공격자가 RegistryUserRole 파라미터를 조작하여 구글 로그인 계정의 권한을 관리자(administrator)로 승격시킬 수 있습니다.

💡 쉬운 설명

일반 사용자 권한을 가진 사람이 플러그인의 설정을 몰래 바꿔서 자신을 사이트 관리자로 만들 수 있는 보안 결함입니다. 이로 인해 사이트의 모든 제어권을 탈취당할 위험이 있습니다.

🇺🇸 원문 (English)

The Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 30.0.2 via the `RegistryUserRole` parameter. This is due to the plugin's admin menu being registered at the `edit_posts` capability level — granting Contributor-level users access to the plugin's admin pages and a valid `cg_admin` nonce — while the option-saving handler in `change-options-and-sizes.php` performs no `current_user_can()` capability check beyond `check_admin_referer('cg_admin')`, and the `RegistryUserRole` value is processed only through `sanitize_text_field()` and `htmlentities()` without restriction to an allowlist of permitted role names. This makes it possible for authenticated attackers, with author-level access and above, to overwrite the plugin's stored `RegistryUserRole` option with `administrator`, which the `cg_create_wp_user_from_google_user` function then reads back from the `contest_gal1ery_registry_and_login_options` database table without any allowlist validation and passes directly to `wp_update_user()`, effectively promoting a newly registered Google sign-in account to Administrator.

📍 영향받는 시스템

The Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe plugin for WordPress (v30.0.2 이하 모든 버전)

⚔️ 공격 벡터

인증된 사용자(작성자 권한 이상)가 권한 검증이 누락된 파라미터를 통해 데이터베이스의 사용자 역할을 관리자로 수정

🛡️ 대응 방법

플러그인을 최신 버전으로 업데이트하거나, 관리자 페이지 접근 및 옵션 저장 시 권한 검증(current_user_can)이 포함된 패치를 적용해야 합니다.

🔧 검증 코드

출력된 플러그인 목록에서 'contest-gallery'가 포함되어 있는지 확인하고, 설치된 버전을 체크하여 30.0.2 이하인지 확인합니다.

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

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Spring Data REST