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

Offen
#3,023 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
58/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
node.js, typescript
Bereich
devtools, security

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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).
Vorherrschende Sprache
TypeScript
Sterne
11.3k
Forks
1.6k
Ø Merge
2 Std. 28 Min.
Gemergte PRs (30 T.)
111

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus modelcontextprotocol/inspector

Alle Issues in modelcontextprotocol/inspector

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.