Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Server Side Request Forgery (SSRF) High

Using untrusted user input directly in HTTP client requests like http.Get and http.NewRequest can enable server-side request forgery (SSRF). Attackers may craft malicious input that alters request destinations to access unauthorized resources. All user data must be validated against an allowlist and sanitized before usage in constructing URLs, URIs or payloads. Failing to filter dangerous values enables SSRF by allowing request destinations to be controlled. Input validation provides the primary defense by restricting inputs to known safe values. This prevents malicious users from targeting unexpected systems through client requests.

Detector ID
go/server-side-request-forgery@v1.0
Category
Common Weakness Enumeration (CWE) external icon