Weaknesscore
Server-side request forgery
Also called SSRF, XSPA, cross site port attack, cwe-918.
Server-side request forgery happens when a server fetches a URL from outside input and does not check the destination, so an attacker can reach hosts that only the server can reach.
- CWE
- CWE-918
- Abstraction
- base
- OWASP Top 10 (2025)
- A01
- CWE Top 25 (2025)
- rank 22
- Languages affected
- any-that-makes-network-requests
Description
Many server features fetch a URL for the user. A link preview reads a page to show its title. An import reads a file from a URL. A webhook sends an event to an address that the user gave. In each case, the server makes a network request, and part of the destination comes from outside input. Server-side request forgery (SSRF) happens when the server does not make sure that the request goes to an expected destination.1
The weakness is about where the request comes from. The request leaves from the server, not from the attacker. The server can often reach hosts that the attacker cannot reach. Examples are services on the loopback address, hosts on the internal network, and administration ports behind a firewall. The server becomes a proxy for the attacker, and its requests can pass a firewall that stops the attacker.1
An attacker can use SSRF to read internal pages and data, and to scan internal hosts for open ports. The requests can also bypass a firewall. When the client accepts other URL schemes, such as file:, the same input can read local files.1 What the attacker gets depends on the services that the server can reach.
CWE-918 names this weakness. It is a base weakness and a child of CWE-441, unintended proxy or intermediary. Its alternate terms are SSRF and XSPA, cross site port attack.1 It is rank 22 of the 2025 CWE Top 25, down from rank 19 in 2024.3 The OWASP Top 10:2021 had SSRF as its own category, A10:2021, which came from the community survey.5 In the OWASP Top 10:2025, it is part of A01:2025 Broken Access Control.2
History
Alexander Polyakov and Dmitry Chastukhin gave a talk on SSRF at Black Hat USA 2012. Their slides say that SSRF was discussed in 2008, with very little information about theory and practical examples. The first item on their list of earlier research was Deral Heiland's talk at ShmooCon 2008. That talk showed that web portlets, which load files from other HTTP sources, can attack the internal network through a URL parameter.4 CWE added CWE-918 in version 2.4 in February 2013, and its references include both talks.1
Related weaknesses
An XML parser that resolves external entities can make a request to a URL in the document. This is XML external entity injection, CWE-611, and CWE-918 lists it as a related weakness.1 A file name that reaches a file open call is Path traversal, not SSRF. A server that runs a shell command such as curl with the URL in the command text can also have OS command injection.
Vulnerable code
The function below shows a preview of any URL that the user sends. The program starts a small HTTP server on 127.0.0.1 in a thread. It stands for an internal service that only the local network can reach. The classic demonstration input is a URL on the loopback address, such as http://127.0.0.1/admin.
This code runs but gives a wrong answer on purpose.
import http.server
import pathlib
import tempfile
import threading
import urllib.request
class InternalAdmin(http.server.BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.end_headers()
self.wfile.write(b"internal admin page: 3 users, debug mode on")
def log_message(self, *args):
pass
# A service that only the local network should reach.
internal = http.server.HTTPServer(("127.0.0.1", 0), InternalAdmin)
threading.Thread(target=internal.serve_forever, daemon=True).start()
port = internal.server_address[1]
# No proxy, so every request in this example stays on this machine.
opener = urllib.request.build_opener(urllib.request.ProxyHandler({}))
def preview(url):
# The feature: show a preview of a page that the user names.
with opener.open(url, timeout=2) as response:
return response.read(200).decode()
print(preview(f"http://127.0.0.1:{port}/admin"))
with tempfile.TemporaryDirectory() as tmp:
settings = pathlib.Path(tmp) / "settings.ini"
settings.write_text("api_key = placeholder-not-a-real-key\n")
print(preview(settings.as_uri()))
internal admin page: 3 users, debug mode on
api_key = placeholder-not-a-real-key
The first call returns the internal page. The second call reads a local file, because urllib.request also opens file: URLs.7 The user saw data that the feature was never meant to show.
Fixed code
The fix decides the destination on the server. The OWASP cheat sheet separates two cases.6 In the first case, the application talks only to known hosts, such as one media host or one partner API. Then the server keeps an allow-list of destinations and refuses all others. In the second case, the application must reach any public address, as a link preview does. Then the server must refuse internal addresses, and it must check the address that it really connects to.
An allow-list of destinations
The code below parses the URL and compares the scheme, the host and the port with an allow-list. It does not follow redirects, because a redirect from an allowed host can point to any other host.
import http.server
import threading
import urllib.error
import urllib.parse
import urllib.request
class Handler(http.server.BaseHTTPRequestHandler):
def do_GET(self):
if self.path == "/cat.txt":
self.send_response(200)
self.end_headers()
self.wfile.write(b"a picture of a cat")
elif self.path == "/moved":
self.send_response(302)
self.send_header("Location", f"http://127.0.0.1:{admin_port}/admin")
self.end_headers()
else:
self.send_response(200)
self.end_headers()
self.wfile.write(b"internal admin page: 3 users, debug mode on")
def log_message(self, *args):
pass
def start():
server = http.server.HTTPServer(("127.0.0.1", 0), Handler)
threading.Thread(target=server.serve_forever, daemon=True).start()
return server.server_address[1]
media_port = start() # stands for a public media host
admin_port = start() # stands for an internal service
# The operator chooses the destinations. Here both servers run on 127.0.0.1,
# so the port tells them apart. In production, the host names do.
ALLOWED = {("http", "127.0.0.1", media_port)}
class NoRedirect(urllib.request.HTTPRedirectHandler):
def redirect_request(self, req, fp, code, msg, headers, newurl):
raise urllib.error.HTTPError(req.full_url, code, "redirect refused", headers, fp)
opener = urllib.request.build_opener(urllib.request.ProxyHandler({}), NoRedirect)
def preview(url):
parts = urllib.parse.urlsplit(url)
if (parts.scheme, parts.hostname, parts.port) not in ALLOWED:
return "refused: destination not allowed"
try:
with opener.open(url, timeout=2) as response:
return response.read(200).decode()
except urllib.error.HTTPError as error:
return f"refused: upstream answered {error.code}"
print(preview(f"http://127.0.0.1:{media_port}/cat.txt"))
print(preview(f"http://127.0.0.1:{admin_port}/admin"))
print(preview("file:///tmp/settings.ini"))
print(preview(f"http://127.0.0.1:{media_port}/moved"))
a picture of a cat
refused: destination not allowed
refused: destination not allowed
refused: upstream answered 302
The allowed URL works. The internal URL and the file: URL fail the check before any request. The redirect from the allowed host stops at the first response. A method of HTTPRedirectHandler that raises HTTPError stops the redirect.7
Compare parsed values, not strings
The check compares the parts of a parsed URL. A check with startswith or with a regular expression on the URL text is weak, because one URL has many spellings. The cheat sheet says to validate addresses and domain names with a vetted parser, and to compare its output.6 When possible, do not accept a full URL at all. Take an identifier, and build the URL on the server with a fixed scheme, host, port and path.6
Check the address at connect time
When the destination can be any public host, an allow-list of hosts is not possible. The server must then refuse internal addresses. A check of the host name before the request is not enough. The name can resolve to an internal address. Also, a second DNS lookup between the check and the connection can return a different address.6 The check must run on the address that the socket connects to. In Go, the Control function of a net.Dialer runs after the program creates the connection and before it dials, with the resolved address.8 The Go example file uses it. A denylist of address ranges is a weaker defence than an allow-list, and CWE rates it Moderate.1
Redirects and schemes
HTTP clients follow redirects by default in many languages. In Go, the default policy of http.Client stops after 10 requests, and CheckRedirect can return ErrUseLastResponse to stop at the first response.9 The fetch function takes redirect: "error", and the default is follow.10 The Java HttpClient uses the policy NEVER when the program does not choose another.11 Allow only the schemes that the feature needs, usually https.
How to detect it
- Static analysis with taint tracking. CodeQL follows input from a request to the URL of an outgoing request. Its queries include
py/full-ssrf,py/partial-ssrf,js/request-forgery,go/request-forgeryandjava/ssrf.12 CWE rates static analysis as highly effective for this weakness.1 - Pattern linters. Ruff rule S310 flags
urlopencalls that can open schemes such asfile:.13 gosec rule G107 flags a URL for an HTTP request that comes from tainted input, and rule G704 finds SSRF with taint analysis.14 - Code review. Find every place where the server makes a request: HTTP clients, XML parsers, image and PDF converters, and webhook senders. For each one, ask where the destination comes from.
- Tests. Send a URL on the loopback address, such as
http://127.0.0.1/, to each input that takes a URL. Also send a URL to a test server that answers with a redirect. The feature must refuse both. - Network logs. Outgoing requests from an application server to internal addresses, or to ports that the feature never uses, show a possible SSRF.
How to prevent it
- Do not take a URL when an identifier is enough. Map the identifier to a destination on the server.6
- Allow-list destinations. Compare the scheme, host and port of the parsed URL with a fixed list.6
- Check the connected address. When any public host is allowed, refuse loopback, private and link-local addresses at connect time, after DNS resolution.6
- Turn off redirects, or check each step of a redirect with the same rules.
- Allow only the schemes you need. Most features need only
https. - Segregate the network. Put the services that fetch URLs in a network segment that cannot reach internal hosts. The cheat sheet calls network segregation highly recommended, and it works even when the code check has a bug.6
- Do not return the raw response. Show the user only what the feature needs, such as a title or an image. Keep upstream error messages out of the response.
- Require authentication on internal services. A service that trusts every request from the internal network turns each SSRF into a full compromise.
Real cases
| Case | Date | What happened |
|---|---|---|
| CVE-2002-1484 | published 2003-03-18 | The DB4Web server, with verbose debug messages, was a proxy for TCP connections to other systems. Remote attackers could use it for a port scan.19 |
| CVE-2009-0037 | published 2009-03-05 | The redirect code of curl and libcurl 5.11 to 7.19.3 accepted any Location value when CURLOPT_FOLLOWLOCATION was on. A server could redirect the client to intranet hosts, or to file: and scp: URLs.18 |
| CVE-2021-21973 | published 2021-02-24 | An SSRF in a vCenter Server plugin of the vSphere Client came from improper validation of URLs.16 |
| CVE-2021-26855 | published 2021-03-02 | CWE-918 lists this Microsoft Exchange Server vulnerability as an SSRF in a mail server that was exploited in the wild. The CVE record names it a remote code execution vulnerability.115 |
| CVE-2024-3095 | published 2024-06-06 | The Web Research Retriever of langchain 0.1.5 did not restrict its requests to remote internet addresses. It could reach local addresses.17 |
This code runs but gives a wrong answer on purpose.
import http.server
import pathlib
import tempfile
import threading
import urllib.request
class InternalAdmin(http.server.BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.end_headers()
self.wfile.write(b"internal admin page: 3 users, debug mode on")
def log_message(self, *args):
pass
# A service that only the local network should reach.
internal = http.server.HTTPServer(("127.0.0.1", 0), InternalAdmin)
threading.Thread(target=internal.serve_forever, daemon=True).start()
port = internal.server_address[1]
# No proxy, so every request in this example stays on this machine.
opener = urllib.request.build_opener(urllib.request.ProxyHandler({}))
def preview(url):
# The feature: show a preview of a page that the user names.
with opener.open(url, timeout=2) as response:
return response.read(200).decode()
print(preview(f"http://127.0.0.1:{port}/admin"))
with tempfile.TemporaryDirectory() as tmp:
settings = pathlib.Path(tmp) / "settings.ini"
settings.write_text("api_key = placeholder-not-a-real-key\n")
print(preview(settings.as_uri()))
internal admin page: 3 users, debug mode on
api_key = placeholder-not-a-real-key
The first call reads the internal page. The second call reads a local file through a file: URL. The function trusts the destination in the input.
import http.server
import threading
import urllib.error
import urllib.parse
import urllib.request
class Handler(http.server.BaseHTTPRequestHandler):
def do_GET(self):
if self.path == "/cat.txt":
self.send_response(200)
self.end_headers()
self.wfile.write(b"a picture of a cat")
elif self.path == "/moved":
self.send_response(302)
self.send_header("Location", f"http://127.0.0.1:{admin_port}/admin")
self.end_headers()
else:
self.send_response(200)
self.end_headers()
self.wfile.write(b"internal admin page: 3 users, debug mode on")
def log_message(self, *args):
pass
def start():
server = http.server.HTTPServer(("127.0.0.1", 0), Handler)
threading.Thread(target=server.serve_forever, daemon=True).start()
return server.server_address[1]
media_port = start() # stands for a public media host
admin_port = start() # stands for an internal service
# The operator chooses the destinations. Here both servers run on 127.0.0.1,
# so the port tells them apart. In production, the host names do.
ALLOWED = {("http", "127.0.0.1", media_port)}
class NoRedirect(urllib.request.HTTPRedirectHandler):
def redirect_request(self, req, fp, code, msg, headers, newurl):
raise urllib.error.HTTPError(req.full_url, code, "redirect refused", headers, fp)
opener = urllib.request.build_opener(urllib.request.ProxyHandler({}), NoRedirect)
def preview(url):
parts = urllib.parse.urlsplit(url)
if (parts.scheme, parts.hostname, parts.port) not in ALLOWED:
return "refused: destination not allowed"
try:
with opener.open(url, timeout=2) as response:
return response.read(200).decode()
except urllib.error.HTTPError as error:
return f"refused: upstream answered {error.code}"
print(preview(f"http://127.0.0.1:{media_port}/cat.txt"))
print(preview(f"http://127.0.0.1:{admin_port}/admin"))
print(preview("file:///tmp/settings.ini"))
print(preview(f"http://127.0.0.1:{media_port}/moved"))
a picture of a cat
refused: destination not allowed
refused: destination not allowed
refused: upstream answered 302
The check runs on the parsed URL, before any request. NoRedirect stops at the first response, so an allowed host cannot send the client to another host.
- Verdict: stdlib.
urllib.parse.urlsplitparses the URL, andhostnameandportgive the parts to compare.http.clientmakes a request to one host and port and never follows redirects. urllib.request.urlopenand the default opener handlehttp:,https:,ftp:,file:anddata:URLs. Check the scheme before the call, or build an opener with only the handlers that the feature needs.- The default opener follows redirects. A subclass of
HTTPRedirectHandlerwhoseredirect_requestraisesHTTPErrorstops them. ProxyHandler({})turns off the proxies from the environment. The examples use it so that every request stays on the local machine.- Python has no hook in
urllibthat checks the address at connect time. For a feature that must reach any public host, resolve the name once, check each address withipaddress, and connect to that address. The Go example file shows the check at connect time. - Ruff rule S310 flags
urlopencalls that can open schemes other thanhttp:andhttps:. CodeQL haspy/full-ssrfandpy/partial-ssrf.
import com.sun.net.httpserver.HttpServer;
import java.net.InetSocketAddress;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
import java.util.Set;
public class Main {
static String start(String body, String location) throws Exception {
HttpServer server = HttpServer.create(new InetSocketAddress("127.0.0.1", 0), 0);
server.createContext("/", exchange -> {
byte[] bytes = body.getBytes(StandardCharsets.UTF_8);
if (location != null && exchange.getRequestURI().getPath().equals("/moved")) {
exchange.getResponseHeaders().add("Location", location);
exchange.sendResponseHeaders(302, -1);
} else {
exchange.sendResponseHeaders(200, bytes.length);
exchange.getResponseBody().write(bytes);
}
exchange.close();
});
server.start();
return "http://127.0.0.1:" + server.getAddress().getPort();
}
// NEVER is the default policy. The code sets it so that a reader sees it.
static final HttpClient CLIENT = HttpClient.newBuilder()
.followRedirects(HttpClient.Redirect.NEVER)
.proxy(HttpClient.Builder.NO_PROXY)
.build();
static Set<String> allowed;
static String preview(String input) throws Exception {
URI uri = URI.create(input);
String origin = uri.getScheme() + "://" + uri.getHost() + ":" + uri.getPort();
if (!allowed.contains(origin)) {
return "refused: destination not allowed";
}
HttpRequest request = HttpRequest.newBuilder(uri).build();
HttpResponse<String> response = CLIENT.send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() != 200) {
return "refused: upstream answered " + response.statusCode();
}
return response.body();
}
public static void main(String[] args) throws Exception {
String admin = start("internal admin page: 3 users, debug mode on", null);
String media = start("a picture of a cat", admin + "/admin");
allowed = Set.of(media);
System.out.println(preview(media + "/cat.txt"));
System.out.println(preview(admin + "/admin"));
System.out.println(preview("file:///tmp/settings.ini"));
System.out.println(preview(media + "/moved"));
System.exit(0);
}
}
a picture of a cat
refused: destination not allowed
refused: destination not allowed
refused: upstream answered 302
Without the check in preview, CLIENT.send returns the internal page. The check builds the origin from the parsed URI and compares it with the allowed set. The redirect stops at the first response, because the policy is NEVER.
- Verdict: stdlib.
java.net.http.HttpClientuses the redirect policyNEVERunless the program chooses another one.Redirect.NORMALandRedirect.ALWAYSfollow redirects, so a client with one of them needs the destination check on each step. java.net.URL.openStreamopensfile:andjar:URLs as well ashttp:URLs. Do not pass a URL from input to it.URI.getHostreturns null for a URL with no host, and the check then fails, as it should.- XML parsers in Java can fetch external entities and DTDs from URLs in a document. Turn off external entities for input from outside, because they are another route to the same requests.
- CodeQL has
java/ssrf.
This code runs but gives a wrong answer on purpose.
import http from "node:http";
// A server on 127.0.0.1 that stands for an internal service.
const internal = http.createServer((req, res) => res.end("internal admin page: 3 users, debug mode on"));
await new Promise((resolve) => internal.listen(0, "127.0.0.1", resolve));
const admin = `http://127.0.0.1:${internal.address().port}`;
async function preview(url) {
const response = await fetch(url);
return response.text();
}
console.log(await preview(`${admin}/admin`));
internal.close();
internal admin page: 3 users, debug mode on
fetch sends the request to any host in the URL, and it follows redirects by default.
import http from "node:http";
async function start(handler) {
const server = http.createServer(handler);
await new Promise((resolve) => server.listen(0, "127.0.0.1", resolve));
server.unref();
return `http://127.0.0.1:${server.address().port}`;
}
const admin = await start((req, res) => res.end("internal admin page: 3 users, debug mode on"));
const media = await start((req, res) => {
if (req.url === "/moved") {
res.writeHead(302, { Location: `${admin}/admin` }).end();
} else {
res.end("a picture of a cat");
}
});
// The operator chooses the destinations. In production, this set holds
// origins such as https://media.example.com.
const ALLOWED_ORIGINS = new Set([media]);
async function preview(input) {
let url;
try {
url = new URL(input);
} catch {
return "refused: not a URL";
}
if (!ALLOWED_ORIGINS.has(url.origin)) {
return "refused: destination not allowed";
}
try {
const response = await fetch(url, { redirect: "error" });
return await response.text();
} catch {
return "refused: the request failed or redirected";
}
}
console.log(await preview(`${media}/cat.txt`));
console.log(await preview(`${admin}/admin`));
console.log(await preview("file:///tmp/settings.ini"));
console.log(await preview(`${media}/moved`));
a picture of a cat
refused: destination not allowed
refused: destination not allowed
refused: the request failed or redirected
new URL parses the input, and url.origin holds the scheme, the host and the port in a normal form. The check compares it with a set of allowed origins. redirect: "error" makes fetch reject the promise when the server answers with a redirect.
- Verdict: stdlib. Node.js has
fetchand theURLclass as globals. The default of theredirectoption isfollow, so set it toerrorormanualfor requests to destinations from input. - Compare
url.originorurl.hostname, not the input text. A check withstartsWithon the URL text is weak, because the same host has many spellings. fetchin Node.js has no hook that checks the resolved address before the connection. For a feature that must reach any public host, check the address at connect time. One way is a customlookupfunction fornode:httpthat resolves the name withnode:dnsand refuses internal addresses. Another way is an egress proxy that applies the rules.- CodeQL has
js/request-forgery.
This code runs but gives a wrong answer on purpose.
package main
import (
"fmt"
"io"
"net/http"
"net/http/httptest"
)
func preview(url string) string {
resp, err := http.Get(url)
if err != nil {
return "error"
}
defer resp.Body.Close()
body, _ := io.ReadAll(io.LimitReader(resp.Body, 200))
return string(body)
}
func main() {
// httptest.NewServer listens on 127.0.0.1. It stands for an internal service.
internal := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "internal admin page: 3 users, debug mode on")
}))
defer internal.Close()
fmt.Println(preview(internal.URL + "/admin"))
}
internal admin page: 3 users, debug mode on
http.Get connects to any host and follows up to 10 redirects. The preview returns the internal page.
package main
import (
"errors"
"fmt"
"io"
"net"
"net/http"
"net/http/httptest"
"net/netip"
"syscall"
"time"
)
var errBlocked = errors.New("destination address is not allowed")
// The ranges that the service must never reach. Keep this list in one place and test it.
var blocked = []netip.Prefix{
netip.MustParsePrefix("0.0.0.0/8"),
netip.MustParsePrefix("10.0.0.0/8"),
netip.MustParsePrefix("127.0.0.0/8"),
netip.MustParsePrefix("169.254.0.0/16"),
netip.MustParsePrefix("172.16.0.0/12"),
netip.MustParsePrefix("192.168.0.0/16"),
netip.MustParsePrefix("::/128"),
netip.MustParsePrefix("::1/128"),
netip.MustParsePrefix("fc00::/7"),
netip.MustParsePrefix("fe80::/10"),
}
// checkAddress runs after DNS resolution, on the address that the socket
// connects to, so a host name cannot hide an internal address.
func checkAddress(network, address string, _ syscall.RawConn) error {
host, _, err := net.SplitHostPort(address)
if err != nil {
return err
}
ip, err := netip.ParseAddr(host)
if err != nil {
return err
}
ip = ip.Unmap()
for _, p := range blocked {
if p.Contains(ip) {
return errBlocked
}
}
return nil
}
var client = &http.Client{
Timeout: 5 * time.Second,
Transport: &http.Transport{
Proxy: nil,
DialContext: (&net.Dialer{Control: checkAddress}).DialContext,
},
CheckRedirect: func(*http.Request, []*http.Request) error {
return http.ErrUseLastResponse
},
}
func preview(url string) string {
resp, err := client.Get(url)
if errors.Is(err, errBlocked) {
return "refused: " + errBlocked.Error()
}
if err != nil {
return "error"
}
defer resp.Body.Close()
body, _ := io.ReadAll(io.LimitReader(resp.Body, 200))
return string(body)
}
func main() {
internal := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "internal admin page: 3 users, debug mode on")
}))
defer internal.Close()
fmt.Println(preview(internal.URL + "/admin"))
}
refused: destination address is not allowed
The client resolves the name and creates the socket, and then checkAddress sees the address before the connection. The loopback address is in the blocked list, so the request never leaves the process.
- Verdict: stdlib.
net.Dialerhas aControlfunction that runs after the socket is created and before it dials. A check there sees the resolved address. It also covers names that resolve to internal addresses, and DNS answers that change between a check and the connection. http.Clientfollows up to 10 redirects by default.CheckRedirectthat returnshttp.ErrUseLastResponsestops at the first response. With the dial check, a redirect to an internal address also fails, because each connection goes throughControl.Proxy: nilturns off proxies. When the client uses a proxy, the dial check sees the address of the proxy, not of the destination. The proxy must then apply the same rules.- The documentation of
netip.Addr.IsPrivatesays that it does not describe a security property of addresses and should not be used for access control. The example keeps an explicit list of prefixes instead. - gosec rule G107 flags a URL from tainted input in an HTTP request, and rule G704 finds SSRF with taint analysis. CodeQL has
go/request-forgery.
References
- CWE-918: Server-Side Request Forgery, Description; Alternate Terms; Relationships; Common Consequences; Potential Mitigations; Detection Methods; Observed Examples; References; Content History
- OWASP Top 10:2025, A01:2025 Broken Access Control, Background; List of Mapped CWEs
- 2025 CWE Top 25 Most Dangerous Software Weaknesses, the ranked list, rank 22, Rank Last Year
- Alexander Polyakov and Dmitry Chastukhin, SSRF vs. Business-critical applications: XXE tunneling in SAP, Black Hat USA 2012, slides, the slides "SSRF History, the beginning" and "SSRF history, World research"
- OWASP Top 10:2021, A10:2021 Server-Side Request Forgery (SSRF), Overview
- OWASP Cheat Sheet Series, Server-Side Request Forgery Prevention Cheat Sheet, Case 1, Application can send request only to identified and trusted applications; Case 2, Application can send requests to any external IP address or domain name; Network layer
- The Python Standard Library, urllib.request, Python 3.15, HTTPRedirectHandler.redirect_request; urllib.request Restrictions
- Go standard library, package net, type Dialer, the Control field
- Go standard library, package net/http, type Client, the CheckRedirect field; ErrUseLastResponse
- MDN Web Docs, RequestInit, redirect
- Java SE 25 API, HttpClient.Builder, followRedirects; NO_PROXY
- CodeQL query help, Full server-side request forgery (py/full-ssrf), the query description
- Ruff rules, suspicious-url-open-usage (S310), What it does; Why is this bad?
- gosec, rules, G107; G704
- CVE-2021-26855, Microsoft Exchange Server, the description and the publication date
- CVE-2021-21973, VMware vCenter Server, the description and the publication date
- CVE-2024-3095, langchain Web Research Retriever, the description and the publication date
- CVE-2009-0037, curl and libcurl, the description and the publication date
- CVE-2002-1484, DB4Web, the description and the publication date
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 71XE9R Edit this page History Report an error Markdown