{"id":581,"date":"2026-11-24T09:08:06","date_gmt":"2026-11-24T01:08:06","guid":{"rendered":"https:\/\/www.qgg4588.cn\/index.php\/2026\/11\/24\/qgg-kb-20261124-001\/"},"modified":"2026-11-24T09:08:06","modified_gmt":"2026-11-24T01:08:06","slug":"qgg-kb-20261124-001","status":"publish","type":"post","link":"https:\/\/www.qgg4588.cn\/index.php\/2026\/11\/24\/qgg-kb-20261124-001\/","title":{"rendered":"SSRF\uff5cMCP server vulnerabilities"},"content":{"rendered":"<p>.qgg-lead{font-size:17px;line-height:1.9;color:#333}<br \/>\n.qgg-meta{margin:14px 0 18px}<br \/>\n.qgg-badge{display:inline-block;padding:2px 10px;margin:0 6px 6px 0;border-radius:12px;<br \/>\nbackground:#eef3ff;color:#2f56d6;font-size:13px;font-weight:600}<br \/>\n.qgg-toc{background:#f7f9fc;border:1px solid #e6ecf5;border-radius:10px;padding:14px 20px;margin:22px 0 28px}<br \/>\n.qgg-toc-title{font-weight:700;color:#1f2d3d;margin-bottom:8px}<br \/>\n.qgg-toc ol{margin:0;padding-left:20px}<br \/>\n.qgg-toc li{margin:4px 0}<br \/>\n.qgg-toc a{color:#2f56d6;text-decoration:none}<br \/>\n.qgg-list li{margin:7px 0;line-height:1.85;color:#2c3e50}<br \/>\n.qgg-code{background:#0f172a;color:#e2e8f0;padding:16px 18px;border-radius:10px;overflow-x:auto;<br \/>\nfont-size:13px;line-height:1.65;position:relative}<br \/>\n.qgg-code[data-lang]:not([data-lang=&#8221;&#8221;])::before{content:attr(data-lang);position:absolute;<br \/>\ntop:0;right:0;background:#1e293b;color:#94a3b8;font-size:11px;padding:2px 10px;border-radius:0 10px 0 8px}<br \/>\n.qgg-inline-code{background:#eef2f7;color:#c7254e;padding:2px 6px;border-radius:4px;font-size:90%}<br \/>\n.qgg-table-wrap{overflow-x:auto;margin:18px 0}<br \/>\n.qgg-table{width:100%;border-collapse:collapse;font-size:14px}<br \/>\n.qgg-table th{background:#f2f6ff;color:#1f2d3d;text-align:left;padding:10px 12px;border:1px solid #e3eaf5}<br \/>\n.qgg-table td{padding:9px 12px;border:1px solid #e8eef7}<br \/>\n.qgg-table tr:nth-child(even) td{background:#fafcff}<br \/>\n.qgg-callout{background:#eef7ff;border-left:4px solid #3b82f6;border-radius:0 8px 8px 0;<br \/>\npadding:14px 18px;margin:18px 0}<br \/>\n.qgg-callout-warn{background:#fff7ed;border-left-color:#f59e0b}<br \/>\n.qgg-callout-t{display:block;font-weight:700;color:#1e40af;margin-bottom:6px}<br \/>\n.qgg-quote{border-left:4px solid #cbd5e1;color:#475569;margin:16px 0;padding:8px 16px}<br \/>\nh2{margin-top:38px;padding-bottom:8px;border-bottom:2px solid #eef2f7;font-size:22px}<br \/>\nh3{margin-top:26px;font-size:18px}<br \/>\nfigure{margin:20px 0;text-align:center}<br \/>\nfigure img{border-radius:10px;max-width:100%;height:auto}<br \/>\nfigcaption{font-size:12px;color:#94a3b8;margin-top:8px}<br \/>\n.qgg-footer{font-size:12px;color:#9aa5b1;margin-top:26px}<\/p>\n<p>MCP server vulnerabilities\uff08\u6765\u6e90\u672a\u63d0\u4f9b\u6458\u8981\uff09<\/p>\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper' data-fancybox='post-images' href='https:\/\/www.qgg4588.cn\/wp-content\/uploads\/2026\/11\/qgg-20261124-img1.png'><img decoding=\"async\" src=\"https:\/\/www.qgg4588.cn\/wp-content\/uploads\/2026\/11\/qgg-20261124-img1.png\" alt=\"MCP server vulnerabilities\" \/><\/div><figcaption>\u539f\u6587\u914d\u56fe\uff08\u6765\u6e90\uff1ahttps:\/\/portswigger.net\/web-security\/mcp\uff09<\/figcaption><\/figure>\n<div class=\"qgg-meta\"><span class=\"qgg-badge\">SSRF<\/span> <span class=\"qgg-badge\">\u8bc4\u5206 70.0<\/span> <span class=\"qgg-badge\">\u72b6\u6001 analyzed<\/span> <span class=\"qgg-badge\">QGG-KB-20261124-001<\/span><\/div>\n<nav class=\"qgg-toc\">\n<div class=\"qgg-toc-title\">\u672c\u6587\u76ee\u5f55<\/div>\n<ol>\n<li><a href=\"#sec1\">\u6838\u5fc3\u601d\u8def<\/a><\/li>\n<li><a href=\"#sec2\">\u6210\u7acb\u6761\u4ef6<\/a><\/li>\n<li><a href=\"#sec3\">\u9a8c\u8bc1\u65b9\u6cd5\u4e0e\u6b65\u9aa4<\/a><\/li>\n<li><a href=\"#sec4\">\u8bef\u62a5\u6392\u9664<\/a><\/li>\n<li><a href=\"#sec5\">\u5f71\u54cd\u4e0e\u4fee\u590d<\/a><\/li>\n<li><a href=\"#sec6\">\u539f\u59cb\u6765\u6e90<\/a><\/li>\n<\/ol>\n<\/nav>\n<h2 id=\"sec1\">\u4e00\u3001\u6838\u5fc3\u601d\u8def<\/h2>\n<ul class=\"qgg-list\">\n<li>\u3010\u65b9\u6cd5\u6a21\u677f\u00b7\u975e\u6765\u6e90\u539f\u6587\u3011\u5165\u53e3\u53d1\u73b0\uff1a\u4efb\u4f55\u670d\u52a1\u7aef\u53d6 URL \u7684\u53c2\u6570\uff08webhook\/callback\/avatar\/import\/\u9884\u89c8\/PDF \u751f\u6210\uff09<\/li>\n<li>\u6765\u6e90\u94fe\u63a5: https:\/\/portswigger.net\/web-security\/mcp<\/li>\n<li>\u5206\u7c7b\u547d\u4e2d\u8bcd: {&#8216;SSRF&#8217;: [&#8216;server-side request forgery&#8217;, &#8216;ssrf&#8217;], &#8216;Path Traversal \/ LFI&#8217;: [&#8216;..\/&#8217;, &#8216;path traversal&#8217;], &#8216;SQL Injection&#8217;: [&#8216;sql injection&#8217;], &#8216;REST API&#8217;: [&#8216;api endpoint&#8217;]}<\/li>\n<\/ul>\n<div class=\"qgg-callout\"><span class=\"qgg-callout-t\">\u843d\u5230 QGG \u600e\u4e48\u7528<\/span><\/p>\n<p>\u53ef\u76f4\u63a5\u843d\u5230 QGG \u7684\u300cSSRF\u300d\u6d4b\u8bd5\u6e05\u5355\uff1a\u5165\u53e3\u53d1\u73b0\uff1a\u4efb\u4f55\u670d\u52a1\u7aef\u53d6 URL \u7684\u53c2\u6570\uff08webhook\/callback\/avatar\/import\/\u9884\u89c8\/PDF \u751f\u6210\uff09\uff1b\u53ef\u751f\u6210\u90e8\u5206\u81ea\u52a8\u5316\u89c4\u5219\u5019\u9009\uff08\u6709\u8bf7\u6c42\u7ea7\u8bc1\u636e\uff09<\/p>\n<\/div>\n<h2 id=\"sec2\">\u4e8c\u3001\u6210\u7acb\u6761\u4ef6<\/h2>\n<ul class=\"qgg-list\">\n<li>\u3010\u6765\u6e90\u539f\u6587\u7247\u6bb5\u3011e 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<\/li>\n<li>\u3010\u6765\u6e90\u539f\u6587\u7247\u6bb5\u3011imit 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<\/li>\n<li>\u3010\u6765\u6e90\u539f\u6587\u7247\u6bb5\u3011ce 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&#8217;t p<\/li>\n<\/ul>\n<h2 id=\"sec3\">\u4e09\u3001\u9a8c\u8bc1\u65b9\u6cd5\u4e0e\u6b65\u9aa4<\/h2>\n<ul class=\"qgg-list\">\n<li>\u3010\u65b9\u6cd5\u6a21\u677f\u00b7\u975e\u6765\u6e90\u539f\u6587\u3011\u5165\u53e3\u53d1\u73b0\uff1a\u4efb\u4f55\u670d\u52a1\u7aef\u53d6 URL \u7684\u53c2\u6570\uff08webhook\/callback\/avatar\/import\/\u9884\u89c8\/PDF \u751f\u6210\uff09<\/li>\n<li>\u3010\u65b9\u6cd5\u6a21\u677f\u00b7\u975e\u6765\u6e90\u539f\u6587\u3011\u6d4b\u8bd5\u53d8\u91cf\uff1a\u534f\u8bae\uff08http\/https\/file\/gopher\/dict\uff09\u3001\u5185\u7f51\u5730\u5740\u3001DNS \u91cd\u7ed1\u5b9a\u3001\u91cd\u5b9a\u5411\u8df3\u8f6c<\/li>\n<li>\u3010\u65b9\u6cd5\u6a21\u677f\u00b7\u975e\u6765\u6e90\u539f\u6587\u3011\u6210\u529f\u8bc1\u636e\uff1a\u56de\u8fde\u6536\u5230\u8bf7\u6c42\uff08\u81ea\u6709 canary \u57df\u540d\/DNS log\uff09\u6216\u8fd4\u56de\u5185\u7f51\u5185\u5bb9<\/li>\n<li>\u3010\u65b9\u6cd5\u6a21\u677f\u00b7\u975e\u6765\u6e90\u539f\u6587\u3011\u8bef\u62a5\u8fc7\u6ee4\uff1a\u4ec5\u62a5\u9519\u4e0d\u7b97\uff1b\u5fc5\u987b\u7531\u81ea\u6709\u53ef\u89c2\u6d4b\u7aef\u70b9\u786e\u8ba4\u56de\u8fde<\/li>\n<\/ul>\n<pre class=\"qgg-code\"><code>POST \/mcp HTTP\/1.1<\/code><\/pre>\n<h2 id=\"sec4\">\u56db\u3001\u8bef\u62a5\u6392\u9664<\/h2>\n<ul class=\"qgg-list\">\n<li>\u767b\u5f55\u9875\/\u7edf\u4e00\u9519\u8bef\u9875\/WAF \u963b\u65ad\u9875\/\u7f13\u5b58\u9875\/\u901a\u7528 200 \u7a7a\u58f3<\/li>\n<li>\u975e\u786e\u5b9a\u6027\u5b57\u6bb5\uff08traceId\/timestamp\/\u968f\u673a token\uff09\u5fc5\u987b\u5148\u5f52\u4e00\u5316<\/li>\n<\/ul>\n<div class=\"qgg-callout qgg-callout-warn\"><span class=\"qgg-callout-t\">\u53cd\u5411\u8bc1\u636e<\/span><\/p>\n<ul class=\"qgg-list\">\n<li>\u3010\u672a\u8bb0\u5f55\u3011\u6765\u6e90\u672a\u8ba8\u8bba\u8bef\u62a5\u6216\u53cd\u5411\u7ed3\u679c<\/li>\n<\/ul>\n<\/div>\n<h2 id=\"sec5\">\u4e94\u3001\u5f71\u54cd\u4e0e\u4fee\u590d<\/h2>\n<p><strong>\u5f71\u54cd\uff1a<\/strong><\/p>\n<p>\u5206\u7c7b\uff1aSSRF\uff1b\u6765\u6e90\u4e25\u91cd\u6027\uff1a\u672a\u63d0\u4f9b\u3002\u5b9e\u9645\u5f71\u54cd\u9700\u4ee5\u672c\u5730\/\u6388\u6743\u9776\u573a\u590d\u73b0\u7ed3\u679c\u4e3a\u51c6\uff0c\u8bc4\u5206\u4e0e\u6765\u6e90\u81ea\u8ff0\u4e0d\u6784\u6210\u5f71\u54cd\u7ed3\u8bba\u3002<\/p>\n<p><strong>\u4fee\u590d\uff1a<\/strong><\/p>\n<p>URL \u767d\u540d\u5355 + \u89e3\u6790\u540e\u6821\u9a8c\uff08\u9632 DNS \u91cd\u7ed1\u5b9a\uff09+ \u7981\u5185\u7f51\u6bb5 + \u7981\u6b62\u8ddf\u968f\u91cd\u5b9a\u5411\u5230\u5185\u90e8\u5730\u5740\u3002<\/p>\n<h2 id=\"sec6\">\u516d\u3001\u539f\u59cb\u6765\u6e90<\/h2>\n<p><a href=\"https:\/\/portswigger.net\/web-security\/mcp\" target=\"_blank\" rel=\"noopener\">https:\/\/portswigger.net\/web-security\/mcp<\/a><\/p>\n<hr \/>\n<p class=\"qgg-footer\">\u672c\u6587\u7531 QGG \u6e17\u900f\u5927\u5e08\u81ea\u52a8\u5b66\u4e60\u6574\u7406\uff1a\u5185\u5bb9\u53d6\u81ea\u516c\u5f00\u62a5\u544a\uff0c\u672a\u5728\u672a\u6388\u6743\u76ee\u6807\u4e0a\u505a\u4efb\u4f55\u9a8c\u8bc1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MCP server vulnerabilities\uff08\u6765\u6e90\u672a\u63d0\u4f9b\u6458\u8981\uff09<\/p>\n","protected":false},"author":0,"featured_media":580,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[10,53,9],"class_list":["post-581","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-","tag-qgg","tag-ssrf","tag-9"],"_links":{"self":[{"href":"https:\/\/www.qgg4588.cn\/index.php\/wp-json\/wp\/v2\/posts\/581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qgg4588.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qgg4588.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qgg4588.cn\/index.php\/wp-json\/wp\/v2\/comments?post=581"}],"version-history":[{"count":0,"href":"https:\/\/www.qgg4588.cn\/index.php\/wp-json\/wp\/v2\/posts\/581\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.qgg4588.cn\/index.php\/wp-json\/wp\/v2\/media\/580"}],"wp:attachment":[{"href":"https:\/\/www.qgg4588.cn\/index.php\/wp-json\/wp\/v2\/media?parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qgg4588.cn\/index.php\/wp-json\/wp\/v2\/categories?post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qgg4588.cn\/index.php\/wp-json\/wp\/v2\/tags?post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}