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

Aperta
#3,023 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
node.js, typescript
Ambito
devtools, security

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).
Lingua principale
TypeScript
Stelle
11.3k
Fork
1.6k
Merge medio
2h 28m
PR unite (30g)
111

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di modelcontextprotocol/inspector

Tutte le issue di modelcontextprotocol/inspector

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.