User FrontendMembership, User Registration, User Profile, User Directory & Content Restriction с плагином Frontend Post Submission для WordPress уязвим для Privilege Escalation во всех версиях вплоть до, включая, 4.3.14 через функцию draft_post(). Это связано с функцией хранения параметра post_content через wp_insert_post() без проверки списка разрешений с защищенным шорткодом, которая была введена в 4.3.14 для обработчика брата submit_post() — пробел, который фильтрация wp_kses не закрывается, поскольку он удаляет только HTML тегов, оставляя неповрежденным текст шорткода, такой как [wpuf-regn-registing rote rote. Это позволяет аутентифицированным злоумышленникам, с доступом Author-level и выше, встроить регистрационный шорткод в сообщение и заставить любого посетителя сайта, который впоследствии зарегистрируется через визуализированную форму, получить доступ Editor-level.
Фильтр времени рендеринга wpuf_modify_shortcodes, предназначенный для нейтрализации защищенных коротких кодов, не обеспечивает здесь защиты, поскольку сообщения, созданные через конечную точку wpuf_draft_post` AJAX, не несут мета-сообщения _edit_last, заставляя фильтр возвращать содержимое без изменений и позволяя шорткоду полностью рендерить и выполнять.
Показать оригинальное описание (EN)
The User Frontend – Membership, User Registration, User Profile, User Directory & Content Restriction with Frontend Post Submission plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 4.3.14 via the `draft_post()` function. This is due to the function storing the `post_content` parameter via `wp_insert_post()` without the protected-shortcode allow-list check that was introduced in 4.3.14 for the sibling `submit_post()` handler — a gap that `wp_kses` filtering does not close, as it strips only HTML tags while leaving shortcode text such as `[wpuf-registration role="editor"]` intact. This makes it possible for authenticated attackers, with Author-level access and above, to embed a registration shortcode in a post and cause any site visitor who subsequently registers through the rendered form to receive Editor-level access. The render-time `wpuf_modify_shortcodes` filter that is designed to neutralize protected shortcodes provides no protection here because posts created via the `wpuf_draft_post` AJAX endpoint carry no `_edit_last` post meta, causing the filter to return the content unchanged and allowing the shortcode to render and execute fully.
Характеристики атаки
Последствия
Строка CVSS v3.1