> 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/de/privesc/user-groups/docker-group-linux-privilege-escalation.md).

# Missbrauch der docker-Gruppe - Linux-Privilegieneskalation

## Was es ist

Gefährliche lokale Gruppenmitgliedschaften können privilegierte Ressourcen offenlegen, ohne dass ein Kernel-Exploit erforderlich ist. Gruppen wie docker, lxd, adm oder proxy können Host-Kontrolle, Zugriff auf sensible Protokolle oder Konfigurationspfade gewähren, die für laterale Bewegung und Root-Eskalation nützlich sind. Diese spezielle Seite konzentriert sich auf **Benutzergruppe (Docker)** und hält den Ausnutzungsablauf praxisnah: Bedingung identifizieren, sicher validieren und dann die kleinste nötige Nutzlast ausführen, um die Auswirkungen zu belegen.

## Enumeration

Beginnen Sie damit, den lokalen Kontext und die genaue Fehlkonfiguration zu bestätigen, bevor Sie den Exploit-Pfad ausführen.

```bash
id
groups
```

## Beispiele

> In Docker wird der Zugriff auf Systemressourcen anders verwaltet als bei einem herkömmlichen Betriebssystem wie Linux. Docker verwendet Konzepte wie Images, Container und Volumes, um Anwendungen zu kapseln und isoliert auszuführen.

Mit dem niedrig privilegierten Benutzer **jordan**, können wir **Docker-Befehle ausführen**:

<figure><img src="/files/31212114baa7ac36eccda95849c253b032083594" alt=""><figcaption></figcaption></figure>

Mit dem folgenden Befehl starten wir einen Docker, der \*\* den Benutzer root speichert\*\*:

```bash
docker run --rm -dit -v /:/mnt/root --name privesc ubuntu
```

Wir könnten auch **SUID-Rechte** für Bash gewähren:

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

Wenn wir zu der **/mnt/etc/shadow** Datei gehen, finden wir die gehashten Passwörter:

<figure><img src="/files/b0a7a0a12ef87d4c52d672b511c84bb4b34336d5" 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/de/privesc/user-groups/docker-group-linux-privilege-escalation.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.
