D365 F&O MCP Serverで認証なしにX++ソースや設定情報が漏えいする
Summary
D365 F&O MCP Serverの Azure ワンクリックデプロイでは、APIキーが空のまま公開されると認証なしで検索や参照のツールを呼び出せ、独自のX++ソースコードやメタデータが外部から閲覧される可能性があります。対象はバージョン1.11.0より前の版です。修正版の1.11.0への更新を行い、APIキーの設定やネットワーク制限を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
D365 F&O MCP Serverの Azure ワンクリックデプロイでは、APIキーが空のまま公開されると認証なしで検索や参照のツールを呼び出せ、独自のX++ソースコードやメタデータが外部から閲覧される可能性があります。対象はバージョン1.11.0より前の版です。修正版の1.11.0への更新を行い、APIキーの設定やネットワーク制限を確認してください。
Original description The description as published by the source.
D365 F&O MCP Server is a Model Context Protocol server for querying Dynamics 365 Finance & Operations X++ code and metadata. Prior to version 1.11.0, the officially documented Azure one-click deployment uses infrastructure/azuredeploy.json and infrastructure/main.bicep to default the apiKey parameter to an empty string and pass it to the App Service API_KEY setting. With API_KEY unset or empty, src/middleware/apiKeyAuth.ts passes requests through without authentication, while src/index.ts binds the HTTP listener to 0.0.0.0 by default. If the deployer leaves the optional key blank and does not add separate network restrictions or upstream authentication, the resulting public App Service allows unauthenticated JSON-RPC tools/call requests to /mcp. The deployment's MCP_SERVER_MODE=read-only setting does not prevent anonymous access to read/search tools, including search, get_object_info, batch_get_info, extension_info, security_info, find_references, and find_event_handlers, exposing indexed proprietary X++ source snippets and metadata. Exposed information can include business logic, extension and event-handler wiring, security-role and privilege structure, and labels originally indexed from PackagesLocalDirectory. Deployments protected by a configured API key, effective upstream authentication, or network restrictions preventing attacker access are outside this unauthenticated exposure scenario. This issue is fixed in version 1.11.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- web github.com