> 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/csrf.md).

# Falsificación de solicitud entre sitios (CSRF)

Falsificación de solicitud entre sitios, evasión de SameSite, fallos de validación de tokens, evasión de validación de Referer y payloads del servidor de explotación.

Notas de CSRF para los laboratorios de PortSwigger Web Security Academy, centradas en pasos prácticos de pruebas, validación con Burp Suite, comportamiento de los payloads y flujo de trabajo de explotación.

## Flujo de trabajo de pruebas

1. Identifica la funcionalidad vulnerable y la solicitud, parámetro, encabezado, cookie o sink del lado del navegador relevantes.
2. Reproduce el comportamiento en Burp Suite con una carga útil mínima antes de escalar el ataque.
3. Valida el impacto con una prueba de concepto clara, como acceso a la cuenta, divulgación de datos, ejecución de código, SSRF o cambio de estado.
4. Mantén sin cambios las cargas útiles, las URL, los tokens y las credenciales del laboratorio mientras documentas la ruta de explotación.

## Laboratorios

<table><thead><tr><th data-type="content-ref"></th></tr></thead><tbody><tr><td><a href="/es/web/csrf/csrf-vulnerability-with-no-defenses.md">Vulnerabilidad CSRF sin protección</a></td></tr><tr><td><a href="/es/web/csrf/csrf-with-broken-referer-validation.md">CSRF con validación de Referer rota</a></td></tr><tr><td><a href="/es/web/csrf/csrf-with-duplicated-token-in-a-double-submit-cookie.md">CSRF con token duplicado en una cookie de doble envío</a></td></tr><tr><td><a href="/es/web/csrf/csrf-referer-validation-depends-on-header-presence.md">CSRF con validación de Referer solo cuando está presente</a></td></tr><tr><td><a href="/es/web/csrf/csrf-token-not-tied-to-session.md">CSRF con token no vinculado a la sesión</a></td></tr><tr><td><a href="/es/web/csrf/csrf-token-tied-to-non-session-cookie.md">CSRF con token vinculado a una cookie pero no a la sesión</a></td></tr><tr><td><a href="/es/web/csrf/csrf-token-validation-depends-on-http-method.md">CSRF con validación de token basada en el método HTTP</a></td></tr><tr><td><a href="/es/web/csrf/samesite-lax-bypass-via-cookie-refresh.md">Evasión de SameSite Lax mediante actualización de cookies</a></td></tr><tr><td><a href="/es/web/csrf/samesite-lax-bypass-via-method-override.md">Evasión de SameSite Lax mediante anulación del método</a></td></tr><tr><td><a href="/es/web/csrf/samesite-strict-bypass-via-client-side-redirect.md">Evasión de SameSite Strict mediante redirección del lado del cliente</a></td></tr><tr><td><a href="/es/web/csrf/samesite-strict-bypass-via-sibling-domain.md">Evasión de SameSite Strict mediante dominio hermano</a></td></tr></tbody></table>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/es/web/csrf.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
