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

# Magento

{% hint style="info" %}
**Magento** est une plateforme de commerce électronique open source utilisée pour créer des boutiques en ligne personnalisées. Elle prend en charge la gestion des produits, des commandes et des paiements, et est couramment étendue grâce à des modules et des thèmes.
{% endhint %}

## Analyseur de site Magento (magescan)

Télécharger [magescan (magescan.phar)](https://github.com/steverobbins/magescan/releases).

```bash
php magescan.phar scan:all http://site-web.com
```

## Exemple d’injection SQL pour voler des cookies de session

* Utilisez `wget` pour télécharger les données brutes [script Python](https://github.com/ambionics/magento-exploits/blob/master/magento-sqli.py) boucle **détournement de cookie**.

1. Exemple d'utilisation pratique :

```bash
python3 magento-sqli.py http://localhost:8080/
```

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

2. Avec l’ [éditeur de cookies](https://chrome.google.com/webstore/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm) extension, remplacez le cookie actuel par le cookie administrateur :

<figure><img src="/files/5868abdd34e04ce2808e45f8379f5fe712a38758" alt=""><figcaption></figcaption></figure>

3. Compromis :)

<figure><img src="/files/6b11b89684d8b12a5aeba9d43aab6521fee0f445" 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/magento-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.
