目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1310

100%

CWE-918 服务端请求伪造(SSRF) 类漏洞列表 1659

CWE-918 服务端请求伪造(SSRF) 类弱点 1659 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-918 服务端请求伪造(SSRF)是一种允许攻击者诱导服务器发起恶意请求的漏洞。当服务器接收外部提供的 URL 并据此获取内容时,若未严格校验目标地址,攻击者可构造请求访问内网资源或探测内部服务,从而绕过防火墙限制。开发者应实施严格的白名单机制,限制协议类型,禁用重定向,并对所有输入进行深度验证,确保请求仅能访问预期的合法外部资源,从而有效防御此类攻击。

MITRE CWE 官方描述
CWE:CWE-918 Server-Side Request Forgery (SSRF) 英文:Web 服务器从上游组件接收 URL 或类似请求,并检索该 URL 的内容,但未充分确保该请求被发送至预期的目的地。
常见影响 (3)
ConfidentialityRead Application Data
IntegrityExecute Unauthorized Code or Commands
Access ControlBypass Protection Mechanism
By providing URLs to unexpected hosts or ports, attackers can make it appear that the server is sending the request, possibly bypassing access controls such as firewalls that prevent the attackers from accessing the URLs directly. The server can be used as a proxy to conduct port scanning of hosts i…
代码示例 (1)
This code intends to receive a URL from a user, access the URL, and return the results to the user.
$url = $_GET['url']; # User-controlled input # Fetch the content of the provided URL $response = file_get_contents($url); echo $response;
Bad · PHP
# Define allowed URLs (or domains) $allowed_urls = [ 'https://example.com/data.json', 'https://api.example.com/info', ]; # Get the user-provided URL $url = $_GET['url'] ?? ''; # Validate against allowed URLs if (!in_array($url, $allowed_urls)) { http_response_code(400); echo "Invalid or unauthorized URL."; exit; } # Fetch content safely $response = @file_get_contents($url); if ($response === false) { http_response_code(500); echo "Failed to fetch content."; exit; } echo htmlspecialchars($response); # Escape output for safety
Good · PHP
CVE ID标题CVSS风险等级Published
CVE-2017-15886 Synology Chat Link Preview 安全漏洞 — Chat 6.5 -2017-12-28
CVE-2017-0889 thoughtbot Paperclip ruby gem 安全漏洞 — paperclip ruby gem 7.5 -2017-11-13
CVE-2017-0905 Recurly Client Ruby Library 安全漏洞 — recurly ruby gem 9.8 -2017-11-13
CVE-2017-0906 Recurly Client Python Library 安全漏洞 — recurly python module 9.8 -2017-11-13
CVE-2017-0907 Recurly Client .NET Library 安全漏洞 — recurly-api-client .NET library 9.8 -2017-11-13
CVE-2017-12071 Synology Photo Station 安全漏洞 — Synology Photo Station 6.5 -2017-09-08
CVE-2017-11149 Synology Download Station 安全漏洞 — Synology Download Station 6.5 -2017-08-14
CVE-2017-11148 Synology Chat 安全漏洞 — Synology Chat 4.3 -2017-08-11
CVE-2017-6036 Belden Hirschmann GECKO Lite Managed Switch 信息泄露漏洞 — Belden Hirschmann GECKO 8.1 -2017-06-30

CWE-918(服务端请求伪造(SSRF)) 是常见的弱点类别,本平台收录该类弱点关联的 1659 条 CVE 漏洞。