> For the complete documentation index, see [llms.txt](https://davidjosearaujo.gitbook.io/online-courses/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://davidjosearaujo.gitbook.io/online-courses/api-penetration-testing-course/exploiting-server-side-request-forgery/server-side-request-forgery.md).

# Server-Side Request Forgery

Server-Side Request Forgery (SSRF) is a vulnerability that takes place **when an application retrieves remote resources without validating user input**. An attacker can supply their own input, in the form of a URL, to control the remote resources that are retrieved by the targeted server. When you have control over what resources a server requests then you can gain access to sensitive data or worse completely compromise a vulnerable host. SSRF is number 10 on the 2021 OWASP Top 10 list and is a growing threat to APIs.

## SSRF Impact

The impact of this vulnerability is that an attacker would be able to leverage the target server to perform and process requests that they supply. **The attacker could supply URLs that expose private data, scan the target's internal network, or compromise the target through remote code execution**. Note that bug bounties payouts for SSRF are driven based on the impact that can be demonstrated with a proof of concept. In other words, make sure to experiment with your SSRF findings and see what can be compromised with them.

To drive the point home check out the bug bounty rewards for SSRF guidelines on Facebook (<https://m.facebook.com/whitehat/payout_guidelines/ssrf/>):

### Payouts

* $40,000 - SSRF in production and reading the response (must include canary in your report).
* $30,000 - Blind SSRF in production and **not** reading the response (must trigger the canary alert).
* $10,000 - Hitting arbitrary endpoints within a corporate network (e.g. through an unpatched CVE on a third-party system).
* $1,000 - If you can only hit a small number of endpoints within the corporate network (e.g. a small set of hosts or loopback only).

As you can see, the more that you can do with an SSRF finding, the greater the impact and the higher the reward.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://davidjosearaujo.gitbook.io/online-courses/api-penetration-testing-course/exploiting-server-side-request-forgery/server-side-request-forgery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
