> 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/web/information-disclosure/information-disclosure-via-version-control-history.md).

# كشف المعلومات عبر سجل التحكم بالإصدارات

### كشف المعلومات في سجل التحكم بالإصدارات

**وصف المختبر**

يكشف هذا المختبر عن معلومات حساسة من خلال سجل مستودع التحكم بالإصدارات. / الهدف هو استرجاع كلمة مرور المستخدم **administrator**, ثم تسجيل الدخول بهذا الحساب لحذف المستخدم **carlos**.

**التحليل الأولي**

من خلال استكشاف التطبيق، نلاحظ وجود دليل **`.git`** يمكن الوصول إليه مباشرةً من خادم الويب.

<figure><img src="/files/79468db4c8cbc406435fd51f9a8b511b933d3c97" alt=""><figcaption></figcaption></figure>

وهذا يشير إلى أن مستودع Git الكامل معروض علنًا، مما قد يتيح استرجاع الشيفرة المصدرية وسجل التغييرات.

**الاستغلال**

**استخراج مستودع Git**/ تُستخدم أداة git-dumper لتنزيل محتويات `.git` الدليل:

```bash
git-dumper https://0a7800030384626580b39ee5001e00b1.web-security-academy.net/.git .git
```

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

**تحليل سجل الالتزامات**/ بمجرد إعادة بناء المستودع محليًا، يتم الاطلاع على سجل الالتزامات:

```bash
git log
```

يكشف التحليل أن أحد الالتزامات يتضمن إزالة كلمة مرور المسؤول.

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

**فحص الفروقات**/ تتم مراجعة المحتوى الدقيق لهذا الالتزام لتحديد المعلومات المحذوفة:

```bash
git log -p ab875bcd9cf3ea84ad6af9471521aea4c3a1852d
```

تجعل الفروقات المعروضة من الممكن العثور على كلمة مرور المستخدم **administrator**.

* q0b3xu3ko6pqcqdjofrq

<figure><img src="/files/1d6668b3b0a9a512f419449f182400d099138553" 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/web/information-disclosure/information-disclosure-via-version-control-history.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.
