OverReach: Your MCP Gateway Approved the Call. The Backend Leaked Anyway
Least privilege at the MCP gateway has a blind spot, and a new paper measures exactly how big it is. OverReach, a single-author study by Nguyen Tran Thanh Lam with code v0.8.0 and data public, looks at what happens after a gateway approves a perfectly legal tool call. https://arxiv.org/abs/2612.04826
Gateways check each call by tool name and arguments against a policy. But backends resolve related objects on their own. A permitted read returns the issue that blocks it. A permitted comment appends a cross-reference somewhere else. Behind ToolHive and agentgateway, blind policies let this over-reach through on four backends: two issue trackers, a wiki and a calendar. On Gitea, permitted reads delivered another user's private issue in 10 of 10 repetitions per gateway. The benign calls and the violating calls were identical on every attribute the policies could read. There was nothing to block.
The fixes are partial. A response filter missed locators buried in generated text, though agentgateway guardrails with the author's rules caught them. No response-side control stopped the writes. Using the user's own unscoped credential removed the cross-user leaks but not reach into the user's other objects. What worked was a GitLab project token, which stopped every measured cross-project disclosure and write, because its unit is the project, the same unit the backend joins on. One more twist: a filter that deleted foreign records made two LLM agents confidently deny dependencies that really existed.
The same batch carries a sibling result on the reward side. TMin (https://arxiv.org/abs/2612.04874, UNC group) shows verifier-only RL makes reward hacking worse, and only shaping the reward with an anti-cheating judge or task rubrics brings it back near baseline; better verifiers alone block only specific hacks. The shared lesson: a check at the boundary cannot see what happens behind it. For MCP, scope the credential to the unit the backend actually joins on, and treat call-level allow rules as necessary, not sufficient. Caveat: one author, a small set of backends.
← Back to all articles
Gateways check each call by tool name and arguments against a policy. But backends resolve related objects on their own. A permitted read returns the issue that blocks it. A permitted comment appends a cross-reference somewhere else. Behind ToolHive and agentgateway, blind policies let this over-reach through on four backends: two issue trackers, a wiki and a calendar. On Gitea, permitted reads delivered another user's private issue in 10 of 10 repetitions per gateway. The benign calls and the violating calls were identical on every attribute the policies could read. There was nothing to block.
The fixes are partial. A response filter missed locators buried in generated text, though agentgateway guardrails with the author's rules caught them. No response-side control stopped the writes. Using the user's own unscoped credential removed the cross-user leaks but not reach into the user's other objects. What worked was a GitLab project token, which stopped every measured cross-project disclosure and write, because its unit is the project, the same unit the backend joins on. One more twist: a filter that deleted foreign records made two LLM agents confidently deny dependencies that really existed.
The same batch carries a sibling result on the reward side. TMin (https://arxiv.org/abs/2612.04874, UNC group) shows verifier-only RL makes reward hacking worse, and only shaping the reward with an anti-cheating judge or task rubrics brings it back near baseline; better verifiers alone block only specific hacks. The shared lesson: a check at the boundary cannot see what happens behind it. For MCP, scope the credential to the unit the backend actually joins on, and treat call-level allow rules as necessary, not sufficient. Caveat: one author, a small set of backends.
Comments