.qgg-lead{font-size:17px;line-height:1.9;color:#333}
.qgg-meta{margin:14px 0 18px}
.qgg-badge{display:inline-block;padding:2px 10px;margin:0 6px 6px 0;border-radius:12px;
background:#eef3ff;color:#2f56d6;font-size:13px;font-weight:600}
.qgg-toc{background:#f7f9fc;border:1px solid #e6ecf5;border-radius:10px;padding:14px 20px;margin:22px 0 28px}
.qgg-toc-title{font-weight:700;color:#1f2d3d;margin-bottom:8px}
.qgg-toc ol{margin:0;padding-left:20px}
.qgg-toc li{margin:4px 0}
.qgg-toc a{color:#2f56d6;text-decoration:none}
.qgg-list li{margin:7px 0;line-height:1.85;color:#2c3e50}
.qgg-code{background:#0f172a;color:#e2e8f0;padding:16px 18px;border-radius:10px;overflow-x:auto;
font-size:13px;line-height:1.65;position:relative}
.qgg-code[data-lang]:not([data-lang=””])::before{content:attr(data-lang);position:absolute;
top:0;right:0;background:#1e293b;color:#94a3b8;font-size:11px;padding:2px 10px;border-radius:0 10px 0 8px}
.qgg-inline-code{background:#eef2f7;color:#c7254e;padding:2px 6px;border-radius:4px;font-size:90%}
.qgg-table-wrap{overflow-x:auto;margin:18px 0}
.qgg-table{width:100%;border-collapse:collapse;font-size:14px}
.qgg-table th{background:#f2f6ff;color:#1f2d3d;text-align:left;padding:10px 12px;border:1px solid #e3eaf5}
.qgg-table td{padding:9px 12px;border:1px solid #e8eef7}
.qgg-table tr:nth-child(even) td{background:#fafcff}
.qgg-callout{background:#eef7ff;border-left:4px solid #3b82f6;border-radius:0 8px 8px 0;
padding:14px 18px;margin:18px 0}
.qgg-callout-warn{background:#fff7ed;border-left-color:#f59e0b}
.qgg-callout-t{display:block;font-weight:700;color:#1e40af;margin-bottom:6px}
.qgg-quote{border-left:4px solid #cbd5e1;color:#475569;margin:16px 0;padding:8px 16px}
h2{margin-top:38px;padding-bottom:8px;border-bottom:2px solid #eef2f7;font-size:22px}
h3{margin-top:26px;font-size:18px}
figure{margin:20px 0;text-align:center}
figure img{border-radius:10px;max-width:100%;height:auto}
figcaption{font-size:12px;color:#94a3b8;margin-top:8px}
.qgg-footer{font-size:12px;color:#9aa5b1;margin-top:26px}
MCP server vulnerabilities(来源未提供摘要)

一、核心思路
- 【方法模板·非来源原文】入口发现:任何服务端取 URL 的参数(webhook/callback/avatar/import/预览/PDF 生成)
- 来源链接: https://portswigger.net/web-security/mcp
- 分类命中词: {‘SSRF’: [‘server-side request forgery’, ‘ssrf’], ‘Path Traversal / LFI’: [‘../’, ‘path traversal’], ‘SQL Injection’: [‘sql injection’], ‘REST API’: [‘api endpoint’]}
可直接落到 QGG 的「SSRF」测试清单:入口发现:任何服务端取 URL 的参数(webhook/callback/avatar/import/预览/PDF 生成);可生成部分自动化规则候选(有请求级证据)
二、成立条件
- 【来源原文片段】e itself. If that code is vulnerable, the tool may be too. Developers sometimes assume that tool arguments are safe because an AI assistant generates them. In fact, an atta
- 【来源原文片段】imit which tools a user or client can use. A common flaw is to apply this limit only when the server answers tools/list. The server leaves the tool out of the list, but s
- 【来源原文片段】ce URI. Enforce authorization when a tool is called or a resource is read, not only when they are listed. Map resource URIs to an allowlist of files or records. Don’t p
三、验证方法与步骤
- 【方法模板·非来源原文】入口发现:任何服务端取 URL 的参数(webhook/callback/avatar/import/预览/PDF 生成)
- 【方法模板·非来源原文】测试变量:协议(http/https/file/gopher/dict)、内网地址、DNS 重绑定、重定向跳转
- 【方法模板·非来源原文】成功证据:回连收到请求(自有 canary 域名/DNS log)或返回内网内容
- 【方法模板·非来源原文】误报过滤:仅报错不算;必须由自有可观测端点确认回连
POST /mcp HTTP/1.1
四、误报排除
- 登录页/统一错误页/WAF 阻断页/缓存页/通用 200 空壳
- 非确定性字段(traceId/timestamp/随机 token)必须先归一化
- 【未记录】来源未讨论误报或反向结果
五、影响与修复
影响:
分类:SSRF;来源严重性:未提供。实际影响需以本地/授权靶场复现结果为准,评分与来源自述不构成影响结论。
修复:
URL 白名单 + 解析后校验(防 DNS 重绑定)+ 禁内网段 + 禁止跟随重定向到内部地址。
六、原始来源
https://portswigger.net/web-security/mcp