> 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-vulnerabilities/session-puzzling-attack/session-puzzling-simple-jwt-pentesting-web.md).

# Rompecabezas de sesión con JWT simple

Empezamos en un **panel** de inicio de sesión:

<figure><img src="/files/6a8bfba0cd4ba9b1830ab8094ffee5392fe7bb6a" alt=""><figcaption></figcaption></figure>

Vemos la presencia de un **cookie de sesión** en JWT:

<figure><img src="/files/287b3797fc4bcaa95f050d55cffa12ff6939f4b3" alt=""><figcaption></figcaption></figure>

Traducimos en el sitio web: "[jwt.io](https://jwt.io/)" y decodificamos el token:

<figure><img src="/files/0fea3670e83d238960681af6eaa182726c0c49ba" alt=""><figcaption></figcaption></figure>

Ingresamos el nombre de usuario **admin** en el formulario de recuperación de contraseña:

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

Interceptamos la solicitud con Burp Suite y en la respuesta obtenemos lo mismo **cookie de sesión** sin ingresar credenciales:

<figure><img src="/files/9d99ee784f23953cb25a63d62c0b8c107831a997" 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-vulnerabilities/session-puzzling-attack/session-puzzling-simple-jwt-pentesting-web.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.
