> 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/xss/xss-reflected-in-an-attribute-with-encoded-angle-brackets.md).

# XSS منعكس في خاصية مع أقواس زاوية مُرمَّزة

### XSS منعكس داخل سمة مع ترميز HTML للأقواس الزاوية

تحتوي هذه المختبر على ثغرة XSS منعكسة في ميزة البحث في المدونة: يتم حقن المحتوى الذي يقدمه المستخدم في قيمةِ `القيمة` سمةٍ لـ `<input>`، و `<` و `>` الأقواس الزاوية مُرمَّزة في HTML (`&lt;`, `&gt;`). الهدف هو حقن سمة جديدة تؤدي إلى تشغيل `alert()`.

<figure><img src="/files/8c8a8aa3913aa9421af82018de0c812357621bd3" alt=""><figcaption></figcaption></figure>

#### الملاحظات

* النص الذي تم إدخاله يظهر في `القيمة` سمة الإدخال.
* محاولة إدراج `">test` يتم تحييده عبر ترميز الأقواس الزاوية، لذلك لا يمكنك فتح وسم جديد بهذه الطريقة.

```
">test
```

<figure><img src="/files/87868e1c84ebdcf299ead3e4ff4fd79e911f4581" alt=""><figcaption></figcaption></figure>

ومع ذلك، وبما أن القيمة محاطة بعلامات اقتباس، فمن الممكن إغلاق `القيمة` القيمة وإضافة سمة جديدة إلى نفس `<input>` العنصر عن طريق حقن تسلسل يحتوي على علامة اقتباس إغلاق.

```javascript
hola" test="hello
```

<figure><img src="/files/81ee88796785e0c76a25bdc7a06bec0ff266595c" alt=""><figcaption></figcaption></figure>

1. أغلق `القيمة` القيمة باستخدام علامة اقتباس مزدوجة مدخلة.
2. أضف سمة حدث جديدة (مثل `onmouseover` ) تحتوي على `alert()`.

```javascript
test" onmouseover="alert(0)
```

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

* ينهي الحمولة `القيمة` السمة ويضيف `onmouseover="alert(0)"` إلى `<input>` العنصر.

<figure><img src="/files/25df6fbeb4ec98552bf895e7c5379bdfa415c176" 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/xss/xss-reflected-in-an-attribute-with-encoded-angle-brackets.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.
