logo

CWE-918 - Server-Side Request Forgery (SSRF)

CWE-918

  • Abstraction:
  • Base
  • Structure:
  • Simple
  • Status:
  • Incomplete
Weakness Name

Server-Side Request Forgery (SSRF)

Description

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.

Common Consequences

Scope: Confidentiality

Impact: Read Application Data

Scope: Integrity

Impact: Execute Unauthorized Code or Commands

Related Weaknesses
  • Release Date:
  • 2013-02-21
  • Latest Modification Date:
  • 2023-06-29