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

# Registro de truncamento de SQL

## Truncamento de SQL:

Aqui está o **lista de endereços de e-mail** devemos tentar acessar:

<figure><img src="/files/0120622dc4561e8c346a74c0074350f962de91b5" alt=""><figcaption></figcaption></figure>

No painel de cadastro, se tentarmos **inserir** um endereço de e-mail, isso indica que o usuário já existe:

<figure><img src="/files/3364f0d34e67ce543e183b16a2d68c5ab60e7452" alt=""><figcaption></figcaption></figure>

Vemos no código HTML que o **banco de dados** limita o número de caracteres para 13:

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

Inserimos o endereço de e-mail com espaços e um caractere adicional, modificando também o **maxlength** no código HTML para um número maior para nos permitir escrever:

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

Conseguimos **registro** com o nome de usuário Jacob, porque o que aconteceu é que o e-mail foi **truncado**. Isso é o que entendemos por truncamento de espaços no final da string, é a exclusão automática desses espaços.

<figure><img src="/files/20251524dd3973e2a4a5501943542fc97aaefa3a" 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/pt-br/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.
