CWE-918 服务端请求伪造(SSRF)

Server-Side Request Forgery (SSRF)

结构: Simple

Abstraction: Base

状态: Incomplete

被利用可能性: unkown

基本描述

The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.

扩展描述

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 in internal networks, use other URLs such as that can access documents on the system (using file://), or use other protocols such as gopher:// or tftp://, which may provide greater control over the contents of requests.

相关缺陷

  • cwe_Nature: ChildOf cwe_CWE_ID: 441 cwe_View_ID: 1000 cwe_Ordinal: Primary

  • cwe_Nature: ChildOf cwe_CWE_ID: 610 cwe_View_ID: 1003 cwe_Ordinal: Primary

  • cwe_Nature: ChildOf cwe_CWE_ID: 441 cwe_View_ID: 699 cwe_Ordinal: Primary

适用平台

Language: {'cwe_Class': 'Language-Independent', 'cwe_Prevalence': 'Undetermined'}

Paradigm: {'cwe_Name': 'Web Based', 'cwe_Prevalence': 'Undetermined'}

Technology: {'cwe_Name': 'Web Server', 'cwe_Prevalence': 'Undetermined'}

常见的影响

范围 影响 注释
Confidentiality Read Application Data
Integrity Execute Unauthorized Code or Commands

分析过的案例

标识 说明 链接
CVE-2002-1484 Web server allows attackers to request a URL from another server, including other ports, which allows proxied scanning. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-1484
CVE-2004-2061 CGI script accepts and retrieves incoming URLs. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-2061
CVE-2010-1637 Web-based mail program allows internal network scanning using a modified POP3 port number. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-1637
CVE-2009-0037 URL-downloading library automatically follows redirects to file:// and scp:// URLs https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0037

Notes

引用