The "Reveal" button in the Network tab doesn't reveal secrets

未关闭
#3,023 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
领域
devtools, security

调研方向

Start by tracing the Network tab's Reveal control for request and response bodies, then check where their data is redacted before display. Compare the displayed values with the redaction behavior of the underlying library; done means Reveal shows the original secrets, or the control and label no longer imply that redacted values are revealed. The issue names no source files or tests, so locate the relevant UI and coverage in the repository first.

由索引模型根据 Issue 内容生成。

描述

bug v2
Which version line?

v2 — current (@modelcontextprotocol/inspector@latest)

Which client?

Web

Inspector version

v2.16.0

Node version

v24.22.1

Operating system (and browser, for the web client)

Windows 11 Home 25H2, Firefox 160.0.1

Transport

SSE (legacy)

MCP server under inspection

Server: the default "example-server-default" https://example-server.modelcontextprotocol.io/mcp
Protocol era: legacy
OAuth is used

Steps to reproduce
  1. Run npx @modelcontextprotocol/inspector
  2. Connect to the "example-server-default" server
  3. Complete authorization process
  4. In the Network tab, open an request to https://example-server.modelcontextprotocol.io//token with the status 200
  5. Press the "Reveal" button in the right of the label "Secrets hidden" (both of one in "Request Body" section and one in "Response Body" section)
Expected behavior

The actual secrets (authorization code, code_verifier, access token, and refresh token) should be displayed as-is instead of the useless "REDACTED" strings after pressing the "Reveal" button and the label being changed to "Secrets revealed".

If this is technically difficult (for example, because the underlying library forcibly redacts secrets with no option), I think this useless switch and the lying label ("Secrets revealed" with no secrets revealed) should be removed.

Actual behavior

The label "Secrets hidden" changes to "Secrets revealed".
However, the secrets only changes from •••••••• to %5BREDACTED%5D or [REDACTED] instead of being revealed.

Logs, errors, or screenshots
Request Body, before pressing Reveal Request Body, after pressing Reveal Response Body, before pressing Reveal Response Body, after pressing Reveal
Already prototyped a fix?

No response

Before you submit
  • I searched existing issues and this is not a duplicate.
  • This is not a security vulnerability report (those go through the private advisory process).
主要语言
TypeScript
星标
11.3k
派生
1.6k
平均合并
2 小时 28 分钟
30 天内合并 PR
111

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

modelcontextprotocol/inspector 的其他 Issue

查看 modelcontextprotocol/inspector 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。