Repository navigation
fix(browser): harden engine extensions, session tab isolation, root hygiene, and emulation bounds - #245
Merged
Conversation
…ygiene, and emulation bounds - Pass `--disable-extensions` in `apps/browser-engine/src/engine.rs` so CEF's Chrome bootstrap never scans host OS extension registries (`external_registry_loader_win.cc`) on startup. - Enforce per-session `BrowserTab` ownership across all `Browser:*` and `BrowserTab:*` host bindings via `apps/desktop/src/plugin_host/native/browser/scope.rs` (`review-browser-policy.md` §4, `for-dax.md` §0): MCP tool coroutines and third-party plugins cannot read, mutate, inspect, resize, navigate, or close another session's tabs. - Reject overly broad workspace roots (`/`, Windows drive roots, UNC share roots, the user's home directory, and top-level system directories) in both `crates/browser-policy` (`is_safe_workspace_root`) and `apps/browser-engine`, and give tabs without an owning session empty `file_roots` (`review-browser-policy.md` §5). - Bound `width`/`height` (`1..=4096`) and finite `scale` (`0.25..=4.0`) inside `apps/browser-engine/src/engine/emulation.rs`, and re-send active `HostMsg::Emulate` state on engine reconnect (`EngineMsg::Ready`) and pending tab flush (`for-dax.md` §0).
|
PR test build retired — merged into |
Hona
added a commit
that referenced
this pull request
Nov 20, 2026
…18..UP-122 (#295) - Fold verified fleet PRs #278, #285, #287, #288, #289, #290, #291, and #293 (Rune dc8f7f72: #1301, #1302 focus rescue verified Send+Enter -> effort) into docs/upstream-sync/ledger.{json,md} - Close UP-062 packaged-default regression (#278), UP-095-UI / UP-100 / UP-106 / UP-109 / UP-117 (#285, #289), and PRE-08 (#287); reassign UP-115, UP-116, UP-075 to BROWSER-UI - Add separate Reviewed column for browser rows tracking retrospective security reviews on merged PRs (#245, #268, #272, #277, #288, #275, #287, #285, #289) and pre-merge holds (#274, #280, #281, #283, #286, #292, #294, and BROWSER-TOOLS PR 3+) - Audit upstream anomalyco/opencode bfee96a859..2002222d13 (+6 commits: 1 skipped, 5 added: UP-118..UP-122) and refine radar routing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes core Phase 1 security hardening items from
notes/review-browser-policy.md,notes/for-dax.md§0, and our Phase 0 CEF 156 empirical spike.Changes
apps/browser-engine/src/engine.rs): Pass--disable-extensionsso CEF's Chrome bootstrap never scans host OS extension registries (external_registry_loader_win.cc) on startup.BrowserTabisolation (apps/desktop/src/plugin_host/native/browser/scope.rs,browser.rs,viewport.rs): EnforceTabScopeacross everyBrowser:*(Tabs,Get,List,Active,Selected,Focused,NormalizeUrl,OpenAsync) andBrowserTab:*(Url,Title,Loading,Files,Viewport,SetViewport,Navigate,Back,Forward,Reload,Stop,SetZoom,Inspect,Highlight,Show,Close,DevtoolsAsync,SiteCookiesAsync,ClearSiteAsync,ReadFileAsync) host binding so MCP tool coroutines and third-party plugins cannot read or mutate another session's tabs.crates/browser-policy/src/lib.rs,apps/browser-engine/src/{engine,profile}.rs,apps/desktop/src/surfaces/browser/mod.rs): Refuse/, Windows drive roots (C:\), UNC share roots (\\server\share), the user's home directory, and top-level home system folders (Desktop,Documents,Downloads,AppData,AppData/Local,AppData/Roaming,Library) asfile_roots, and give tabs with no owning session emptyfile_roots.apps/browser-engine/src/engine/emulation.rs,crates/browser-pane/src/client.rs): Clampwidth/height(1..=4096) and finitescale(0.25..=4.0) inside the engine, and re-send activeHostMsg::EmulateonEngineMsg::Readyand pending tab flush.Verification
0registry extension scans (stderr: ""), broad roots (C:\,%USERPROFILE%,%USERPROFILE%\Desktop) &COM¹refused, narrow workspace allowed, out-of-rangeEmulateclamped cleanly (1x4096 @ 0.25).pwsh scripts/guardrails.ps1: 5/5 passed.cargo check --workspace(farm): passed.pwsh scripts/web.ps1 -Check(farm): passed.cargo build --locked --manifest-path apps/browser-engine/Cargo.toml --bins(farm): passed.