dbt-mcp — сервер Model Context Protocol для взаимодействия с dbt. До 1.20.0 локальный помощник OAuth в src/dbt_mcp/oauth/fastapi_app.py выставляет GET /dbt_platform_context без аутентификации или проверки Host после завершения пользователем потока dbt Platform OAuth. Конечная точка возвращает полные значения DbtPlatformContext, включая значения access_token и refresh_token, сохраненные контекстным менеджером, любому процессу, который может достичь 127.0.0.1:6785.
Отсутствие TrustedHostMiddleware позволяет удаленному злоумышленнику использовать DNS для повторной привязки к браузеру жертвы, потому что помощник принимает произвольные заголовки Host, в то время как совместно расположенный процесс может напрямую запрашивать конечную точку. Украденные токены обеспечивают немедленный доступ к DBT Platform API в качестве жертвы и постоянный доступ через токен обновления, позволяя доступ или изменение проектов, заданий, секретов окружающей среды и связанных данных учетной записи. Эта проблема исправлена в версии 1.20.0.
Показать оригинальное описание (EN)
dbt-mcp is a Model Context Protocol server for interacting with dbt. Prior to 1.20.0, the local OAuth helper in src/dbt_mcp/oauth/fastapi_app.py exposes GET /dbt_platform_context without authentication or Host validation after a user completes the dbt Platform OAuth flow. The endpoint returns the full DbtPlatformContext, including access_token and refresh_token values persisted by the context manager, to any process that can reach 127.0.0.1:6785. The absence of TrustedHostMiddleware allows a remote attacker to use DNS rebinding against a victim's browser because the helper accepts arbitrary Host headers, while a co-located process can request the endpoint directly. The stolen tokens provide immediate dbt Platform API access as the victim and persistent access through the refresh token, allowing access to or modification of projects, jobs, environment secrets, and related account data. This issue is fixed in version 1.20.0.
Характеристики атаки
Последствия
Строка CVSS v3.1