Skip to content

Browse TLS trust follow-ups from #3403: OS root distrust, component updates, CRLSet timing, CT, cookie-import warning #3440

Open

Description

@capy-ai

Follow-up to #3338 / #3403. gstack's own /ship adversarial review on #3403 (the BROWSER.md TLS trust doc) raised these investigate-level questions. They were kept out of #3403 by GStack Minder's call, so the doc PR could converge on claims it can already back.

  1. OS root store trust and distrust. Does the bundled Playwright Chromium also trust roots installed in the OS or NSS store, and does it honor a local distrust? If it does, distrusting emSign ECC Root CA - G3 locally is an interim mitigation available today, and the doc should also say that enterprise or locally added roots are trusted. This needs checking per platform (Linux NSS, macOS keychain, Windows).
  2. Component updater root removal. Headed mode, handoff and BROWSE_EXTENSIONS_DIR launches drop --disable-component-update. After Chrome's 2026-10-27 root removal they may stop trusting the root without a Playwright bump. Should the default headless launch use the same ignoreDefaultArgs so it gets CRLSet and root-store updates too? This is a one-line change in browse/src/browser-manager.ts. Two things to test first: whether an unbranded Playwright Chromium actually consumes those components, and how the change interacts with the headless fingerprint.
  3. Warm-profile CRLSet timing. BROWSER.md says headed mode and handoff got CRLSets "about a minute after each launch in testing on Linux". With a persistent profile, Chromium should load an already-downloaded CRLSet at startup. Retest with a warm profile and narrow the claim if that holds.
  4. Certificate Transparency. Verify that the bundled build does not enforce CT. If some build does enforce it, ERR_CERTIFICATE_TRANSPARENCY_REQUIRED on the test host means that build is protected, and the check's wording should say so.
  5. Where the warning shows up. setup-browser-cookies/SKILL.md (the flow where credentials actually move) does not mention the gap, and cookie-import-browser prints nothing at runtime. browse: bundled Chromium still trusts the compromised eMudhra intermediates (no CRLSet in the gstack profile) #3338 suggested warning on, or refusing, cookie import while the check fails. Changing the skill changes the paid cookie-workflow judge input.

Related: #3338, #3403.

Activity

  1. capy-ai commented on Oct 26, 2026

    @capy-ai
    ContributorAuthor

    Two more investigate items from /ship's adversarial review of #3403 (invocation 3). Neither is a defect in what the doc claims.

    1. BROWSE_EXTENSIONS_DIR CRLSet behaviour is untested. The code backs it: that path runs full Chromium in --headless=new with a persistent profile and STEALTH_IGNORE_DEFAULT_ARGS, which drops --disable-component-update (browser-manager.ts:686-697, stealth.ts:567). But only headed mode was measured. Test it, or word the doc as "with headed mode's component-update defaults".
    2. Paired agents can also plant sessions with eval. Over the pair-agent tunnel, eval can write cookies and storage (TUNNEL_COMMANDS, browse/src/routes/commands.ts:22-30). The doc names only "a paired agent using fill/type", in a list introduced with "including".
  2. capy-ai commented on Oct 26, 2026

    @capy-ai
    ContributorAuthor

    More from /ship's adversarial review of #3403 (invocation 3, round 2):

    1. Proxy variables reach Chromium even when gstack resolves to direct (product bug, security-relevant). BROWSE_PROXY_URL=direct only stops gstack configuring a proxy. The daemon inherits the whole environment (cli.ts:782), and launch() passes no env and no --no-proxy-server, so Chromium reads HTTPS_PROXY/https_proxy/ALL_PROXY itself. Reproduced on Linux with Playwright 1.62.1's headless shell: with HTTPS_PROXY=http://127.0.0.1:9, https://example.com/ fails with net::ERR_PROXY_CONNECTION_FAILED and no gstack proxy is set. This makes BROWSER.md:969 ("BROWSE_PROXY_URL=direct turns off steps 3-5") and the :984-990 "connects directly" bullet false. Fix: pass --no-proxy-server, or drop those variables from the Chromium child's environment, whenever gstack resolves to direct. v1.91.239.0 docs(browse): warn that the bundled Chromium still trusts the compromised eMudhra intermediates (#3338) #3403 now tells users to unset the variables for the check.
    2. What the check prints. $B goto prints only Navigated to <url> (200); the "That's bad!" text needs $B text. The doc also doesn't say what a 200 without that text means (for example a retired or re-issued test host).
    3. Headed sign-in is missing from the credential list. $B connect, --headed and GStack Browser aren't named, and only the handoff row links to the section.
  3. capy-ai commented on Oct 26, 2026

    @capy-ai
    ContributorAuthor

    From /ship's adversarial review of #3403 (invocation 3, round 3):

    1. The check can't show the served chain. It tells a fixed build from an unfixed one only by the error code, and $B has no way to show the certificate chain the browser was served. A control host, or a command that prints the served chain, would rule out selective TLS interception of the test host, which today can make the check read "fixed". v1.91.239.0 docs(browse): warn that the bundled Chromium still trusts the compromised eMudhra intermediates (#3338) #3403 tells users to run the check on a network that does not inspect TLS.
    2. Name the Chrome for Testing threshold as a headless stopgap. BROWSER.md says a current Chrome via GSTACK_CHROMIUM_PATH "only helps if that build itself drops the root". Naming 158.0.8115.0 (the first Chrome for Testing build measured to refuse the test host) would make that a usable stopgap for headless. It still wouldn't cover handoff.
  4. capy-ai commented on Oct 26, 2026

    @capy-ai
    ContributorAuthor

    From /ship's adversarial review of #3403 (invocation 4, trimmed doc, no claim defects found):

    1. The check tests only the emSign-rooted chain. The test site also serves the same intermediate cross-signed by Sectigo's AAA Certificate Services (dv-g3b-aaa-emudhra), plus no-CT variants. Every build measured (151, 156, 157, 158.0.8115.0 and 158.0.8117.2 headless, Linux) already refuses the AAA chain with ERR_CERT_AUTHORITY_INVALID, so this matters only where AAA is trusted from another source (see item 1). The check could add the AAA host.
    2. The check is not differential. A test-host misconfiguration (for example a dropped intermediate with AIA fetch failing) would also give ERR_CERT_AUTHORITY_INVALID on an unfixed build. Hardening would compare against a known-bad build (151 still loads the host).
    3. Stale manual-review record (not caused by v1.91.239.0 docs(browse): warn that the bundled Chromium still trusts the compromised eMudhra intermediates (#3338) #3403). .github/cookie-workflow-manual-review.json records prompt SHA 7f7f76f4… (10,159 bytes), while the current cookie-workflow judge prompt is c851e635… (12,805 bytes) at both main e66c43c and v1.91.239.0 docs(browse): warn that the bundled Chromium still trusts the compromised eMudhra intermediates (#3338) #3403's head.
  5. capy-ai commented on Oct 26, 2026

    @capy-ai
    ContributorAuthor

    Item 8 fix: #3448. Reproduced as described (CONNECT reached the HTTPS_PROXY proxy with BROWSE_PROXY_URL=direct). The fix launches Chromium with --proxy-server=direct:// on every launch path when no proxy is configured. Note for anyone repeating this: --no-proxy-server is not enough, chrome-headless-shell (the default headless build) ignores it and still takes HTTPS_PROXY; the full Chromium honors both switches, and direct:// works on both. The daemon log now records the effective proxy mode on launch, and BROWSER.md's Proxy from environment section says what Chromium actually gets. Test: browse/test/proxy-direct-launch.test.ts (direct with HTTPS_PROXY set sees no CONNECT; two controls where a configured proxy is used).

  6. added
    S3
    on Oct 31, 2026
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

    S3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions