Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!
CVE-2025-24799 — Unauthenticated SQL injection exploit for GLPI versions before 10.0.18, enabling database enumeration, credential extraction, and API token exfiltration via the /index.php/ajax/ endpoint. | Kitploit
Unauthenticated SQL injection exploit for GLPI versions before 10.0.18, enabling database enumeration, credential extraction, and API token exfiltration via the /index.php/ajax/ endpoint.
Exploit para vulnerabilidad de inyección SQL no autenticada en GLPI.
Vulnerability Information
Campo
Valor
CVE
CVE-2025-24799, CVE-2025-24801
Producto
GLPI (Asset Management Software)
Tipo
Unauthenticated SQL Injection
Punto vulnerable
/index.php/ajax/ endpoint
Función afectada
handleAgent con parámetro deviceid
Versión vulnerable
< 10.0.18
Corregido en
GLPI 10.0.18
Explicación Técnica
El exploit explota la falta de sanitización adecuada del parámetro deviceid en el inventario agente endpoint de GLPI. La función handleAgent acepta este parámetro sin proper escase, permitiendo inyección SQL a través de la función dbEscapeRecursive.
Mecanismo de ataque
El exploit envía payloads XML malformados al endpoint /index.php/ajax/
Usa técnicas SQL injection: time-based, union-based y error-based
Puede extraer credenciales, tokens API para RCE (CVE-2025-24801) y datos del database
Parámetros del Exploit
Argumento
Tipo
Obligatorio
Descripción
Por defecto
-u, --url
string
Sí
URL de la instancia GLPI objetivo (incluye http/https)
Requiere
--check
flag
No
Solo verificar vulnerabilidad sin explotar activamente
false
--exploit
flag
No
Realizar explotación activa y extraer datos
false
-t, --timeout
integer
No
Tiempo de espera para requests en segundos
10
Ejemplos de Uso
Verificar si la vulnerabilidad existe (modalo, no intrusivo)