Redbot Labs / Attack Intelligence

MCP Token Audience Confusion

Record ID
RB-090
Severity
High
Category
MCP
Confidence Score
95
Published
Updated

Summary

MCP Token Audience Confusion occurs when an MCP server accepts an access token without verifying that it was issued for that server. A related failure occurs when the server forwards the incoming token to a downstream API without proper validation and delegation. These weaknesses can allow credentials intended for one service to cross into another service’s security boundary.

Executive Summary

An access token can be validly issued and still be inappropriate for the service receiving it. The token’s intended recipient, or audience, is a separate consideration from its issuer, expiration and permissions.

MCP security guidance prohibits accepting tokens that were not explicitly issued for the MCP server. It also identifies unvalidated token passthrough as a dangerous integration pattern.

This narrative concerns enforcement when credentials are presented to a service. RB-089, MCP OAuth Confused Deputy, concerns obtaining access without the required client-specific consent.

Validation should establish which resource each token authorizes, how the receiving service verifies that relationship and whether downstream requests use an approved delegation mechanism.

Attack Overview

Primary objective

Use a credential outside its intended service boundary to obtain access or cause unauthorized downstream operations.

Required condition

A receiving component fails to enforce the token’s intended use. The attacker may possess a legitimately obtained token for another resource or a compromised credential.

Related passthrough failure

An MCP server accepts and forwards a client-supplied token without establishing that it is appropriate for the server and the downstream operation.

Evidence boundary

A valid signature does not establish the correct audience. Conversely, an audience match does not establish that the requested action is authorized.

This weakness does not require prompt injection or model participation.

Attack Flow

  1. Credential acquisition: The attacker obtains a token with a defined intended use.
  2. Presentation elsewhere: The token is submitted to an MCP endpoint outside that intended use.
  3. Validation failure: The endpoint accepts it without enforcing the necessary recipient constraints.
  4. Operation: The endpoint permits an action or forwards the credential.
  5. Potential downstream impact: Another service accepts the request within the authority available to the credential.
  6. Investigation: Defenders determine which boundary failed and what access actually occurred.

Token acceptance and successful access to protected information are separate findings.

Affected Systems

  • OAuth-protected MCP servers.
  • MCP gateways and proxy services.
  • API authorization middleware.
  • Token-validation and introspection components.
  • Downstream services reached through MCP integrations.
  • Shared identity-provider configurations.
  • Multi-service and multi-tenant application environments.

Business Impact

Incorrect token validation can weaken the separation between AI integrations and the services they access.

Potential consequences include:

  • Unauthorized use of exposed MCP operations.
  • Access to information outside the credential’s intended service.
  • Improper downstream actions where additional controls also fail.
  • Inaccurate attribution across proxy and API audit records.
  • Investigation and credential replacement across affected integrations.
  • Broader exposure when multiple services share permissive validation settings.

Impact depends on the accepting service, the credential’s permissions and subsequent authorization checks. Acceptance of an inappropriate token does not automatically establish access to every connected system.

Testing Methodology

Document intended recipients

Identify the resource identifiers and token audiences used by each service. Establish which issuer and validation mechanism each endpoint is configured to trust.

Create controlled test credentials

Use authorized test identities and tokens issued for distinct resources. Preserve the difference between a token that is valid for the target and one that is valid only elsewhere.

Test rejection behavior

Confirm that the target rejects inappropriate audiences, expired credentials and untrusted issuers. Separate these checks so each failure can be attributed to the correct control.

Inspect the complete request path

Determine whether validation occurs at a gateway, within the MCP server or both. Check whether alternate routes can bypass the component responsible for enforcement.

Review downstream credentials

Observe which credential the integration uses for external API calls. Confirm that downstream access follows the approved identity and delegation design.

Test operation-level authorization

After establishing token validity, verify that the requested operation is permitted for the initiating identity. A valid token should not grant unrestricted use of every exposed tool.

Record demonstrated impact

Use synthetic data and limited test permissions. Document whether the result was token acceptance, tool invocation or actual access to a protected resource.

Do not collect or reuse production tokens outside the assessment’s authorization.

Detection Guidance

Monitor validation failures

Track rejected audiences, issuers, expired credentials and other authentication or authorization failures. Repeated attempts across endpoints can indicate probing or misconfiguration.

Correlate service activity

Associate incoming MCP requests with the identity and operation used downstream. Investigate inconsistencies between the two.

Review configuration changes

Monitor changes to accepted issuers, audience rules, validation middleware and bypass routes.

Preserve useful identifiers

Record request identifiers, resource names and validation outcomes without storing raw bearer tokens.

Investigate acceptance anomalies

Identify cases where an endpoint accepts a credential that its documented trust configuration should reject.

Individual failures are not proof of compromise. Legitimate configuration changes and client errors can produce similar signals.

Mitigation Guidance

Enforce recipient restrictions

Validate that access tokens are intended for the receiving resource. Use the issuer’s supported validation mechanism, including appropriate handling of opaque tokens.

Validate beyond token appearance

Do not treat decoding a token as verification. Apply the required issuer, integrity, validity and authorization checks for the token type.

Separate service access

Use resource-specific credentials and an approved delegation flow when connecting to another service. Avoid forwarding incoming bearer credentials as a substitute for that design.

Use resource indicators correctly

Where applicable, request tokens for the intended protected resource. RFC 8707 provides a mechanism for expressing that resource to the authorization server.

Limit permissions

Grant only the operations required by the integration. Review resource and tenant boundaries together when defining access.

Centralize enforcement carefully

Use maintained validation components and consistent policy. Ensure that direct backend access cannot bypass a gateway responsible for security checks.

Maintain regression coverage

Retest valid and invalid token cases after identity-provider, middleware or routing changes.

Support containment

Maintain procedures to revoke affected credentials, correct validation policy and investigate activity accepted during the exposure window.

MITRE Mapping

MITRE ATT&CK T1550.001: Use Alternate Authentication Material: Application Access Token Applicable when an attacker uses a stolen or otherwise compromised application access token to access protected services. This mapping is conditional. A test using the assessor’s own legitimately issued token to demonstrate audience-validation failure does not establish token theft.

OWASP Mapping

OWASP API2:2023: Broken Authentication Relevant to failures in token validation and API credential handling. This is an API-security mapping rather than an LLM-specific category. The weakness exists in the integration’s identity and access controls, independently of model behavior.

Technical References

Model Context Protocol: Security Best Practices
Explains token passthrough risks and the requirement to reject tokens not issued for the MCP server.
https://modelcontextprotocol.io/docs/2025-11-25/tutorials/security/security_best_practices

Model Context Protocol: Authorization Specification
Defines authorization requirements for the referenced MCP protocol version.
https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization

IETF RFC 8707: Resource Indicators for OAuth 2.0
Describes resource identification and audience-restricted access tokens.
https://www.rfc-editor.org/rfc/rfc8707.html

MITRE ATT&CK T1550.001: Application Access Token
https://attack.mitre.org/techniques/T1550/001/

OWASP API2:2023: Broken Authentication
https://owasp.org/API-Security/editions/2023/en/0xa2-broken-authentication/

Related Attack Intelligence