Summary
Obot can be induced to send OAuth token exchange or refresh requests to attacker-selected destinations when processing remote MCP server metadata. A Power User who can provide malicious metadata may be able to reach cloud metadata services or private-network hosts and read error response bodies.
Affected context
The issue affects Obot deployments that process remote MCP server metadata containing OAuth token endpoint information. It becomes risky when a Power User can supply or influence that metadata and Obot makes token exchange or refresh requests without adequately restricting destinations or redirects.
Exploit preconditions
- Attack surface: Outbound OAuth token exchange or refresh requests initiated by Obot
- Required access: A Power User account with the ability to provide remote MCP server metadata
- Trigger point: Obot processes the metadata and sends a token request; redirected GET requests may also be involved
- Why exploitation is possible: The advertised endpoint can influence request destinations, potentially allowing access to internal hosts and exposure of error response bodies
Why this happens
The vulnerability is a server-side request forgery issue mapped to CWE-918. The application trusts a destination advertised in remote metadata when making server-side requests, without sufficiently constraining where those requests can go. Redirect handling can extend the set of reachable destinations.
Potential impact
- Obot could make requests to private-network services or cloud metadata endpoints
- Internal services could receive unexpected requests from the Obot deployment
- Error response bodies could expose information returned by reachable services
- Sensitive information accessible through internal endpoints could be at risk, depending on the environment
General mitigation guidance
Defensive patterns focus on limiting destinations and reducing trust in remotely supplied metadata:
- Use secure-by-default destination validation for outbound requests, including after redirects
- Restrict requests to explicitly approved hosts and schemes, and block private, loopback, link-local, and other sensitive address ranges
- Apply network-level egress controls so the application can reach only required services
- Treat remote metadata as untrusted and validate it before initiating requests
- Limit the permissions and sensitive data available to the service making outbound requests
- Avoid returning detailed internal error responses to users
How teams detect issues like this
Review code paths that derive outbound request URLs from remote MCP metadata, especially OAuth token and refresh handling and redirect behavior. Static analysis and code review can look for user-influenced URLs passed to HTTP clients without destination validation. Network and application monitoring can flag unexpected outbound connections to private, loopback, link-local, or cloud metadata addresses. Egress policies can also enforce approved destinations.

