> For the complete documentation index, see [llms.txt](https://writeups.adityadindi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://writeups.adityadindi.com/tryhackme/walkthroughs-easy/ssrf.md).

# SSRF

![](/files/-MekanpWkz3I31r_kpWq)

## What is SSRF?

![](/files/-Mekb6tO7-dVK3Gcx_Cb)

## Cause of the Vulnerability

![](/files/-MekbZr6OQIdmdMGEi2b)

![](/files/-MekboLZyctlpagd66KX)

## SSRF Payload

![](/files/-Mekc18iLpxi0HKFNuIl)

![](/files/-MekcGQJbgIVkt-TEM0P)

![](/files/-MekcOtRpaAm0KEHaebY)

![](/files/-MekcXv_zO26vinmkwD-)

## Exercise

![](/files/-MekciO-JKrXxVviZuSA)

Lets check the webpage

![](/files/-MekcvDeZ2T0F8nxSkjn)

After doing a number of check, we can write a simple bash script that will give us the answer.

![](/files/-MekdncdYt2JjDJjZ5fm)

![](/files/-MekipSW2ouhIucj5mF4)

After a while, it shows that 5 ports are open

![](/files/-Mekiw42dqUDjhnSn7lc)

We can find out how many users there are by looking at the /etc/passwd file

![](/files/-MekjFyrHkq6hFOWdwpA)

Lets go to the source code

![](/files/-MekjSymzGGeLeDDv5Oc)

![](/files/-MekjXTkvkryXl8WgND9)


---

# 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://writeups.adityadindi.com/tryhackme/walkthroughs-easy/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.
