CWE-918: Server-Side Request Forgery (SSRF)
low-riskThe 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.
Abstraction: Base
Common Consequences
Confidentiality
→
Read Application Data
Integrity
→
Execute Unauthorized Code or Commands
Access Control
→
Bypass Protection Mechanism
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.)
Real-World Examples (10)
| CVE | CVSS | EPSS | KEV |
|---|---|---|---|
| CVE-2021-22986 | 9.8 | 94.5% | Y |
| CVE-2021-22986 | 9.8 | 94.5% | Y |
| CVE-2021-40438 | 9.0 | 94.4% | Y |
| CVE-2021-40438 | 9.0 | 94.4% | Y |
| CVE-2021-21975 | 7.5 | 94.4% | Y |
| CVE-2021-21975 | 7.5 | 94.4% | Y |
| CVE-2021-21985 | 9.8 | 94.4% | Y |
| CVE-2021-21985 | 9.8 | 94.4% | Y |
| CVE-2024-21893 | 8.2 | 94.3% | Y |
| CVE-2024-21893 | 8.2 | 94.3% | Y |
13
/ 100
low-risk
Active Threat
12/50 · Low
Exploit Availability
1/50 · Minimal