AI News AI资讯 1h ago Updated 49m ago 更新于 49分钟前 48

I found an SSRF in Google's official AI tooling, and how Google reacted 我在谷歌官方AI工具中发现了一个SSRF漏洞,以及谷歌的应对方式

A server-side request forgery (SSRF) vulnerability was discovered in Google's MCP Toolbox, where HTTP redirects to internal/cloud metadata endpoints (e.g., 169.254.169.254) were followed without validation, exposing cloud credentials. The bug was reported with a reproduction and fix suggestion; Google merged a fix in 8 days via PR #3448, introducing an SSRFGuard that validates every redirect hop, blocks private/link-local ranges (including IPv6-encoded IPv4), resists DNS rebinding, and fails fas Google MCP Toolbox存在SSRF漏洞(CVE-2026-14540,CVSS 8.0),HTTP源未验证重定向目标地址,攻击者可利用重定向链窃取云环境凭证 漏洞在AI agent工具调用场景中尤为危险,因URL参数常由模型动态生成而非人工输入,属于默认运行条件 Google在8天内完成修复并公开致谢,修复方案包含SSRFGuard组件、重定向链验证、私有地址过滤及初始化时快速失败机制 作者建议开发者自查:调用方影响的值是否可能改变凭证请求的目标主机且无前置检查,若有则存在同类漏洞

68
Hot 热度
72
Quality 质量
65
Impact 影响力

Analysis 深度分析

TL;DR

  • A server-side request forgery (SSRF) vulnerability was discovered in Google's MCP Toolbox, where HTTP redirects to internal/cloud metadata endpoints (e.g., 169.254.169.254) were followed without validation, exposing cloud credentials.
  • The bug was reported with a reproduction and fix suggestion; Google merged a fix in 8 days via PR #3448, introducing an SSRFGuard that validates every redirect hop, blocks private/link-local ranges (including IPv6-encoded IPv4), resists DNS rebinding, and fails fast on misconfiguration.
  • The vulnerability was assigned CVE-2026-14540 with a CVSS score of 8.0 (high), and the reporter is officially credited in the CVE record.
  • The author is auditing other official MCP servers for the same pattern and plans to publish findings privately first, with public write-ups following after fixes are deployed.

Why It Matters

This vulnerability highlights a critical class of SSRF risks specific to AI agent tooling, where caller-influenced URLs are the norm rather than an edge case—making exploitation far more likely than in traditional software. It also demonstrates that responsible disclosure can yield rapid, well-implemented fixes from major tech companies, reinforcing the value of coordinated vulnerability reporting in the AI ecosystem.

Technical Details

  • Vulnerability class: Server-Side Request Forgery (SSRF) via unvalidated HTTP redirects in the MCP Toolbox's HTTP source, allowing redirection to internal cloud metadata endpoints (169.254.169.254) to exfiltrate environment credentials.
  • Root cause: The toolbox validated only the initial caller-supplied URL but did not validate redirect destinations or filter private/link-local IP ranges, including IPv6-mapped IPv4 addresses.
  • Fix (PR #3448): Introduced an SSRFGuard that validates the destination on every redirect hop, blocks private and link-local ranges (including IPv6 forms encoding IPv4), resists DNS rebinding attacks, enforces configurable network boundaries, and performs early base-URL validation at initialization time.
  • Severity: CVE-2026-14540, CVSS 8.0 (High).
  • Scope: The author is auditing other official MCP servers for the same redirect-validation gap; some are correctly pinned, others are not.

Industry Insight

  • AI agent frameworks that make outbound HTTP requests on behalf of users must treat caller-influenced destinations as a default threat model, not an edge case—SSRF mitigations should be enforced at every hop, not just the initial request.
  • The 8-day fix turnaround from report to merge sets a strong benchmark for responsible disclosure; organizations building tool-calling infrastructure should proactively adopt SSRF guards and network-boundary enforcement before vulnerabilities are discovered externally.
  • The existence of similar gaps across other MCP servers suggests a systemic pattern in agent tooling; the community would benefit from a shared security checklist or reference implementation for safe HTTP source handling in agent frameworks.

TL;DR

  • Google MCP Toolbox存在SSRF漏洞(CVE-2026-14540,CVSS 8.0),HTTP源未验证重定向目标地址,攻击者可利用重定向链窃取云环境凭证
  • 漏洞在AI agent工具调用场景中尤为危险,因URL参数常由模型动态生成而非人工输入,属于默认运行条件
  • Google在8天内完成修复并公开致谢,修复方案包含SSRFGuard组件、重定向链验证、私有地址过滤及初始化时快速失败机制
  • 作者建议开发者自查:调用方影响的值是否可能改变凭证请求的目标主机且无前置检查,若有则存在同类漏洞

为什么值得看

该漏洞揭示了AI agent工具调用中普遍存在的SSRF风险,攻击者可利用重定向窃取云凭证,对构建agent系统的开发者具有重要警示意义。Google的快速响应和公开致谢展示了负责任的安全披露实践,为行业树立了标杆。

技术解析

  • 漏洞机制:MCP Toolbox的HTTP源在发起请求时仅验证初始URL,未对重定向目标进行过滤,导致攻击者可通过控制重定向链将请求导向内部元数据服务(如169.254.169.254)
  • 修复方案:引入SSRFGuard组件,在每次重定向跳转时验证目标地址,拒绝私有和链路本地地址范围(包括IPv6映射的IPv4地址),支持可配置的网络边界,并在初始化时提前验证基础URL以快速失败
  • 漏洞利用条件:在云环境中,元数据服务通常位于169.254.169.254,攻击者无需在请求中携带凭证,只需诱导工具跟随重定向即可获取
  • 作者建议的自查问题:调用方影响的值是否可能改变凭证请求的目标主机,且无前置检查,若有则存在同类漏洞

行业启示

  • AI agent工具调用应默认假设输入不可信,需实施严格的输出验证和重定向控制,避免将模型动态生成的URL直接用于敏感操作
  • 云环境元数据服务应默认拒绝来自外部网络的请求,或限制仅允许特定内部服务访问,以减少SSRF利用面
  • 安全研究者应积极参与开源项目漏洞披露,厂商的快速响应能提升整体生态安全水平,建议建立标准化的漏洞报告与修复流程

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全 Agent Agent LLM 大模型 Open Source 开源