Плагин s2Member Excellent for All Kinds Memberships, Content Restriction Paywalls & Member Access Subscriptions для WordPress уязвим для удаленного выполнения кода во всех версиях, включая 260814, через параметр first_name. Это связано с недостаточной санацией параметра first_name через esc_refs(), который удаляет только обратные ссылки regex, а не теги PHP, перед заменой в шаблон eval'd Signup Tracking Codes, в сочетании с раскрытием ключа проверки прокси-сервера сайта, который позволяет обойти проверку PayPal после обратного. Это позволяет неаутентифицированным злоумышленникам выполнять код на сервере.
Успешная эксплуатация требует, чтобы администратор сайта настроил шаблон Signup Tracking Codes, содержащий заполнитель %%first_name%% (документированная, поддерживаемая графическим интерфейсом функция), и чтобы злоумышленник получил ключ проверки прокси-сервера сайта, который отображается в открытом виде в ответе JSON на любой запрос PayPal Checkout AJAX на целевом сайте.
Показать оригинальное описание (EN)
The s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 260814 via the 'first_name' parameter parameter. This is due to insufficient sanitization of the first_name parameter via esc_refs(), which strips only regex backreferences and not PHP tags, before substitution into the eval'd Signup Tracking Codes template, combined with disclosure of the site-global proxy verification key that allows PayPal postback verification to be bypassed. This makes it possible for unauthenticated attackers to execute code on the server. Successful exploitation requires that the site administrator has configured a Signup Tracking Codes template containing the %%first_name%% placeholder (a documented, GUI-supported feature) and that the attacker has obtained the site-global proxy verification key, which is exposed in plaintext in the JSON response of any PayPal Checkout AJAX request on the target site.
Характеристики атаки
Последствия
Строка CVSS v3.1