Плагин Customer Email Verification for WooCommerce для WordPress уязвим для Privilege Escalation через параметр alg_wc_ev_verify_email в версиях до, включая, 3.3.0. The vulnerability exists because `alg_wc_ev_generate_user_code()` generates the per-user activation secret using `wp_rand(100)` when the plugin's 'Encoding method' is set to 'hashids', producing only ~101 possible values (~7 bits of entropy); the resulting token is a reversible Hashids encoding with no cryptographic MAC, and the unauthenticated `verify()` handler — hooked to `init` at `PHP_INT_MAX` with no nonce check and no rate limiting — accepts and acts on the attacker-controlled `?alg_wc_ev_verify_email=` GET parameter directly. Это позволяет неаутентифицированным злоумышленникам получить аутентификацию как любой непроверенной учетной записи WordPress, включая учетные записи на уровне администратора, путем грубого форсирования тривиального небольшого пространства кода активации с помощью поддельной проверки URL.
Эксплуатация требует, чтобы параметр «метод Encoding» был изменен на «hashids» (не по умолчанию), чтобы злоумышленник восстановил или перебрал соль Hashids (которая по умолчанию соответствует значению md5(time()), установленному при первой инициализации), и чтобы адрес электронной почты целевой учетной записи оставался непроверенным.
Показать оригинальное описание (EN)
The Customer Email Verification for WooCommerce plugin for WordPress is vulnerable to Privilege Escalation via the `alg_wc_ev_verify_email` parameter in versions up to, and including, 3.3.0. The vulnerability exists because `alg_wc_ev_generate_user_code()` generates the per-user activation secret using `wp_rand(100)` when the plugin's 'Encoding method' is set to 'hashids', producing only ~101 possible values (~7 bits of entropy); the resulting token is a reversible Hashids encoding with no cryptographic MAC, and the unauthenticated `verify()` handler — hooked to `init` at `PHP_INT_MAX` with no nonce check and no rate limiting — accepts and acts on the attacker-controlled `?alg_wc_ev_verify_email=` GET parameter directly. This makes it possible for unauthenticated attackers to gain authentication as any unverified WordPress account, including administrator-level accounts, by brute-forcing the trivially small activation code space via a forged verification URL. Exploitation requires that the 'Encoding method' setting be changed to 'hashids' (non-default), that the attacker recover or brute-force the Hashids salt (which defaults to an `md5(time())` value set at first initialization), and that the target account's email address remain unverified.
Характеристики атаки
Последствия
Строка CVSS v3.1