提交 #1019389: leomoon-studios wiki-go <= 1.9.1 Path Traversal信息

标题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 04時10分 (14 日前)
管理2026-10-21 13時12分 (13 days later)
状态已接受
VulDB条目424732 [leomoon-studios wiki-go 直到 1.9.1 Files Rename API files.go RenameFileHandler currentPath/newName 目录遍历]
积分20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!