> 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/sql-truncation-attack/sql-truncation-registration-pentesting-web.md).

# Registro con truncamiento SQL

## Truncamiento SQL:

Aquí está el **lista de direcciones de correo electrónico** deberíamos intentar acceder a:

<figure><img src="/files/33a12c8fdd53b38df4350a1253cae03ba45fab30" alt=""><figcaption></figcaption></figure>

En el panel de registro, si intentamos **insertar** una dirección de correo electrónico, indica que el usuario ya existe:

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

Vemos en el código HTML que el **base de datos** limita el número de caracteres a 13:

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

Ingresamos la dirección de correo electrónico con espacios y un carácter adicional, modificando también el **maxlength** en el código HTML a un número mayor para permitirnos escribir:

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

Logramos **registro** con el nombre de usuario Jacob, porque lo que sucedió es que el correo electrónico ha sido **truncado**. Esto es lo que entendemos por truncamiento de espacios al final de la cadena: es la eliminación automática de estos espacios.

<figure><img src="/files/5bd6357507f5de7cbec6066c5687311f3905c279" 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/sql-truncation-attack/sql-truncation-registration-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.
