Плагин Automation Web Platform Notifications и OTP for WooCommerce, Advanced Country Code для WordPress уязвим для Privilege Escalation во всех версиях вплоть до 4.8.6. This is due to missing permission enforcement on the publicly accessible REST route `POST /wp-json/wawp/v1/signup/<op>` and the absence of a key allowlist in the `finish_registration_logic` function, which copies the attacker-controlled `wawp_custom_fields` parameter directly into `update_user_meta()` — allowing sensitive meta keys such as `wp_capabilities` and `wp_user_level` to be set by the caller. Это дает возможность неаутентифицированным злоумышленникам зарегистрировать новую учетную запись с ролью администратора и получить полный административный доступ к сайту.
Когда при регистрации включена проверка OTP, токен сессии OTP (otp_transient) возвращается в открытом виде в теле ответа HTTP, а обработчик handle_magic_link_request() отмечает, что маркер верифицирован по любому неаутентифицированному запросу GET, содержащему его, без проверки значения кода OTP, что делает шаг OTP тривиальным обходом без необходимости входящих или SMS доступа.
Показать оригинальное описание (EN)
The Automation Web Platform – Notifications and OTP for WooCommerce, Advanced Country Code plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 4.8.6. This is due to missing permission enforcement on the publicly accessible REST route `POST /wp-json/wawp/v1/signup/<op>` and the absence of a key allowlist in the `finish_registration_logic` function, which copies the attacker-controlled `wawp_custom_fields` parameter directly into `update_user_meta()` — allowing sensitive meta keys such as `wp_capabilities` and `wp_user_level` to be set by the caller. This makes it possible for unauthenticated attackers to register a new account with the administrator role and gain full administrative access to the site. When OTP verification is enabled at signup, the OTP session token (`otp_transient`) is returned in plaintext in the HTTP response body, and the `handle_magic_link_request()` handler marks that token as verified on any unauthenticated GET request containing it without ever checking the OTP code value — making the OTP step trivially bypassable with no inbox or SMS access required.
Характеристики атаки
Последствия
Строка CVSS v3.1