Плагин WP Inventory Manager для WordPress уязвим для SQL Injection через атрибут 'where' shortcode [wpinventory] shortcode в версиях вплоть до, включая, 2.5.1. Это связано с недостаточным отказом от поставляемого пользователем параметра и недостаточной подготовкой к существующему запросу SQL в функции WPIMItem::get_all() — parse_custom_where() выполняет только html_entity_decode(), прокладывает полуколонны и заменяет имена полевых меток без использования $wpdb->prepare() или белого списка. Полученная строка конкатенируется в необработанный оператор SELECT, который выполняется через $wpdb->get_results().
Это позволяет аутентифицированным злоумышленникам с доступом Contributor-level и выше добавлять дополнительные запросы SQL в уже существующие запросы, которые могут быть использованы для извлечения конфиденциальной информации из базы данных.
Показать оригинальное описание (EN)
The WP Inventory Manager plugin for WordPress is vulnerable to SQL Injection via the 'where' shortcode attribute of the [wpinventory] shortcode in versions up to, and including, 2.5.1. This is due to insufficient escaping on the user-supplied parameter and lack of sufficient preparation on the existing SQL query in the WPIMItem::get_all() function — parse_custom_where() only performs html_entity_decode(), strips semicolons, and does field-label name replacements, without using $wpdb->prepare() or a whitelist. The resulting string is concatenated into a raw SELECT statement that is executed via $wpdb->get_results(). This makes it possible for authenticated attackers, with Contributor-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Характеристики атаки
Последствия
Строка CVSS v3.1