DBHub — сервер баз данных MCP для Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite. В версиях, предшествующих 0.22.5, при запуске с документированным транспортным режимом HTTP отображается неаутентифицированная конечная точка HTTP MCP, например --transport http --port 8080. The HTTP server attempts to protect browser-origin access by checking whether the `Origin` hostname equals the `Host` hostname, then reflecting the validated `Origin` into `Access-Control-Allow-Origin`.
Это не останавливает DNS rebinding. После того, как имя хоста, контролируемое злоумышленником, повторно связывается с сервером DBHub HTTP, доступным для жертв, оба Origin и Host могут содержать имя хоста, контролируемое злоумышленником, поэтому DBHub принимает запрос и отправляет MCP вызовов инструментов. В результате вредоносный веб-сайт может детерминированно вызывать инструменты DBHub MCP из браузера жертвы без быстрой инъекции или участия модели.
С демо-конфигурацией по умолчанию это может читать и записывать демо-базу данных SQLite; с реальной настроенной базой данных тот же примитив может читать, перечислять и потенциально записывать содержимое базы данных в зависимости от настроенных разрешений инструмента DBHub и учетных данных базы данных. Версия 0.22.5 исправляет проблему.
Показать оригинальное описание (EN)
DBHub is a database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite. Versions prior to 0.22.5 expose an unauthenticated HTTP MCP endpoint when started with the documented HTTP transport mode, for example `--transport http --port 8080`. The HTTP server attempts to protect browser-origin access by checking whether the `Origin` hostname equals the `Host` hostname, then reflecting the validated `Origin` into `Access-Control-Allow-Origin`. This does not stop DNS rebinding. After an attacker-controlled hostname rebinds to a victim-accessible DBHub HTTP server, both `Origin` and `Host` can contain the attacker-controlled hostname, so DBHub accepts the request and dispatches MCP tool calls. As a result, a malicious website can deterministically invoke DBHub MCP tools from the victim's browser without prompt injection or model involvement. With the default demo configuration this can read and write the demo SQLite database; with a real configured database, the same primitive can read, enumerate, and potentially write database contents depending on DBHub's configured tool permissions and database credentials. Version 0.22.5 fixes the issue.
Характеристики атаки
Последствия
Строка CVSS v4.0