Home > Glossary > CompTIA PenTest+ > Server-Side Request Forgery (SSRF)

📖 What is Server-Side Request Forgery (SSRF)?

Server-Side Request Forgery (SSRF) occurs when an attacker induces a server-side application to make HTTP requests to an arbitrary domain of the attacker's choosing. This is often used to target internal systems behind a firewall that are not accessible from the external network.

🥋 Sensei Says:

"Watch for 'URL' or 'file' parameters in web requests. This is a prime candidate for testing if the server can be tricked into scanning its own internal network."

📚 Certification: CompTIA PenTest+ (PT0-002)

🔑 What are the Key Concepts of Server-Side Request Forgery (SSRF)?

  • Internal Network Probing: Attackers leverage the server's trusted internal IP to scan ports and services that are blocked from the public internet by firewalls.
  • Cloud Metadata Exploitation: Targeting specific link-local addresses, like 169.254.169.254, to retrieve sensitive IAM roles, API keys, and instance configuration data from cloud providers.
  • Protocol Manipulation: Using alternative URI schemes such as file:// to read local system files or gopher:// to interact with legacy services like Redis or Memcached.
  • Blind vs. Non-Blind SSRF: Non-blind SSRF returns the response body to the attacker, while blind SSRF requires observing out-of-band interactions or timing differences for confirmation.
  • Input Validation Defenses: Implementing strict allow-lists for destination domains and disabling unused URL schemas to prevent the server from making unauthorized requests.

🎯 How does Server-Side Request Forgery (SSRF) appear on the PT0-002 Exam?

You may be asked to identify a vulnerability when a web application accepts a URL parameter to fetch a remote image and allows requests to localhost.

A scenario might describe an attacker attempting to steal AWS security credentials by directing a vulnerable server to request the cloud metadata service endpoint.

Expect questions where you must differentiate between XSS and SSRF; remember that XSS targets the user's browser, while SSRF targets the server's backend requests.

❓ Frequently Asked Questions

How does SSRF differ from a standard Cross-Site Request Forgery (CSRF) attack?

CSRF tricks a victim's browser into sending an unauthorized request to a server. SSRF tricks the server itself into sending a request to a target, often internal, resource.


What is the best way to test for Blind SSRF during a penetration test?

Since the server doesn't return a response, use an out-of-band tool like Burp Collaborator or a custom DNS logger to detect incoming requests from the target server.


Why is the 169.254.169.254 address so critical in cloud-based SSRF attacks?

This is the standardized link-local address for cloud metadata services. Accessing it via SSRF can expose temporary security credentials, allowing an attacker to escalate privileges within the cloud environment.

Related Terms from CompTIA PenTest+

📝 Related Study Guides

Comparison 8 min read

CISSP vs CISM: Which Certification Should You Pursue in 2026?

Choose CISSP if you want broad technical security expertise across eight domains, including cryptography, network security, and software development. Choose CISM if you're focused on information security management, governance, and risk management from a leadership perspective. CISSP is ideal for hands-on security architects, while CISM is designed for security managers and directors.

Career Guide 9 min read

The IT Certification Roadmap: Where to Start in 2026

Start your IT certification journey in 2026 with CompTIA A+ for general IT foundations, then branch into networking (Network+), cybersecurity (Security+), or cloud computing (AWS Cloud Practitioner or Azure Fundamentals) based on your career goals. Each path leads to advanced certifications like CISSP, AWS Solutions Architect, or CISM within 2-3 years of focused progression.

Comparison 10 min read

CISSP vs CISM: Which Certification Should You Pursue in 2026?

The CISSP is a broad, technical-to-managerial certification focusing on security operations and architecture across eight domains. In contrast, CISM is a specialized management certification centered on governance, risk management, and program development. Choose CISSP for comprehensive security expertise and CISM if you are pivoting specifically into security leadership and governance roles.

🧠

Test Your Knowledge

Think you understand Server-Side Request Forgery (SSRF)? Put it to the test with our practice exam.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium