Плагин Easy Digital Downloads для WordPress уязвим для обхода аутентификации, что приводит к захвату учетной записи администратора во всех версиях вплоть до 3.7.2. Во время гостевого заказа PayPal адрес электронной почты, введенный в поле гостевого заказа, считается подтверждением личности: edd_get_purchase_form_user () связывает новый заказ гостя с существующим пользователем WordPress исключительно на соответствие адреса электронной почты, переписывая user_id заказа на ID этого пользователя. PayPal захват раковины PurchaseUser::maybe_log_in_after_capture() затем посмотрел на пользователя по электронной почте заказа (get_user_by( 'email', $order->email)) и, когда $order->user_id сравнялся, что пользователь ID (который email-binding шаг гарантирует), выдал аутентифицированный сеанс с wp_set_auth_cookie(). Непроверенный злоумышленник, который начинает гостевую проверку, используя адрес электронной почты администратора (где у этого администратора нет существующей записи клиента EDD), и завершает поток покупок PayPal, поэтому получает аутентифицированную сессию в качестве этого администратора - полное поглощение учетной записи.
Та же раковина доступна через стандартную кассу PayPal и потоки REST UnbrandedCard и Fastlane.
Показать оригинальное описание (EN)
The Easy Digital Downloads plugin for WordPress is vulnerable to authentication bypass leading to administrator account takeover in all versions up to, and including, 3.7.2. During a PayPal guest checkout, the email address entered in the guest-checkout field is trusted as proof of identity: edd_get_purchase_form_user() binds the new guest order to an existing WordPress user purely on an email-address match, rewriting the order's user_id to that user's ID. The PayPal capture sink PurchaseUser::maybe_log_in_after_capture() then looked the user up by the order email (get_user_by( 'email', $order->email )) and, when $order->user_id equalled that user's ID (which the email-binding step guarantees), issued an authenticated session with wp_set_auth_cookie(). An unauthenticated attacker who starts a guest checkout using an administrator's email address (where that administrator has no existing EDD customer record) and completes the PayPal purchase flow therefore receives an authenticated session as that administrator — a full account takeover. The same sink is reachable through the standard PayPal checkout and the REST UnbrandedCard and Fastlane flows.
Характеристики атаки
Последствия
Строка CVSS v3.1