一项于2026年5月开展的研究测试了119个启用OAuth的模型上下文协议(MCP)服务器,结果显示高达95.8%(即114个)的服务器接受匿名请求者提交的任意重定向URI值,这暴露出严重的“开放重定向”及钓鱼攻击隐患 1。此前,安全厂商Obsidian Security在2026年1月的报告中指出Square MCP服务器存在类似漏洞,单次点击即可导致商户资料、交易记录及银行详情泄露 1。此外,n8n软件在2026年4月披露的CVE-2026-42230漏洞显示,若未正确处理拒绝流程,用户可能直接被重定向至攻击者注册的地址;而Cloudflare workers-oauth-provider的CVE-2025-4143指出,仅在令牌交换阶段检查重定向URI是不够的,需在授权阶段进行检查 1。RFC 9700 §4.11.2描述了未认证注册将MCP授权服务器变为开放重定向器的场景 1。
针对上述安全风险,Stream Vessel与MCP服务器开发者提出了“基于用户的信任机制”,允许用户在登录时自行验证并信任特定应用地址,从而在不牺牲本地开发灵活性的前提下阻断恶意链接 1。该方案详细阐述了如何通过延迟检查、UI警告、邮件通知及即时撤销权限等七项具体规则来防御此类攻击 1。作为行业响应的最新进展,2026年7月28日的客户注册页面弃用了动态客户端注册(DCR),转而采用客户ID元数据文档(CIMD) 1。
A security study conducted in May 2026 revealed significant vulnerabilities in Model Context Protocol (MCP) servers that rely on OAuth for authentication, highlighting the urgent need for improved redirect URI handling 1. The research tested 119 MCP servers with enabled OAuth and found that 95.8% (114 servers) accepted arbitrary redirect_uri values from anonymous requesters, creating a pathway for open redirection attacks 1. This widespread issue was further evidenced by a January 2026 report from Obsidian Security, which detailed a similar vulnerability in the Square MCP server where a single click could expose merchant profiles, transaction records, and bank details 1.
In response to these risks, Stream Vessel and MCP server developers have proposed a user-centric trust mechanism designed to prevent phishing without sacrificing local development flexibility 1. The approach allows users to verify and trust specific application addresses during login, effectively blocking malicious links while maintaining ease of use 1. Technical analyses support this shift: Cloudflare’s workers-oauth-provider CVE-2025-4143 demonstrated that checking redirect URIs only during the token exchange stage is insufficient, as checks must occur during the authorization phase 1. Similarly, n8n’s CVE-2026-42230 from April 2026 showed that improper handling of rejection flows could result in users being redirected directly to attacker-registered addresses 1. RFC 9700 §4.11.2 also describes how unauthenticated registration can turn MCP authorization servers into open redirectors, underscoring the severity of the architectural flaw 1.
The proposed defense strategy includes seven specific rules, such as delayed checks, UI warnings, email notifications, and immediate permission revocation, to mitigate attack vectors 1. Aligning with these security concerns, client registration pages discontinued Dynamic Client Registration (DCR) in favor of Client ID Metadata Documents (CIMD) on July 28, 2026 1.
评论
还没有评论,欢迎留下第一条。