> 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/web-cache-deception/web-cache-deception-with-path-delimiters.md).

# خداع ذاكرة التخزين المؤقت للويب باستخدام فواصل المسار

### استغلال فواصل المسار لخداع ذاكرة التخزين المؤقت للويب

#### السياق

**المختبر:** حدود مسار العملية لخداع ذاكرة التخزين المؤقت للويب / **الهدف:** استرجاع \*\*مفتاح API\*\* من المستخدم **carlos**. / **الوصول الممنوح:** اتصال محتمل مع `wiener:peter`. / **مساعدة:** توفّر المختبر قائمة بالفواصل المحتملة.

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

#### الملاحظة الأولية

* في **حسابي** الصفحة، نرى لافتة تعرض بوضوح \*\*مفتاح API\*\* الخاص بنا.
* في الخلفية، يؤدي الوصول العادي إلى إرسال طلب:

```bash
GET /my-account HTTP/2
```

في هذه الحالة، **لا يتم تقديم الاستجابة من ذاكرة التخزين المؤقت** (لا يوجد سلوك مرئي/مفسّر لذاكرة التخزين المؤقت).

<figure><img src="/files/07741734564a49330708f8b237c05d85bb0259ce" alt=""><figcaption></figcaption></figure>

#### اختبار الفواصل

* بإضافة \*\*فاصلة منقوطة\*\* `;` في المسار، لا يزال \*\*التطبيق يفسّر المسار\*\* إلى `my-account`، ولكن هذه المرة **مع سلوك ذاكرة التخزين المؤقت**.

باستخدام **Intruder**، نتحقق من عدة فواصل، ونجد أن **الفاصلة المنقوطة تعمل**.

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

مثال لمسار صالح:

* `/my-account;test.js`

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

#### الاستغلال

الهدف: التأكد من أن الضحية تزور عنوان URL مصيدًا لجعل **/my-account** الاستجابة \*\*مخزنة مؤقتًا\*\* ثم إعادة قراءتها بمتغير آخر للحصول على **carlos** البيانات.

من**خادم الاستغلال**، تتم إعادة توجيه الضحية إلى:

```javascript
<script>
    document.location="https://0a5e005c048218fb80a3f0ec00c2000d.web-security-academy.net/my-account/my-account;test.js";
</script>
```

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

#### استعادة مفتاح API

* ثم نغيّر عنوان URL ونصل إلى:
* `/my-account;jordan.js`

تحتوي هذه الاستجابة بعد ذلك على **مفتاح API الخاص بكارلوس**.

<figure><img src="/files/0b4ef0dbb0bde132fa264e8673bae6f0e40eab1d" 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/web-cache-deception/web-cache-deception-with-path-delimiters.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.
