
Salt Labs has identified security issues with online MCP servers belonging to some of the largest online services in the world - a leading social network, a leading online payment service, and a leading cloud collaboration platform. Together, they serve hundreds of millions of users. The identifying details of the actual companies were removed from this post at their request.
These issues could allow an attacker to gain complete access to MCP servers belonging to these services by simply sending a single malicious link to the victim. Once the victim clicks the link, the attacker can perform any action on behalf of the victim, with no authentication required. Depending on the service, that could mean access to private business data, control over advertising accounts, and the ability to operate payment accounts, all through the same AI integrations that users have connected to their accounts.
Based on these findings, we believe that there probably are many more similar issues in MCP servers for many other major online services. Since the underlying issue is always the same, we have decided to share the information in this blog post. Whether you are an MCP implementer or using MCP servers, this blog post should provide the knowledge and guidelines required to avoid this issue.
Enjoy.
Intro
The AI evolution that swept into everyone’s lives in a huge wave brought many new technologies and services. One of the major technologies is MCP - Model Context Protocol.
By now, almost anyone invested even slightly in AI technology should know what an MCP is: an open protocol that lets AI clients connect to external services, where the MCP server exposes a service's data and actions as tools the AI can call on the user's behalf.
The main concept MCPs introduce is very cool: find a service that has an MCP server, connect to it with your favorite AI client in one click, and have all the functionality provided by that service natively available to your AI client. As simple as that.
This can work well when you spin up your own local MCP server; however, when you would like your MCP server to run in production and be used by external users, many security concerns arise - the most important one is perhaps Authentication - since you might not want everyone to connect to your MCP server; some kind of authentication should be implemented, and it needs to support the “one-click connection” MCP philosophy.
We reported each issue to the company through coordinated disclosure, and identifying details have been removed at their request.
Enter OAuth
The de facto standard method for web service authentication is OAuth, a robust protocol that addresses all aspects of authentication and security.
This is no exception for MCPs - according to the official MCP documentation:
“The Model Context Protocol provides authorization capabilities at the transport level, enabling MCP clients to make requests to restricted MCP servers on behalf of resource owners …. Authorization servers MUST implement OAuth 2.1 with appropriate security measures for both confidential and public clients.”
In previous blog posts from Salt Labs, we have already discussed OAuth security in length:
(Booking.com, Expo, Oh-Auth, ChatGPT extensions, Hotjar).
Readers are more than welcome to read our previous OAuth research, but in a nutshell, all of the issues we described in the past do not lie in the OAuth protocol itself; they lie in its implementation. “It is very easy to implement OAuth, but very hard to implement it correctly”.
But what about MCP servers and OAuth usage? If most MCPs use OAuth to authenticate, there might be additional, or even new, common implementation flows that could compromise these MCP servers.
So we set our research target: “Can MCP OAuth usage introduce or surface new security risks?” and “Can we find these risks on the internet?”
To our surprise, the answer was much clearer than we originally expected…
MCP ❤️ OAuth
To understand the issues we found, you first need to understand exactly how MCPs use OAuth and why.
The MCP philosophy dictates that adding an MCP server to any AI client should be as simple as pasting the MCP server details. While this provides a very good user experience, this single design choice also has great implications for how authentication, and OAuth authentication specifically, takes place over MCP servers.
The official MCP documentation (26/3/2025) states that:
“MCP clients and servers SHOULD support the OAuth 2.0 Dynamic Client Registration Protocol to allow MCP clients to obtain OAuth client IDs without user interaction. This provides a standardized way for clients to automatically register with new servers, which is crucial for MCP because:
- Clients cannot know all possible servers in advance
- Manual registration would create friction for users
- It enables seamless connection to new servers
- Servers can implement their own registration policies"
Note: a newer version of the MCP authorization specification (2025-11-25) recommends Client ID Metadata Documents instead of DCR, and keeps DCR only as an optional option for backward compatibility. This changes how clients identify themselves, but it does not resolve the underlying security issue described in this post: a client that the server has never vetted can still start an authorization flow, so strict redirect URI validation, per-client consent, and CSRF protection on the consent step remain the server's responsibility.
This section describes an extension to the OAuth 2.0 protocol called Dynamic Client Registration (DCR), which is important to understand before we can discuss the actual security issues.
OAuth and Dynamic Client Registration
The Salt Labs previous blog post series describes the OAuth flow in great detail, and readers who want a better understanding of OAuth are welcome to read it.
For the sake of explaining the issues we found, it is enough to mention that in OAuth, every client application is identified by a unique client_id, which the authorization server ties to a set of values - most important of which is the redirect_uri - the address where the authorization code is sent after the user approves access.

Traditionally, a developer registers their app manually with the provider and obtains a unique client_id. In the diagram above, the developer of Randomsite.com registered his website with Facebook in order to allow ‘Login with Facebook’ functionality on his website.
This is a very good process when a developer has a single website; however, the MCP case is very different.

As you can see, the main differences when it comes to MCP authentication are that the client could really be anything - it could be your favorite coding agent, it could be a custom AI agent, or anything else really. The MCP can't foresee which clients will connect; this is by design and preserves the dynamic nature of MCP connections.
The direct OAuth implications are clear: while in the “normal” OAuth flow a developer could register his app and obtain a corresponding client_id, in the MCP flow, since client_ids MUST remain unique, they must be generated dynamically.
This concept of dynamic client registration is not new - and in fact, OAuth already has an extension that allows us to achieve exactly that.
The extension is called OAuth 2.0 Dynamic Client Registration (DCR), defined in RFC 7591. The idea is simple: instead of a developer filling in a form on the provider’s website, the client registers itself through an API call.
The authorization server publishes a registration endpoint in its metadata. The MCP client sends its details to that endpoint:

The server generates a new client_id and returns it:

From this point on, the flow is the regular OAuth flow. The client sends the user to the authorization server with its new client_id, the user approves access, and the authorization code is sent to the registered redirect_uri.
While DCR does provide exactly the required functionality for implementing the MCP authentication as designed, it does hold a very important security caveat:
In DCR, the client decides what to send. The name, the redirect URI, and the rest of the metadata all come from the client, and it’s up to the authorization server to decide how much to trust them. The protocol itself doesn’t check who is registering.
The authorization server is responsible for implementing the correct trust; neither the MCP nor the DCR standards define guidelines for how to do this correctly. Exactly the conditions we love as security researchers - where there is ambiguity - strong chances that implementers will get it wrong.
And, no surprise, this is exactly how we found security issues in some of the most popular services on the internet.
Breaking into MCPs
The main idea behind our attack scenario is this:
With DCR enabled, anyone, including the attacker, can register his own OAuth client - and, more specifically he can register a new client_id and redirect_uri.
That is all the attacker needs. After registering, he holds a client that the authorization server considers legitimate, and whose authorization responses are delivered to a server he controls.
From there, the attack follows the same flow on every target:
- Find a target. The attacker looks for an MCP server whose authorization server exposes a registration endpoint that accepts anyone.
- Register a client. He registers a new client with his own
redirect_uriand receives a validclient_id. - Craft the link. He builds an authorization request using his
client_id, hisredirect_uri, and his own PKCE challenge, and sends the link to the victim, a user with an account on the target service. - The victim clicks. The authorization flow runs against the real service, and the victim authenticates there if he isn’t already logged in.
- Consent. Normally, the authorization server asks the victim to approve the new application.
- The code goes to the attacker. If the flow completes, the server redirects the victim’s browser to the registered
redirect_uri, which belongs to the attacker, carrying an authorization code. - Code becomes token. The attacker exchanges the code for an access token. PKCE doesn’t help here, because it protects against a third party intercepting the code, not against the party who started the flow. The attacker can now act as the victim through the MCP server.
However, a solid OAuth/DCR implementation will be able to identify this type of attack and block it - this can generally be done in 2 main points within the flow:
- Redirect URI verification. The server controls where authorization codes can be sent. It should limit which redirect URIs a dynamically registered client may register, such as loopback addresses for local apps or an approved set of domains. It should also accept only a
redirect_urithat exactly matches the one registered for thatclient_id. If the code can’t reach a server the attacker controls, a self-registered client is worth very little. - User consent. The server must show the user a consent screen that identifies the requesting application and what it asks for, and the user’s approval must be an explicit decision, tied to that specific client and protected against forgery. A victim seeing “Unknown app wants access to your account” may hesitate, and the attack stops being one click.
Both points are simple to describe and very easy to get wrong. An attacker can chain this with more specific vulnerabilities to build a full 1-click chain that enables MCP account takeovers.
Searching the internet for these flaws led us to identify three real-world cases, all involving major online services and posing significant risks to hundreds of millions of user accounts.
Case 1: acme.com, Redirect URI Validation Bypass
acme.com is a widely used cloud collaboration platform where business teams store, review, and share files with colleagues and outside partners. Much of that content is confidential, and some of it is shared with clients before it is made public.
The platform's MCP server lets users connect AI clients such as Claude, ChatGPT, or Cursor to their account. Through it, an agent can read, upload, and share content in the user's account, using the same operations the platform's API already exposes.
That makes a stolen token valuable. Depending on the victim's permissions and the tools the MCP exposes, an attacker acting through it could read confidential files and client feedback, create share links that expose that content outside the organization, or upload files to the victim's projects.
The OAuth service behind this MCP server lets anyone register a client, so the first steps of the common flow worked as described: we registered our own client and received a valid client_id.
What made this case different was how the service checked redirect URIs. Registration was open, but the service did try to limit where a registered client could receive authorization codes. A redirect URI on a plain attacker-controlled domain was rejected:
A URI with a path ending in .acme.com was accepted:
https://attacker.com/.acme.com/
This suggests the check looked for the trusted name inside the URL instead of verifying the host the URL points to. A path is just a path, so the browser still goes to attacker.com. Our registration request looked like this:

The second difference was consent. We built an authorization request with our client_id and redirect URI and sent it through the legitimate AcmeCorp identity service. For a victim who was already logged in, the flow completed with no additional approval step, so there was no consent screen for the victim to question.
When the victim clicked the link, the browser was redirected to our server with the victim's authorization code:
https://attacker.com/.acme.com/?code=VICTIM_CODE
We exchanged the code at the MCP OAuth token endpoint using our client_id and received an access token. To confirm the impact, we used the token against the acme.com API, and the request was authenticated as the victim:

Case 2: A Social Media Platform, Consent Bypass via CSRF
The second service is one of the world's largest social media platforms, used by a very large share of internet users. Alongside the consumer app, it runs a business platform where companies run and measure advertising campaigns.
Its MCP server is aimed at those advertisers. It lets businesses connect their own AI agents to the advertising platform to manage campaigns, pull performance reports, and work with creative assets.
A token for this MCP is a token for a company's advertising account. Depending on the victim's permissions and the tools the MCP exposes, an attacker could read account and campaign data, change or delete ads and media, upload new creative, and potentially affect campaign budgets.
As in the previous case, registration was open. The MCP OAuth service accepted registration requests from arbitrary clients, with no approved developer application or other verification. We registered a client with a callback on our own server and received a valid client_id. Unlike the first case, the redirect URI needed no tricks: the callback was registered legitimately for our client, so the server was willing to send authorization codes to it.

This time the obstacle was the consent screen. For a newly registered client, the authorization endpoint is supposed to prompt the user to approve access before issuing a code, and a victim shown an unknown application requesting access to a business account might well refuse.
That step could be bypassed. A crafted cross-site POST request submitted the authorization step directly, without the user ever approving the consent page. The server treated the authorization POST as sufficient to proceed, even when it came from an attacker-controlled website rather than the real consent page. In other words, consent was not enforced against cross-site request forgery (CSRF).
That changes the shape of the malicious link. Instead of sending the victim to the authorization endpoint, the attacker sends a link to a page he controls. When a victim who is already logged in to the platform opens it, the page automatically submits a cross-site form to the real authorization endpoint with the attacker's client_id and redirect URI. The browser attaches the victim's session to the request, so the server processes it as the victim's own approval.
The server then redirected the victim's browser to our callback with the authorization code:
https://attacker.com/callback?code=VICTIM_CODE
We redeemed the code at the token endpoint with our client_id and the PKCE verifier we generated when building the request, and received an access token in the victim's account context:

To verify the impact, we used the token to call an MCP tool that retrieves advertiser account information. The call succeeded in the victim's context:

With one visit from an already authenticated victim, an attacker could obtain access to the victim's advertising account and perform any action on his behalf.
Case 3: A Payments Platform, Consent Reused Across Clients
The third service is one of the world's largest financial services platforms, used by consumers and merchants worldwide to pay others or get paid.
Its MCP server is aimed at merchants. It lets them use an AI client to complete organizational tasks in common language, such as invoicing customers and pulling transaction data for reporting.
A token for this MCP acts on a payment account. Depending on the victim's permissions and the tools the MCP exposes, an attacker could read financial information and carry out supported operations in the victim's name, with direct monetary consequences.
As in the other cases, registration was open. The OAuth service accepted a new client with an arbitrary redirect URI, so we could point authorization responses at a server we control.

The service returned a valid client_id, but registration alone did not get us past consent, and this service did enforce it. When we tested our new client against an account that had never approved the integration, the flow showed a real consent page asking the user to authorize access. We tried the usual workarounds, including CSRF and open redirects, and none worked. This was not a missing consent page or a conventional bug in the consent endpoint.
The weakness was in how consent was remembered. The MCP authorization flow ran on an internal OAuth service that the platform's own, official MCP client also uses. Our client and the official client were two different OAuth clients, but that service treated a user's earlier approval of the official integration as approval for ours. The question "did this user approve this application?" was being answered for the wrong application.
That defined our target: users who had already connected the official MCP integration, who are the people most likely to use it. For them, the flow behaved differently. When such a user opened an authorization link for our client, the service recognized the earlier approval and continued without any consent prompt, despite the different client identity and the callback on our server.
The server then redirected the browser to our callback with an authorization code for the victim's account:
https://attacker.com/callback?code=VICTIM_CODE
We exchanged the code at the MCP token endpoint and received an access token, which gave us access to the platform's MCP functionality in the victim's context.
For a user who had already connected the official MCP client, one click was enough to give an attacker access to financial information and supported account operations, with no new consent prompt.
Conclusions
MCP did not invent a new OAuth vulnerability, but it changed who gets to take part in the OAuth flow. Because an MCP client can connect to a server it has never met, open client registration became the standard way to make "paste a URL and connect" work. In all three cases, that open door was the first step: it let us create a client with a redirect URI of our choosing and place it inside the real service's OAuth flow.
What turned that into a one-click account takeover was a second flaw, and it was different every time: a redirect URI check that could be tricked, a consent step that could be submitted cross-site, and consent that was remembered for the wrong application. The attack flow stayed the same, and only the weak link changed. A server that is careful in one place can still be exposed, because the attacker only needs to find the one boundary that was missed.
The lesson is the one in this post's title: a client that registered successfully is not a trusted client. Registration only creates an identity. The server must decide where the authorization code can be sent, what the user approved, and what the token can reach.
How to Protect Your MCP Server
The current MCP specification already recommends a different approach for clients and servers with no prior relationship: Client ID Metadata Documents. Instead of registering, the client uses an HTTPS URL that it controls as its client_id, and the server fetches a metadata document from that URL to learn the client's name and redirect URIs. This removes the open registration endpoint and gives each application a stable identity tied to a domain it controls. The consent screen can show that domain, and the server can allow-list trusted domains or give unknown ones fewer privileges.
It would not have stopped the attacks described here on its own. An attacker can host a metadata document on a domain of his own and use it as his client_id, and a server that accepts any HTTPS client_id has the same open door as one with open registration. The three weak links we found sit behind the registration step and do not depend on how clients identify themselves. The specification also notes new risks: the server fetches URLs supplied by unknown clients, and local clients using localhost redirects can still be impersonated. Client ID Metadata Documents make good trust decisions possible, but they don't make those decisions for you.
If you run an MCP server with OAuth, these are the checks we would start with:
- Decide whether you need open registration. If you support a known set of clients, pre-register them and turn dynamic registration off. This is the only option that stops an attacker from creating a client at all. If you need to accept unknown clients, prefer Client ID Metadata Documents over DCR, and pair them with a trust policy: allow-list trusted domains, give unknown ones minimal scopes, and show the client's domain on the consent screen. Whichever you choose, treat every self-registered client as untrusted. Rate-limit registrations, expire unused clients, and log new ones.
- Validate redirect URIs strictly. Compare the complete URI exactly against the registered value, parse it with a real URL parser instead of matching strings, and allow only HTTPS or loopback addresses. Check at registration and again on every authorization request. The MCP specification requires exact matching, and a URI should never be accepted because it contains a trusted name.
- Make consent specific to each client. Show a consent screen for every new client that names the application and the host of its redirect URI, and store the approval against that specific client_id, redirect URI, and set of scopes. Never reuse an approval across clients, even when they share OAuth infrastructure, and never auto-approve dynamically registered clients.
- Protect the consent step like any state-changing request. Use CSRF tokens, validate the state parameter, set SameSite on session cookies, and block framing of the consent page. The authorization request must only be accepted from your own consent page.
- Limit what a token can do. Grant the least privilege, issue short-lived tokens, require PKCE, and bind tokens to your MCP server with the resource parameter and validate the audience.
- Test your flow as an attacker would. Register a client with an attacker-controlled redirect URI, try variants such as extra paths, subdomains, and embedded credentials, submit the authorization request from another origin, and approve the official client and then try a second client with the same account. If any of these completes without the user explicitly approving the new client, the flow is exposed.
If you connect AI agents to your own accounts, review the connected applications and tokens in your account settings from time to time, and revoke the ones you do not recognize. Be careful with any link that starts an authorization flow for an application you do not know, especially for services that hold financial or business data.
MCP makes it easy to connect AI to almost any service. Making that connection safe remains the job of the authorization server.
To see how Salt gives security teams complete visibility and control across their agentic environment, visit salt.security and/or request a demo today.
