CyberSecurity SEE

One Malicious Link Can Grant Hackers Access to Your AI-Connected Accounts

One Malicious Link Can Grant Hackers Access to Your AI-Connected Accounts

Vulnerabilities Discovered in Model Context Protocol Servers Affecting Major Online Services

Recent research has unveiled critical flaws in the Model Context Protocol (MCP) servers of three major online services, which include a prominent social networking site, a widely used payment platform, and a renowned cloud collaboration provider. Collectively, these services cater to hundreds of millions of users, highlighting the significance of the vulnerabilities.

The vulnerabilities allow an attacker to exploit a crafted link to impersonate a victim without any further authentication. Such a capability poses serious risks to user accounts and sensitive information. The companies involved were informed of the issue through a coordinated disclosure process, although their identities remain confidential at their request.

The underlying issue stems from the fact that the client within these services can supply its own name and redirect URI, yet neither the MCP nor the Dynamic Client Registration (DCR) standard specifies the level of trust a server should place in this metadata. This flaw creates an avenue for malicious actors; an attacker can register a client_id with a redirect_uri on their own controlled infrastructure. By building an authorization link and sending it to an unsuspecting victim, an attacker can manipulate the flow of authentication.

Once this flow is complete, the victim’s authorization code is redirected to the attacker, who can exchange it for an access token. Notably, PKCE (Proof Key for Code Exchange), meant to protect against third-party interception, does not safeguard against scenarios where the flow creator is the one conducting the attack.

According to Salt Labs, two essential controls should have been in place to avert such attacks: stringent validation of redirect URIs and explicit user consent specific to the client. Sadly, it was identified that all three of the affected services failed to implement at least one of these critical controls.

In examining the specifics, the cloud collaboration platform displayed a troubling lack of redirect URI validation. It accepted redirect URIs that could potentially point to malicious domains, such as attacker.com/.acme.com/, indicating that the verification process merely checked for the presence of trusted domain names in the URL rather than rigorously validating the actual host.

Moreover, logged-in victims of these platforms did not encounter any consent screen, thus leaving the door open to a range of unauthorized actions. A stolen token could jeopardize confidential files, facilitate the creation of external share links, or allow uploads of unauthorized content.

Salt Labs researchers noted that the MCP is inherently designed for seamless, one-click connections between AI clients and external services. To facilitate this, it relies on OAuth with Dynamic Client Registration (RFC 7591), where the client registers itself through an API call.

The social media platform’s MCP server was particularly vulnerable, primarily targeting advertisers. During the consent process, it lacked adequate protection against cross-site request forgery (CSRF), effectively allowing an attacker to submit an authorization form using the unsuspecting victim’s active session without their knowledge. This could expose sensitive campaign data, creative assets, and potentially even budget details.

On the other hand, the payment platform did enforce user consent; however, a flaw in its internal OAuth service treated prior user approvals of the official MCP client as acceptance for any client, thereby circumventing the need for explicit consent from users who had previously connected the official integration. This oversight could lead to unauthorized access to sensitive financial information and have dire monetary implications.

The findings from Salt Labs corroborate earlier research, emphasizing that OAuth-related failures typically arise from flawed implementation rather than inherent issues with the protocol itself.

In a related incident involving Booking.com, researchers identified a similar vulnerability where three small gaps were chained together, leading to an account takeover. In the case of Expo, a flaw in the expo-auth-session library was designated CVE-2023-28131, resulting in exposed tokens for various services, including Codecademy.

The ongoing research into OAuth vulnerabilities revealed that several major services, such as Vidio, Bukalapak, and Grammarly, accepted access tokens without proper verification against their intended app IDs.

The MCP specification has since evolved, with a newer authorization version anticipated by November 25, 2025, advocating for the utilization of Client ID Metadata Documents instead of DCR. However, Salt Labs maintains that this change does not address the root of the problem. Server operators are still obliged to enforce stringent redirect validation, per-client consent, and CSRF protection.

The recommendation is clear: implementers of MCP should restrict dynamically registered redirect URIs to loopback addresses or a well-defined set of approved domains. Furthermore, a precise match of redirect_uri for each client_id should be enforced, while consent must be logged per client and should never be inherited from another client. It is crucial that user consent screens specify the requesting application and the scopes it seeks.

Users are advised to remain vigilant regarding unexpected authorization prompts and to regularly audit the AI integrations linked to their accounts. Given the findings, Salt Labs anticipates that similar flaws may be present in the MCP servers of numerous other significant services, underscoring an urgent need for heightened scrutiny and corrective measures in the realm of cybersecurity.

Source link

Exit mobile version