Плагин Basel Post Types для WordPress уязвим для Authentication Bypass во всех версиях вплоть до 1.18. The vulnerability exists because a missing-quotes coding error in the defined() call for SECURE_AUTH_SALT inside BASEL_Auth::get_config() causes PHP to evaluate the constant's value rather than its name, making the check always fail and permanently falling back to the static hardcoded salt 2NlBUibcszrVtNmDnxqDbwCOpLWq91eatIz6O1O that is publicly visible in the theme source code; because this salt is static and known, an attacker can compute a valid Opauth signature entirely offline and submit a forged ?opauth callback to the unauthenticated init hook endpoint processed by register_or_login. Это позволяет не аутентифицированным злоумышленникам аутентифицировать любого существующего пользователя WordPress, включая администраторов, путем подделки обратного звонка, привязанного к известному адресу электронной почты целевой учетной записи, минуя все проверки пароля, многофакторную аутентификацию и проверку прав собственности, а также получая полностью аутентифицированный сеансовый файл cookie через wc_set_customer_auth_cookie().
Эксплуатация требует, чтобы WooCommerce был активным, и по крайней мере один поставщик социальных логинов Basel (Facebook, Google или VKontakte) должен быть настроен с допустимыми app_id и app_secret в настройках темы.
Показать оригинальное описание (EN)
The Basel Post Types plugin for WordPress is vulnerable to Authentication Bypass in all versions up to, and including, 1.18. The vulnerability exists because a missing-quotes coding error in the defined() call for SECURE_AUTH_SALT inside BASEL_Auth::get_config() causes PHP to evaluate the constant's value rather than its name, making the check always fail and permanently falling back to the static hardcoded salt 2NlBUibcszrVtNmDnxqDbwCOpLWq91eatIz6O1O that is publicly visible in the theme source code; because this salt is static and known, an attacker can compute a valid Opauth signature entirely offline and submit a forged ?opauth callback to the unauthenticated init hook endpoint processed by register_or_login. This makes it possible for unauthenticated attackers to authenticate as any existing WordPress user, including administrators, by forging a callback tied to a known target account email address — bypassing all password verification, multi-factor authentication, and ownership checks, and receiving a fully authenticated session cookie via wc_set_customer_auth_cookie(). Exploitation requires WooCommerce to be active and at least one Basel social-login provider (Facebook, Google, or VKontakte) to be configured with a valid app_id and app_secret in the theme settings.
Характеристики атаки
Последствия
Строка CVSS v3.1