Registry Mirror
Skip to content

Preview tools return session credentials in network entry URLs (redact sid, token, code…) #32057

Open

Description

@colsenmangeris

Version: t3 v0.1.6-nightly.20261031.3956 (Linux server browser, headless preview tab)

What happens

preview_snapshot returns networkEntries with full request URLs. When a page signs in through a redirect that carries a session credential in the query string, that credential is returned to the agent unredacted.

Observed with Salesforce: after a normal sign-in, Salesforce's own frontdoor.jsp step requests https://<org>.file.force.com/secur/contentDoor?...&sid=<full session id>.... That URL appears verbatim in preview_snapshot.networkEntries, so the live session ID lands in the model context, the transcript and any logs. The same pattern exists for OAuth (code=, access_token= in fragments), magic links and one-time URLs (otp=, token=).

Steps

  1. Open a preview tab and sign in to any site whose sign-in hop puts a session value in a URL (Salesforce frontdoor.jsp is a reliable example).
  2. Navigate to a small page so the network list is not truncated.
  3. Call preview_snapshot and read networkEntries.

Expected

Credential-shaped query and fragment parameters are redacted before any preview tool returns a URL to the agent, for example sid, session, otp, code, token, access_token, id_token, refresh_token, password, secret, key, signature, X-Amz-Signature. A value like sid=[redacted] keeps the entry useful.

Request

  1. Redact those parameters in networkEntries (and, please check, in navigation results, preview_wait_for URL matches and action timelines, which also echo URLs).
  2. Optionally, a preview_snapshot option to leave out network entries entirely.

Until then we tell agents not to call preview_snapshot on signed-in tabs of such sites, which also blocks screenshots there.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions