Skip to content

Reading list

Learn SSRF from real reports

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

12 reports, easiest first.

  1. How a Single HTTP Redirect Bypassed SSRF Filters on 4 Programs Over 8 Years

    Beginner

    The article describes a recurring SSRF bypass where an application validates a user-supplied URL but then follows HTTP redirects without re-checking the destination, allowing access to internal services. Across four programs, attackers used a redirect to reach localhost or cloud metadata endpoints and read internal responses.

    SSRF (server-side request forgery) is when a server fetches a URL on your behalf, and you trick it into fetching something internal that you cannot reach directly. Here, the server checked the first URL you gave it, but when that URL redirected to an internal address, the server followed the redirect without checking again. That let attackers see internal services or cloud metadata.

    The lesson. The SSRF filter validates only the initial URL, while the HTTP client follows redirects by default without re-validating the final destination.

  2. How I got $400 for my first SSRF bug?

    Beginner $400

    The PDF generation feature accepted arbitrary HTML and rendered it server-side, allowing an attacker to embed iframes that fetched internal files and AWS instance metadata. This exposed sensitive data such as secret keys and internal server files.

    The app let users turn HTML into a PDF on the server. Because the server trusted the HTML, it could be tricked into fetching files and cloud metadata that only the server can see. This is called server-side request forgery (SSRF): making a server access internal resources on your behalf.

    The lesson. Likely the PDF generator rendered user-supplied HTML without sanitisation, allowing iframes to load local files and internal URLs.

  3. SSRF to Pwned (ACRTP)

    Beginner

    A status page accepted a user-supplied hostname and fetched it server-side without validation, allowing an attacker to reach the AWS instance metadata service. The attacker retrieved temporary IAM credentials and used them to read sensitive files from a private S3 bucket.

    The website had a feature that fetched a web page for you based on a name you typed in. Because it did not check where it was fetching from, an attacker could make it fetch a special internal address that only cloud servers can see. That address handed back temporary cloud login keys, which the attacker then used to open a private storage bucket.

    The lesson. Likely the application passed user-controlled input directly to a server-side HTTP request function without validating or restricting the destination.

  4. GHSL-2023-201_GHSL-2023-202: Blind server-side request forgery (SSRF) in Medusa - CVE-2023-50258, CVE-2023-50259

    GitHub Security Lab Beginner

    Two unauthenticated endpoints in Medusa accept a user-supplied webhook URL and send a POST request to it without validation, enabling blind server-side request forgery. An attacker could make the Medusa server send POST requests to arbitrary internal or external hosts.

    Server-side request forgery (SSRF) is when an attacker can make a server send a request to a destination the attacker chooses. Here, the Medusa application has test endpoints that take a webhook URL from the request and then send a message to that URL. Because the URL is not checked, an attacker can point it at internal services or other systems, and the server will make the request on their behalf.

    The lesson. The application does not validate the user-controlled webhook URL before passing it to an HTTP client that sends a POST request.

  5. How a Simple WordPress Endpoint Led to a Blind Server-Side Reques

    Beginner

    The WordPress XML-RPC endpoint on the target allowed the pingback.ping method to make requests to arbitrary URLs. An attacker could use this to force the server to send requests to internal or external systems, enabling blind SSRF.

    The website had a feature that lets one blog notify another when it links to it. The server would then visit the linking blog's address to check the link. Because the server did not check where it was going, someone could make it visit any address, even internal ones that are not public. This is called server-side request forgery (SSRF): tricking a server into making requests for you.

    The lesson. Likely the pingback.ping method did not validate or restrict the source URL, allowing requests to arbitrary destinations.

  6. Unintended Path to Exam Domination - AWS EC2 Meta-Data

    Beginner

    The AWS EC2 instance metadata service (IMDS) and user-data were accessible from within exam lab environments, allowing attackers to retrieve sensitive information such as temporary AWS credentials and startup scripts containing admin passwords. This could let them bypass the intended exam path or break out of the lab environment.

    In cloud environments like AWS, each virtual machine has a special internal web address that only the machine itself can reach. This address provides information about the machine, including temporary passwords (credentials) that let it use other AWS services. If an attacker can access this address from inside the machine, they can steal those credentials and use them to do things they shouldn't, like reading exam answers or taking over the whole cloud account.

    The lesson. Likely the EC2 instance metadata service (IMDS) was left enabled and accessible from within the lab, and user-data scripts containing sensitive information were stored in readable log files on the instances.

  7. The Server Is a Servant: SSRF in Labs

    Beginner

    The article describes SSRF vulnerabilities in PortSwigger labs where the server fetches user-supplied URLs, allowing access to internal admin panels and bypassing blacklist and whitelist filters. An attacker could reach internal services and perform actions like deleting a user.

    SSRF (Server-Side Request Forgery) is when a website takes a URL from you and fetches it from its own server. Because the server is inside the network, it can reach internal services that you cannot. This lets an attacker access admin panels or other internal systems that trust the server.

    The lesson. Likely the application fetches user-controlled URLs without validating the destination, and filters that check the URL string can be bypassed due to parsing differences or redirects.

  8. SSRF via Improper Redirect Validation in Rocket.Chat oEmbed Function

    Rocket.Chat Beginner

    The oEmbed preview feature validated the initial URL for internal addresses but followed redirects without re-checking, so a shortened URL pointing to an internal host was fetched. An attacker could reach internal network services and view parts of their responses through the preview.

    When you paste a link, Rocket.Chat fetches it to show a preview. It checked the pasted link for private addresses but not the address it was redirected to. A short link can redirect to an internal machine, and the preview then shows part of that machine's page.

    The lesson. Likely the SSRF protection only checked the original URL and did not re-validate the destination after following redirects.

  9. GHSL-2023-266_GHSL-2023-267: Blind server-side request forgery (SSRF) vulnerabilities in Audiobookshelf - CVE-2023-51665, CVE-2023-51697

    GitHub Security Lab Beginner

    Two endpoints in Audiobookshelf accepted user-controlled URLs and made server-side GET requests to them, allowing blind SSRF. An attacker could make the server send requests to internal or external hosts, but the responses were not returned to the attacker.

    Server-side request forgery (SSRF) happens when a server fetches a URL that an attacker supplies. Here, the server made requests to attacker-chosen addresses, but the attacker could not see the replies, so it is called blind. This still lets an attacker probe internal networks or make the server contact other systems.

    The lesson. The application passed user-controlled URL parameters directly to an HTTP client without validating or restricting the destination.

  10. GHSL-2023-262: Server-side request forgery (SSRF) vulnerability in Dtale 3.8.1 - CVE-2024-21642

    GitHub Security Lab Beginner

    The web_upload function in Dtale 3.8.1 takes a user-controlled url parameter and makes a GET request to it without restrictions, enabling server-side request forgery. An attacker could access internal network resources and read files from arbitrary sources that Dtale can process.

    Server-side request forgery (SSRF) is when an attacker makes a server send requests to places the attacker cannot reach directly. Here, the Dtale application lets a user supply a web address, and the server fetches it without checking where it points. This means an attacker could make the server access internal systems or read files it should not.

    The lesson. The application fails to validate or restrict the user-supplied URL before using it to make a server-side HTTP request.

  11. A tale of my first ever full SSRF bug

    Beginner $1,000

    A newsletter subscription endpoint accepted a URL parameter and fetched it server-side, allowing an attacker to reach the cloud instance metadata service. The attacker could read instance metadata and obtain temporary AWS credentials.

    The website had a feature that took a web address from the user and fetched it on the server. Because the server trusted any address, the attacker could point it at a special internal address that only the server can reach, which holds cloud login keys. This is called server-side request forgery (SSRF): making a server send requests to places the attacker cannot reach directly.

    The lesson. Likely the proxy endpoint accepted an arbitrary URL and fetched it without restricting destinations to the intended mailing-list host or blocking internal and metadata addresses.

  12. From Vulnerability to Validation: How we fixed a Critical SSRF bu

    Beginner

    A utility function concatenated a user-supplied endpoint onto a base API URL, creating a potential SSRF flaw. An attacker could craft an endpoint to make the server send requests to internal services or an attacker-controlled domain, potentially leaking the auth token.

    The code built a web address by gluing a user-provided piece onto a fixed base address. If the user-provided piece started with something like '//' or 'http://', the final address could point to a completely different server. That could let an attacker trick the application's server into contacting internal systems or sending the user's token to the attacker.