| 제목 | javahuang surveyking < v1.13.0 Unrestricted File Upload |
|---|
| 설명 | **SurveyKing — Unauthenticated Arbitrary File Write via Path Traversal in `/api/public/upload` (CWE-434 / CWE-22)**
Summary of the issue:
Unauthenticated arbitrary file write via the basePath parameter in POST /api/public/upload. The endpoint is permitAll() in Spring Security. basePath is concatenated without normalization, and Path.resolve() allows absolute paths or ../ traversal to escape the storage root. Files are written with REPLACE_EXISTING. Fixed in v1.13.0 (commit d469ef73).
The linked page includes full HTTP request/response PoC for both relative traversal (../../../../tmp) and absolute path (/tmp) writes, plus a read-back step via /api/public/preview/{id} to confirm the write succeeded. |
|---|
| 원천 | ⚠️ https://github.com/Super403/CVE/blob/main/poc/SurveyKing.md |
|---|
| 사용자 | super403 (UID 102481) |
|---|
| 제출 | 2026. 10. 25. AM 06:46 (1 월 ago) |
|---|
| 모더레이션 | 2026. 11. 24. AM 09:59 (1 month later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 442773 [javahuang SurveyKing 까지 0.3.0-beta.3 File Upload LocalStorageService.java resolvePath basePath 디렉토리 순회] |
|---|
| 포인트들 | 20 |
|---|