The WP Compress – Instant Performance & Speed Optimization plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 7.25.00 The vulnerability exists because the `start_comms` dispatcher (`wps_ic_comms::start_comms`), hooked on every front-end request, gates access only by comparing the caller-supplied `apikey` parameter against the stored plugin API key with no WordPress capability check and no nonce verification, then passes the unvalidated `group`, `setting`, and `value` parameters directly to `change_setting()`, which writes them into the `WPS_IC_SETTINGS` option without an allow-list. Это позволяет неавторизованным злоумышленникам записывать произвольные ключи разрешений в настройки плагина, в результате чего wps_ic_users::checkAndAddCaps() предоставляет любую роль WordPress - в том числе Subscriber - возможность manage_wpc_settings и тем самым достигает plugin-administrator-equivalent контроля над оптимизацией плагина, CDN и критическими поверхностями CSS. Ключ API, необходимый для прохождения проверки авторизации, сам по себе может быть получен без аутентификации через действие wpc_send_critical_remote nopriv AJAX: когда внешний критический сервис CSS возвращает поле apiResults, initCritical() перекликается с сохраненным ключом плагина API для вызывающего абонента в ответе wp_send_json_success, завершая цепочку экспл полностью без входа в WordPress.
Показать оригинальное описание (EN)
The WP Compress – Instant Performance & Speed Optimization plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 7.25.00 The vulnerability exists because the `start_comms` dispatcher (`wps_ic_comms::start_comms`), hooked on every front-end request, gates access only by comparing the caller-supplied `apikey` parameter against the stored plugin API key with no WordPress capability check and no nonce verification, then passes the unvalidated `group`, `setting`, and `value` parameters directly to `change_setting()`, which writes them into the `WPS_IC_SETTINGS` option without an allow-list. This makes it possible for unauthenticated attackers to write arbitrary permission keys into the plugin's settings, causing `wps_ic_users::checkAndAddCaps()` to grant any WordPress role — including Subscriber — the `manage_wpc_settings` capability and thereby achieve plugin-administrator-equivalent control over the plugin's optimization, CDN, and critical-CSS surfaces. The API key required to pass the authorization check can itself be obtained without authentication via the `wpc_send_critical_remote` nopriv AJAX action: when the external critical-CSS service returns an `apiResults` field, `initCritical()` echoes the stored plugin API key back to the caller in a `wp_send_json_success` response, completing the exploit chain entirely without a WordPress login.
Характеристики атаки
Последствия
Строка CVSS v3.1