Ingenious AI

Ingenious AI · MCP security · Free self-check

Does your token endpoint actually check the client secret?

Pomerium's MCP token endpoint skipped client-secret verification for client_secret_basic clients: anyone holding an intercepted authorization code or refresh token could redeem it with any secret and receive the victim's access tokens (CVE-2026-135300, Pomerium 0.30.0 to before 0.34.0, fixed in 0.34.0; vendor CVSS 4.0 score 9.1, CWE-287). This page runs the same test against your own endpoint: one grant, one deliberately wrong secret. Accepted means the secret is not being verified.

What this does — and does not do

Does: (1) sends, from your browser, a single token grant to the token endpoint URL you type, using a code or refresh token you own, your client_id, and a fixed, deliberately wrong client secret — then reports whether the endpoint accepted or rejected it. The code/refresh token and the wrong secret are sent only to the endpoint URL you typed. They are never rendered on this page, never logged, never stored, and never sent anywhere else; the grant field is cleared the moment the probe starts. (2) Checks client registration / discovery metadata you paste for an omitted token_endpoint_auth_method.

Does not: probe anyone else's endpoint, test any secret other than the fixed wrong one, or keep any part of your grant. Use only endpoints and tokens you own or are authorized to test — a successful probe consumes the code or rotates the refresh token, so use a fresh, disposable grant of your own.

Option A — Probe your own token endpoint with a wrong secret

Option B — Check your client registration / metadata

The trap behind the Pomerium case: a client registered without a token_endpoint_auth_method silently defaults to client_secret_basic under OAuth dynamic client registration — so a registration that never mentions a method is still a secret-bearing registration, and after Pomerium's 0.34.0 fix such clients receive invalid_client until they actually send their secret. Paste your registration response or authorization-server metadata and check which side of that default you are on.

The facts behind this check

CVE-2026-135300 (published 23 November 2026, CWE-287 Improper Authentication): Pomerium from 0.30.0 before 0.34.0 improperly verifies client secrets at its MCP token endpoint (/.pomerium/mcp/token) for client_secret_basic clients — the presented secret was never compared with the registered one, so an attacker who had obtained an authorization code or refresh token could redeem it with any secret and receive the associated user's access tokens. Pomerium rates the flaw CVSS 4.0 9.1 and fixed it in 0.34.0, which verifies the secret (constant-time comparison, shared with client_secret_post) and returns invalid_client when it is wrong. The fix is a breaking change for clients registered without a token_endpoint_auth_method: they default to client_secret_basic and now fail until they send their secret or re-register.

A rejected probe is the healthy answer. An accepted one means the endpoint does not verify the secret at all — upgrade or fix the endpoint first, then treat any code or refresh token that ever crossed it as exposed and rotate the sessions behind them.

Frequently asked questions

What does the Wrong-Secret Token Prober send to my endpoint?

It sends a single token grant from your browser to the token endpoint URL you type. The grant uses a code or refresh token you own, your client_id, and a fixed, deliberately wrong client secret. It then reports whether the endpoint accepted or rejected it. A rejected probe is the healthy answer. An accepted one means the secret is not being verified at all.

Where do my code, refresh token, and the test secret go?

They are sent only to the endpoint URL you typed. They are never rendered on this page, never logged, never stored, and never sent anywhere else. The grant field is cleared the moment the probe starts. The page also offers a fully local second check, where you paste registration or discovery metadata and it looks for an omitted token_endpoint_auth_method.

What should I be careful about before running the probe?

Use only endpoints and tokens you own or are authorized to test. A successful probe consumes the authorization code or rotates the refresh token, so use a fresh, disposable grant of your own rather than one you still need. The probe tests only the fixed wrong secret; it does not test any real secret you hold.

What does the metadata check in Option B tell me?

It tells you which side of a default you are on. A client registered without a token_endpoint_auth_method silently defaults to client_secret_basic under OAuth dynamic client registration, so a registration that never mentions a method is still a secret-bearing registration. After the Pomerium fix in 0.34.0, such clients receive invalid_client until they actually send their secret or re-register.

What do I do if my endpoint accepts the wrong secret?

Upgrade or fix the endpoint first. Pomerium fixed CVE-2026-135300 in 0.34.0, which verifies the secret and returns invalid_client when it is wrong. Then treat any code or refresh token that ever crossed the flawed endpoint as exposed, and rotate the sessions behind them, because an attacker holding an intercepted code or refresh token could have redeemed it with any secret.

Sources

CVE-2026-135300 record (cve.org) · NVD — CVE-2026-135300

Running MCP servers in production? TrustGate watches your approved MCP servers for tool-description changes and toxic capability combinations. This one-off self-probe is a snapshot, not monitoring.

← Back to Ingenious AI home