# Description

Типы инъекций

* Классическая - видим результат
* boolean-based - видим реакцию
* error-based - видим ошибку
* time-based - по времени запроса
* out-of-band - вывод по стороннему каналу (в файл, например)

По использованию значений

* First order — подстановка данных в уязвимый запрос из ввода пользователя
* Second order — подстановка данных из ранее сохраненной информации

## Mitigation

* Использовать параметризованные запросы (prepared statements)
* Использовать разрешенный список имен для таблиц и подобных данных (если подразумевается, что на это может влиять пользователь)
*


---

# Agent Instructions: 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:

```
GET https://appsecurity.gitbook.io/offensive/appsec/appsec/server-side-vulns/sqli/description.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
