Description
Filestash before commit a634722 contains an open redirect vulnerability in the MCP OAuth flow that allows remote attackers to steal session tokens via an unvalidated redirect_uri. Attackers can lure logged-in users to a crafted /mcp/authorize link, capture the authorization code, and exchange it at /mcp/token for the victim's session token.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mickael-kerjean | Filestash | 7821bc8681ea054783f850f188f7c41293b766ae <a6347229a578c7659257b90e2d5f3980d2afdc44 | — |
References
- https://github.com/mickael-kerjean/filestash/blob/76238d7fc8a090433ee0ea5976b14a6e660f5419/server/plugin/plg_handler_mcp/handler_auth.go#L89-L156
- https://github.com/mickael-kerjean/filestash/blob/76238d7fc8a090433ee0ea5976b14a6e660f5419/server/plugin/plg_handler_mcp/index.go#L35-L41
- https://github.com/mickael-kerjean/filestash/commit/a6347229a578c7659257b90e2d5f3980d2afdc44
- https://www.vulncheck.com/advisories/filestash-before-commit-a634722-session-token-theft-via-mcp-oauth-redirect-uri