Skip to content

Server-Side Request Forgery (SSRF)

Description

Server-Side Request Forgery occur when a web server executes a request to a user supplied destination parameter that is not validated. Such vulnerabilities could allow an attacker to access internal services or to launch attacks from your web server.

Examples

Insecure Code

scala
new URL(userInput).openConnection();

Secure Code

scala
new URL(validatedInput).openConnection();

Remediation

Validate user-supplied destination parameters to prevent Server-Side Request Forgery (SSRF) attacks.

Rule Details

FieldValue
IDCODE-0068
CategoryWeb
SeverityHIGH
CWECWE-918
ConfidenceHIGH
ImpactHIGH
LikelihoodMEDIUM
ExploitabilityEASY
Tagsssrf, server-side request forgery
OWASPN/A