| 제목 | leomoon-studios wiki-go <= 1.9.1 Path Traversal |
|---|
| 설명 | The /api/files/rename endpoint, reachable by any user with the editor role, accepts a JSON body with currentPath and newName. Neither value is validated against .., and both are joined under the documents directory before being passed to os.Rename. An editor can therefore relocate any file under the wiki data root — including config.yaml, static/, versions/, and comments/ — to any path within the same filesystem, escaping the documents/ sandbox. Relocating config.yaml forces the application to regenerate default credentials (admin/admin) on the next start, and relocating it into the documents tree as a .txt file discloses every user's password hash. Default configuration is affected.
|
|---|
| 원천 | ⚠️ https://github.com/leomoon-studios/wiki-go/security/advisories/GHSA-xg75-vx57-m5mx |
|---|
| 사용자 | mikannse (UID 100854) |
|---|
| 제출 | 2026. 10. 08. AM 04:10 (14 날 ago) |
|---|
| 모더레이션 | 2026. 10. 21. PM 01:12 (13 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 424732 [leomoon-studios wiki-go 까지 1.9.1 Files Rename API files.go RenameFileHandler currentPath/newName 디렉토리 순회] |
|---|
| 포인트들 | 20 |
|---|