Letting users trust their own MCP clients, without opening a phishing hole
Stream Vessel proposes a per-user OAuth redirect URI trust model for MCP servers, balancing self-hosted agent flexibility with phishing defense.
read it It provides a concrete security architecture and checklist for solving the OAuth redirect vulnerability in Model Context Protocol servers.
summary
MCP servers face a dilemma between locking out custom clients with strict redirect allowlists or exposing users to phishing via open registration. Stream Vessel solves this by accepting anonymous client registrations while deferring redirect URI validation until the user signs in, allowing individuals to safely trust specific exact URIs. The design uses typed confirmations, email alerts, immediate revocation on removal, and error-handling restrictions to block open redirectors and fake-client attacks.
key points
- Open client registration combined with unvalidated redirect URIs creates a critical OAuth phishing vulnerability exploited in real-world attacks.
- Stream Vessel defers redirect validation from client registration to the user sign-in phase, enabling per-user trust lists capped at ten exact HTTPS URIs.
- Security mitigations include requiring users to manually type the host to add it, sending email notifications, and revoking tokens immediately if a URI is removed.
who should read it
Backend engineers and security architects building or configuring OAuth-enabled Model Context Protocol (MCP) servers.
discussion mixed
consensus
Commenters note that the issue highlights recurring architectural pain points in the OAuth 2.0 specification regarding redirect flexibility versus security.
Yes OAuth ....
"At the end, I reached the conclusion that OAuth 2.0 is a bad protocol. WS-* bad. It is bad enough that I no longer want to be associated with it. It is the biggest professional disappointment of my career.”
- Eran Hammer, lead author and editor of OAuth 2.0 spec
"All the hard fought compromises on the mailing list, in meetings, in special design committees, and in back channels resulted in a specification that fails to deliver its two main goals – security and interoperability."
- Eran Hammer, lead author and editor of OAuth 2.0 spec
It brings up Eran Hammer's historical criticisms of OAuth 2.0 to contextualize why authorization flows remain a persistent source of friction and security vulnerabilities.
Generated by an LLM from the article and thread. Check the sources before relying on it.