> 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-vulnerabilities/execution-after-redirect-ear-attack/ear-execution-after-redirect-pentesting-web.md).

# تنفيذ بعد إعادة التوجيه

## **ثغرة EAR (التنفيذ بعد إعادة التوجيه) - تخطي عمليات إعادة التوجيه**

نجد عدة صفحات تحتوي على المحتوى ولكنها تعيد التوجيه إلى صفحة تسجيل الدخول.

<figure><img src="/files/4934a9befdce2c1f2b0eb999394c73b92facfa8d" alt=""><figcaption></figcaption></figure>

نعترض الطلب إلى `nav.php` باستخدام Burp Suite ونلاحظ إعادة توجيه 302.

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

من خلال فرض الاستجابة على `200 OK`، نصل مباشرةً إلى الصفحة `accounts`.

<figure><img src="/files/92f36604df744b2f1806c1b9622fd5d7b00bd809" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/873caeb1b8e0a9d9ce7ad1923a0a1ea6c8d2479f" alt=""><figcaption></figcaption></figure>

ننشىء قاعدة في Burp Suite لتعديل الاستجابات تلقائيًا `302 Found` إلى `200 OK`.

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

<figure><img src="/files/41946d4e0ffa19a1d40844b0991b7deaafd92eed" 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-vulnerabilities/execution-after-redirect-ear-attack/ear-execution-after-redirect-pentesting-web.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.
