Description
Kan is an open-source project management tool. In versions 0.5.4 and below, the /api/download/attatchment endpoint has no authentication and no URL validation. The Attachment Download endpoint accepts a user-supplied URL query parameter and passes it directly to fetch() server-side, and returns the full response body. An unauthenticated attacker can use this to make HTTP requests from the server to internal services, cloud metadata endpoints, or private network resources. This issue has been fixed in version 0.5.5. To workaround this issue, block or restrict access to /api/download/attatchment at the reverse proxy level (nginx, Cloudflare, etc.).
Problem types
CWE-918: Server-Side Request Forgery (SSRF)
Product status
References
github.com/kanbn/kan/security/advisories/GHSA-qrx8-9hc6-jvqg
github.com/...ommit/53397d8e81dc1494d94132848c1f0416f1152bd7
github.com/kanbn/kan/releases/tag/v0.5.5