TUI Info tab prints configured credentials (auth headers, URL tokens) in plain text

オープン 初心者向け
#3,131 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
80/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript
領域
cli, security

調査の方向性

clients/tui/src/components/InfoTab.tsx と core/mcp/sensitiveNames.ts の機密名ルールから始め、Network タブがヘッダーと URL クエリパラメーターをどのように伏せ字にするかを比較します。Info タブを更新し、これらのルールに従って認証情報の値をマスクしたうえで、設定された URL とヘッダーにマスク済みの値が表示されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

bug v2

Found during the v2.18.0 release smoke (#3127). Pre-existing, not caused by a 2.18.0 change.

Problem

The TUI's Info tab, under "Server Configuration", prints the configured server URL and headers verbatim, credentials included:

URL: …/mcp?access_token=SECRETQ999&tenant=acme
Headers: Authorization=Bearer SECRETAUTH123, X-Auth-Token=SECRETXAT456, Ocp-Apim-Subscription-Key=SECRETOCP789, DPoP=SECRETDPOP000, …

Each secret reached the terminal stream 7 times in one session. It is rendered by clients/tui/src/components/InfoTab.tsx (since 373f346e5).

That contradicts the rule PR #3078 (#3077) set for the TUI: the TUI has no Reveal control, so it shows redacted copies. Its Network tab now does, showing authorization: [REDACTED], access_token=%5BREDACTED%5D and so on, while the Info tab shows the same values in plain text. A screen share or a terminal recording exposes them.

Repro

  1. Run --tui --config with a streamable-HTTP entry whose URL carries ?access_token=… and whose headers include Authorization, X-Auth-Token and Ocp-Apim-Subscription-Key.
  2. Connect, then open the Info tab.

Expected

The Info tab masks sensitive header values and credential-like query parameters, using the same sensitive-name rules (core/mcp/sensitiveNames.ts) as the Network tab.

主要言語
TypeScript
スター
11.4k
フォーク
1.6k
平均マージ
2時間 27分
マージ済み PR(30日)
121

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

modelcontextprotocol/inspector のほかの issue

modelcontextprotocol/inspector の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。