Плагин Coupon Creator для WordPress уязвим для Stored Cross-Site Scripting через параметр «metavalue (with metakeyinput=cctor_expiration)» во всех версиях до, включая, 3.6.5 из-за недостаточной дезинфекции входов и выхода выходов. Это позволяет аутентифицированным злоумышленникам, с доступом уровня участника и выше, вводить произвольные веб-скрипты на страницах, которые будут выполняться всякий раз, когда пользователь получает доступ к введенной странице. Эксплойт возможен, потому что тип поста cctor_coupon рекламирует поддержку 'custom-fields', позволяя метабоксу WordPress ядра Custom Fields для Contributors, а незарегистрированный мета-ключ cctor_expiration вызывает sanitize_meta(), что позволяет сырому HTML дословно храниться в базе данных с помощью одного запроса AJAX.
Показать оригинальное описание (EN)
The Coupon Creator plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'metavalue (with metakeyinput=cctor_expiration)' parameter in all versions up to, and including, 3.6.5 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The exploit is possible because the cctor_coupon post type advertises 'custom-fields' support, enabling WordPress core's Custom Fields metabox for Contributors, and the unregistered cctor_expiration meta key causes sanitize_meta() to be a no-op, allowing raw HTML to be stored verbatim in the database via a single AJAX request.
Характеристики атаки
Последствия
Строка CVSS v3.1