Vulnerability Lake
To find CWE, enter it here
Search
You may use syntax like CWE-79 or 79

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

Weakness ID: 918

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.

Extended Description

Common Consequences

Scope: Confidentiality

Technical Impact: Read Application Data

Scope: Integrity

Technical Impact: Execute Unauthorized Code or Commands

Scope: Access Control

Technical Impact: Bypass Protection Mechanism:NOTE: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.::

Detection Methods

Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect sources (origins of input) with sinks (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Effectiveness: High::