
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 for unauthenticated SQL injection vulnerability in GLPI.
| Field | Value |
|---|---|
| CVE | CVE-2025-24799, CVE-2025-24801 |
| Product | GLPI (Asset Management Software) |
| Type | Unauthenticated SQL Injection |
| Vulnerable Point | /index.php/ajax/ endpoint |
| Affected Function | handleAgent with deviceid parameter |
| Vulnerable Version | < 10.0.18 |
| Fixed in | GLPI 10.0.18 |
The exploit leverages the lack of proper sanitization of the deviceid parameter in GLPI's agent inventory endpoint. The handleAgent function accepts this parameter without proper escaping, allowing SQL injection through the dbEscapeRecursive function.
/index.php/ajax/ endpoint| Argument | Type | Required | Description | Default |
|---|---|---|---|---|
-u, --url | string | Yes | URL of the target GLPI instance (includes http/https) | Required |
--check | flag | No | Only verify vulnerability without actively exploiting | false |
--exploit | flag | No | Perform active exploitation and extract data | false |
-t, --timeout | integer | No | Request timeout in seconds | 10 |
python3 exploit_cve_2025_24799.py -u https://HOST.com --check
python3 exploit_cve_2025_24799.py -u https://HOST.com
python3 exploit_cve_2025_24799.py -u https://HOST.com --exploit --timeout 15
python3 exploit_cve_2025_24799.py -u https://HOST.com--check --timeout 20
python3 exploit_cve_2025_24799.py --help
python3 >= 3.6
requests == 2.31.0
pip install -r requirements.txt
glpi_users tableThis exploitation code is provided solely for ethical security testing purposes and with proper authorization.
REQUIRED AUTHORIZATION:
This exploit is intended for:
| Source | Description |
|---|---|
| CVE Database | CVE-2025-24799, CVE-2025-24801 |
| Vendor Advisory | GLPI Security Bulletin |
| NVD | NVD CVE entry and CVSS score |
G4l1l30 - Security research purpose
This exploit is intended for ethical security researchers and professionals. Misuse is the responsibility of the user.