Description
Usagi-org ai-goofish-monitor contains an unauthenticated arbitrary file read vulnerability in the GET /api/prompts/{filename} endpoint on Windows deployments that allows unauthenticated remote attackers to read arbitrary files by supplying absolute Windows paths or backslash-based traversal sequences. Attackers can bypass the incomplete path traversal guard, which only blocks forward slashes and '..', by providing absolute paths such as Windows system file locations, causing os.path.join to discard the intended prompts directory prefix and expose files accessible to the application process.
Problem types
CWE-36 Absolute Path Traversal
Product status
Any version before f85d140b6b45029d9a0925feb96dad733b41396d
Credits
YU SUN
References
github.com/Usagi-org/ai-goofish-monitor/issues/488
github.com/Usagi-org/ai-goofish-monitor/issues/488
github.com/Usagi-org/ai-goofish-monitor/pull/489
www.vulncheck.com/...arbitrary-file-read-via-get-api-prompts
github.com/...ommit/f85d140b6b45029d9a0925feb96dad733b41396d