Missing Per-User Authorization on an MCP Tool (Broken Object Level Authorization)

Illustrative example. ACME Financial is an invented company and every detail below is made up. The layout is the one our reports use.

Finding 4.1
Missing Per-User Authorization on an MCP Tool (Broken Object Level Authorization)
C1
Severity
Critical
CVSS 3.1 score
8.1High
Risk rating
Likelihood:  High
Impact:  Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Classification
OWASP MCP Top 10
API1:2023 Broken Object Level Authorization
CWE-862 Missing Authorization
Description
A Model Context Protocol server exposes tools that an AI assistant can call on a customer's behalf. Each call carries a token that identifies the connected customer. When a tool reads a record named in the call without checking that the record belongs to that customer, any connected customer can read any record. This is broken object level authorization at the tool layer.
Affected assets
https://mcp.acme-financial.example/mcp (the get_statement tool)
The CVSS score rates the technical characteristics of the flaw. The severity rating also accounts for likelihood and business impact: any connected customer can read any account's statement, and account numbers are sequential.

Impact

Using this flaw, Strafe read a second customer’s statement through the MCP server with the first customer’s token. The statement held the account holder’s name, account and routing numbers, balance and recent transactions. The server authenticated the connection but never checked ownership of the account in the call, so the exposure extends to every customer and requires only a valid connection to the server.

Within an attack chain, this is collection at scale from a single connected account, performed through the bank’s own published interface and its normal access. Any AI assistant connected to the server, and anyone able to drive one, could retrieve the data. Strafe assesses the likelihood as high and the impact as critical.

Technical details

ACME Financial published an MCP server so customers’ AI assistants could fetch balances and statements. Strafe connected with the bearer token of one test customer, Customer B, and called get_statement for Customer B’s own account, 100482, which returned that account’s statement.

A get_statement call for account 100482 on Customer B's bearer token, returning Customer B's own statement
Figure 1 - Customer B requests their own statement Open full size

Strafe then changed the account number in the call to 100481, which belongs to a separate test customer, Customer A, keeping Customer B’s token. The server returned Customer A’s statement.

The same get_statement call with account 100481 on Customer B's token, returning Customer A's statement
Figure 2 - The same call returns Customer A's statement Open full size

Account numbers are issued in sequence, so the tool could be called across the full range. Testing was limited to the two test accounts.

Remediation

  1. In the get_statement tool, resolve the account against the accounts held by the authenticated customer, on the server. Return an authorization error for any other account.
  2. Apply the same ownership check in every tool that accepts an account, statement or transfer identifier, from a single shared function.
  3. Treat the bearer token as proof of connection only, never as proof of entitlement to a specific record.
  4. Log each refused call with the token’s customer and the account requested, and alert when one customer requests many accounts it does not hold.
remediation.md
## C1 - Missing per-user authorization on the get_statement MCP tool

**Where:** MCP server, tools/call get_statement (and every tool taking an
account identifier)
**Severity:** Critical (CVSS 8.1) · Likelihood High · Impact Critical

### What "fixed" means
- A get_statement call for an account the connected customer does not
  hold returns a JSON-RPC error, not a statement.
- The check runs in the tool, on the server, against the token's customer.

### What does not count
- Validating that accountId is an integer or well formed.
- Hiding or lengthening account numbers.

### Where else this pattern may exist
Every tool the server exposes that accepts a record identifier:
statements, transfers, documents, payees. Confirm each resolves the
identifier against the connected customer.

After the fix

StatusResolved

After the ownership check was added, Strafe repeated the call for account 100481 with Customer B’s token. The server returned a JSON-RPC authorization error instead of a statement, and Customer B’s own account still returned normally.

The same get_statement call for account 100481 on Customer B's token, now answered with a JSON-RPC Forbidden error after the ownership check was added
Figure 3 - The same call after the fix Open full size

References

  • OWASP API Security Top 10, API1:2023 Broken Object Level Authorization
  • CWE-862: Missing Authorization
  • Model Context Protocol, authorization guidance