OverReach 论文揭示 MCP 工具调用可越权访问未授权对象
OverReach: Permitted MCP Tool Calls That Reach Beyond the Grant
做 MCP 网关或给 agent 配权限的工程师应该看看这篇。它用可复现的测量方法证明:光检查调用参数挡不住后端对象解析带来的越权,Gitea 上 10/10 次读到别人私有 issue。响应过滤和凭证收窄各挡住一部分,论文给了具体规则。
arXiv 论文 OverReach(编号 2612.04826)提出一种测量 MCP 工具调用越权范围的方法:即使网关按最小权限策略逐条检查工具调用的名称和参数,后端仍会解析关联对象——一次被允许的 issue 读取可能返回阻塞它的其他 issue,一次被允许的评论可能附带指向其他 issue 的交叉引用。
论文在 ToolHive 和 agentgateway 两个网关背后、四个后端(两个 issue 跟踪器、一个 wiki 和一个日历)上测试,发现盲测策略全部放行了越权调用。在 Gitea 上,读取操作在每网关 10 次重复测试中 10 次返回了其他用户的私有 issue,且良性调用与违规调用在策略读取的每个属性上完全一致。
缓解措施效果不一:agentgateway 的原生 guardrails 配合论文规则能捕获生成文本中的定位符,但两种响应侧控制都拦不住写入操作。GitLab 项目 token 阻止了所有测量的跨项目泄露和写入,只留下一个计数,但其粒度是项目级。作者还指出,删除外部记录的过滤器曾使两个 LLM agent 错误地否认已存在的依赖关系。
OverReach: Permitted MCP Tool Calls That Reach Beyond the Grant
AI agents reach issue trackers and other multi-user systems through Model Context Protocol (MCP) servers, and operators restrict them with gateways that check each tool call, by its name and arguments, against a least-privilege policy. The backend, however, resolves related objects: a permitted read of one issue can return the issue that blocks it, and a permitted comment can append a cross-reference to another issue. We call such a permitted call an over-reach. We present OverReach, a method for measuring what a permitted call returns or changes: policy authors do not see the test cases, benign and violating calls are compared at the policy decision point, and a database oracle decides the outcome. Behind ToolHive and agentgateway, blind policies permitted over-reach on four backends: two issue trackers, a wiki and a calendar. On Gitea, reads delivered another user's private issue in 10 of 10 repetitions per gateway, and the benign and the violating call were identical on every attribute the policies read. Our response filter missed locators in generated text, which agentgateway's native guardrails, with our rules, caught; neither response-side control stopped the writes. The user's own unscoped credential removed cross-user cases but not those reaching the user's other objects. A GitLab project token stopped every measured cross-project disclosure and write, leaving only a count, but its unit is the project. A filter that deleted foreign records made two LLM agents deny existing dependencies; behind a placeholder, this was not observed.
本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:MCP/工具、AI安全、Gitea、agentgateway,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.AI」(@Nguyen Tran Thanh Lam),经 AITOP 多维评分管线结构化提炼。