mssql-mcp-core - это общая библиотека, которая поддерживает серверы MSSQL MCP. Prior to core and server 0.6.0 and reader and writer 0.5.0, multiple database tools interpolate caller-controlled identifiers and predicates into T-SQL batches passed to Request.query() while parameterizing only data values. update_data, delete_data, insert_data, execute_transaction, create_table, create_index, and drop_table accept unsafe tableName, column, index, schema, or free-form whereClause input, while reader-tier list_databases interpolates stateFilter without runtime allowlist enforcement. Запросы Row-count и предварительного просмотра выполняются до того, как confirmUpdate или confirmDelete, позволяя вредоносным аргументам обходить проверки и элементы управления maxRows и выполнять стекированные DDL или DML, считывать или уничтожать данные и потенциально запускать команды операционной системы, когда логин SQL является привилегированным, а xp_cmdshell включен.
Эта проблема исправлена в базовой и серверной версии 0.6.0 и в версии для чтения и записи 0.5.0.
Показать оригинальное описание (EN)
mssql-mcp-core is the shared library that powers MSSQL MCP servers. Prior to core and server 0.6.0 and reader and writer 0.5.0, multiple database tools interpolate caller-controlled identifiers and predicates into T-SQL batches passed to Request.query() while parameterizing only data values. update_data, delete_data, insert_data, execute_transaction, create_table, create_index, and drop_table accept unsafe tableName, column, index, schema, or free-form whereClause input, while reader-tier list_databases interpolates stateFilter without runtime allowlist enforcement. Row-count and preview queries execute before confirmUpdate or confirmDelete, allowing malicious arguments to bypass confirmation and maxRows controls and execute stacked DDL or DML, read or destroy data, and potentially run operating-system commands when the SQL login is privileged and xp_cmdshell is enabled. This issue is fixed in core and server version 0.6.0 and reader and writer version 0.5.0.
Характеристики атаки
Последствия
Строка CVSS v3.1