What Is Server-Side Request Forgery (SSRF)? (Explained Clearly) - CompTIA Security+
CompTIA Security+ SY0-801: Cybersecurity Fundamentals
Learn what server-side request forgery (SSRF) is, how in-band and blind SSRF differ, how to distinguish SSRF from CSRF, and how to prevent and detect it.
👉 Master your Security+ skills with Pluralsight here: Pluralsight
You’ll learn what server-side request forgery (SSRF) is, how in-band and blind SSRF differ, and how to tell SSRF apart from CSRF. This beginner-friendly Security+ guide helps you spot risky URL-fetching features, understand why a firewall alone may not be enough, and recognize controls that prevent or detect SSRF.
Chapters:
0:00 Intro
0:12 What is server-side request forgery?
0:59 What's the difference between in-band and blind SSRF?
1:45 How is SSRF different from cross-site request forgery?
2:30 How can teams prevent and detect SSRF?
3:44 Outro
Affiliate notice: Some links may earn a commission. Thanks for your support.
- SSRF makes the server send an unintended request; CSRF makes the victim’s browser send it. For Security+ questions, start by identifying which component sends the request.
- In-band SSRF exposes some of the destination’s response; blind SSRF doesn’t. A blank preview doesn’t mean no request was sent or that nothing changed.
- Review features that fetch user-supplied URLs, including link previews, remote imports, webhooks, and document rendering. An inbound firewall alone won’t stop a backend worker from reaching internal services.
- SSRF can expose data, change records, or strain services. The impact depends on what the server can reach, which credentials it carries, and what the destination permits.
- Allow only approved destinations where possible. If public URL fetching is necessary, isolate the worker, restrict outbound traffic, and check the actual destination at every redirect. See the OWASP SSRF Prevention Cheat Sheet.
- Correlate incoming requests with outbound connection logs to distinguish blocked attempts from successful connections and investigate what the destination returned or did.
- 👉 Put your Security+ knowledge into practice with Pluralsight: use guided labs, feedback, and practice exams to find out what to review next.
Server-side request forgery (SSRF) happens when untrusted input causes an application server to make a request to a destination it wasn’t supposed to contact. The key is who sends the request: the server, not the user’s browser. Because the server may have access to private services that the browser can’t reach, even an ordinary feature like a link preview needs limits on where it can connect.
How server-side request forgery works
Imagine pasting an article link into a chat app. Your browser sends the link to the app, then a background component called a preview worker makes a separate request to fetch the article and build a preview card.
Fetching the article is legitimate. The weakness is allowing the preview worker to contact destinations outside the feature’s intended scope. If the worker can reach an employee-only service, it may be able to contact that service even though your browser can’t.
FAQ
Quick answers to the questions people usually ask about this topic.
Can a fixed backend hostname still leave an application vulnerable to SSRF?
Can a fixed backend hostname still leave an application vulnerable to SSRF?
Yes. A fixed hostname reduces risk, but it isn't enough if the HTTP client can follow redirects to unapproved destinations or if user input can change the final URL. Review how the application builds the request and enforce destination rules on every connection, including redirects. The OWASP SSRF Prevention Cheat Sheet explains how to layer these controls.
Why does server-side request forgery matter in cloud environments?
Why does server-side request forgery matter in cloud environments?
Some cloud workloads can reach a provider-managed metadata service that supplies configuration or temporary credentials. A server-side fetch feature that doesn't need that access should be blocked from reaching the service. Use the cloud provider's metadata protections and keep the workload's permissions limited so exposed credentials, if any, have less reach.
Does requiring users to sign in prevent SSRF?
Does requiring users to sign in prevent SSRF?
No. Signing in establishes who can use a feature, not where the backend can connect on their behalf. An authenticated user or a compromised account can still trigger an out-of-policy request if the feature doesn't enforce destination restrictions.
How is SSRF different from an open redirect?
How is SSRF different from an open redirect?
An open redirect tells a client, usually a browser, to navigate to an unintended destination. In SSRF, the application server makes the unintended request itself. The two can overlap if a backend fetcher follows a redirect without checking whether the new destination is allowed.
How can developers verify that an SSRF fix stays effective?
How can developers verify that an SSRF fix stays effective?
Add regression tests that confirm approved destinations still work and that requests outside the feature's policy are blocked before a connection is made. Use controlled test services to cover direct requests and redirects, and verify the result with outbound logs rather than relying only on what the application displays.
How can I practice recognizing SSRF in unfamiliar Security+ scenarios?
How can I practice recognizing SSRF in unfamiliar Security+ scenarios?
Start by identifying which component makes the request, what it can reach, and which control limits that access. If you'd like structured practice after the free series, try Pluralsight for guided security labs with feedback, assessments to identify gaps, and practice exams to help you decide what to review next.
Comments
Add a comment...Pinned by @jaymayor
@jaymayor👉 Master your Security+ skills with Pluralsight here: https://www.jaymayor.com/go/security-plus
Some links may earn a commission. Thanks for your support.
