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

# Inscription par troncature SQL

## Troncature SQL :

Voici le **liste d'adresses e-mail** nous devrions essayer d'accéder à :

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

Dans le panneau d'inscription, si nous essayons de **insérer** une adresse e-mail, cela indique que l'utilisateur existe déjà :

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

Nous voyons dans le code HTML que la **base de données** limite le nombre de caractères à 13 :

<figure><img src="/files/722f8a9d31de2b97ca32661b4fda8cad3ca2ccbf" alt=""><figcaption></figcaption></figure>

Nous saisissons l'adresse e-mail avec des espaces et un caractère supplémentaire, en modifiant également le **maxlength** dans le code HTML à un nombre plus élevé pour nous permettre d'écrire :

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

Nous parvenons à **inscription** avec le nom d'utilisateur Jacob, car ce qui s'est passé, c'est que l'e-mail a été **tronqué**. C'est ce que nous entendons par troncature des espaces à la fin de la chaîne, c'est la suppression automatique de ces espaces.

<figure><img src="/files/77b4a5224bec6317f1228949e2ca2717403ca158" 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/fr/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.
