Summary
GoFound through 1.4.1 contains a path traversal vulnerability that allows unauthenticated attackers to delete arbitrary directories by supplying ../ sequences in the database parameter. Attackers can send GET requests to /api/db/create and /api/db/drop, directly or via a victim's browser, triggering os.RemoveAll on directories outside the data directory.
Remediation
References
- Advisoryhttps://www.vulncheck.com/advisories/gofound-through-1.4.1-path-traversal-via-database-parameter-in-api-db-drop
- Referencehttps://github.com/sea-team/gofound/blob/v1.4.1/searcher/container.go
- Referencehttps://github.com/sea-team/gofound/blob/v1.4.1/searcher/engine.go
- Referencehttps://github.com/sea-team/gofound/issues/101
- Referencehttps://vul.yulun.ac.cn/20261102/gofound/