MikroORM — TypeScript ORM for Node.js на основе Data Mapper, Unit шаблонов Work и Identity Map. До 6.6.16 и 7.1.7 общий слой SQL проверяет ключ поля предложения orderBy, но не проверяет его значение направления, прежде чем AbstractSqlPlatform.getOrderByExpression объединяет его в предложение ORDER BY. Приложения, которые связывают контролируемые злоумышленником данные запроса с направлением в em.find(), em.findOne(), em.findAndCount(), QueryBuilder.orderBy(), или QueryBuilderHelper.getQueryOrderFromObject(), могут разрешить исходный фрагмент SQL, который выполняет слепое или логическое извлечение данных, доступных для учетной записи базы данных.
Проходные пути BaseMySqlPlatform и MsSqlPlatform имеют одинаковое поведение, влияя на драйверы SQLite, PostgreSQL, MySQL, MariaDB, MSSQL, libSQL и Oracle, в то время как MongoDB не затронут. Эта проблема исправлена в версиях 6.6.16 и 7.1.7.
Показать оригинальное описание (EN)
MikroORM is a TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Prior to 6.6.16 and 7.1.7, the shared SQL layer validates the field key of an orderBy clause but does not validate its direction value before AbstractSqlPlatform.getOrderByExpression concatenates it into an ORDER BY clause. Applications that bind attacker-controlled request data to the direction in em.find(), em.findOne(), em.findAndCount(), QueryBuilder.orderBy(), or QueryBuilderHelper.getQueryOrderFromObject() can permit a raw SQL fragment that performs blind or boolean extraction of data available to the database account. The BaseMySqlPlatform and MsSqlPlatform fallthrough paths have the same behavior, affecting SQLite, PostgreSQL, MySQL, MariaDB, MSSQL, libSQL, and Oracle drivers, while MongoDB is not affected. This issue is fixed in versions 6.6.16 and 7.1.7.
Характеристики атаки
Последствия
Строка CVSS v3.1