🇰🇷 한글 설명
WordPress용 Membership & User Roles for WooCommerce 플러그인의 권한 상승 취약점입니다. 외부 제공업체에서 권한이 회수되었음에도 불구하고 캐시된 역할 정보가 삭제되지 않아, 인증된 사용자가 이전에 가졌던 관리자 권한을 다시 복구할 수 있습니다.
💡 쉬운 설명
한번 가졌던 관리자 권한이 취소되어도 플러그인이 이를 기억하고 있어, 특정 동작을 통해 권한을 다시 되살릴 수 있는 문제입니다. 이를 통해 일반 사용자가 사이트의 모든 제어권을 탈취할 수 있습니다.
🇺🇸 원문 (English)
The Membership & User Roles for WooCommerce (Automatic Role Changer) plugin for WordPress is vulnerable to Privilege Escalation in versions up to, and including, 20260828. This is due to the `maybe_add_role_to_user()` function unconditionally re-assigning every role stored in the `dfxwcrc_foreign_roles` user meta cache without verifying that each cached role is still actively assigned by the external provider — a condition made permanent by `remember_foreign_roles()`, which merges new foreign roles into the cache but never evicts roles that have since been revoked. This makes it possible for authenticated attackers with subscriber-level access and above to restore a previously revoked Administrator role to their own account, gaining full administrative control of the site, by triggering any role-assignment event such as completing a purchase for a role-mapped product. Exploitation requires Replace Roles mode to be enabled and the attacker's account to have previously received Administrator legitimately through a separate role-management mechanism while the plugin was active, so that `administrator` was written into the `dfxwcrc_foreign_roles` user meta cache before the external provider revoked it.
📍 영향받는 시스템
Membership & User Roles for WooCommerce (Automatic Role Changer) plugin versions up to and including 20260828
⚔️ 공격 벡터
인증된 사용자가 역할 할당 이벤트(예: 제품 구매)를 트리거하여 캐시된 관리자 역할을 재활성화
🛡️ 대응 방법
플러그인을 최신 버전으로 업데이트하거나, Replace Roles 모드 사용 시 외부 권한 동기화 상태를 주기적으로 점검하십시오.
🔧 검증 코드
출력된 플러그인 버전이 20260828 이하인지 확인하십시오.
wp plugin list --status=active | grep -i 'membership-user-roles' && wp plugin list --all | grep -E 'membership-user-roles' | awk '{print $2 " " $3}'
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
💻 영향받는 소프트웨어
IBM Security Verify Access