> For the complete documentation index, see [llms.txt](https://kashz.gitbook.io/kashz-jewels/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kashz.gitbook.io/kashz-jewels/attacks/ssrf.md).

# ssrf

Vulnerability that allows a malicious user to cause the webserver to make an additional or edited HTTP request to the resource of the attacker's choosing.

## Reflected SSRF Examples

### 1

Actual Request:`http://IP/cart?item=http://sub.domain.com/api/cart/item?id=123`

Attack: `http://IP/cart?item=http://sub.domain.com/api/user`

### 2

Actual Request:`http://IP/cart?item=/item?id=123`

Attack: `http://IP/cart?item=../../user`

### 3

Actual Request:`http://kashz.com/file?server=api&id=123` > `http://api.kashz.com/file?id=123`

Attack: `http://kashz.com/file?server=dev.kashz.com/api/user&x=&id=123` This forces the server to make request like `http://dev.kashz.com/api/user&x=.kashz.com/file&id=123`

## Blind SSRF

* Use <https://requestbin.com/>

## Protections

* Allow list
* Deny list


---

# 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://kashz.gitbook.io/kashz-jewels/attacks/ssrf.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.
