Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Mozilla Hacks 9 min read Case study hardMaster

Improved Process Isolation in Firefox 100

Firefox 100 enables Win32k Lockdown on Windows, using PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY to block web content processes from calling the historically exploitable win32k.sys kernel APIs. Getting there meant moving every graphics and widget operation out of the content process. Painting moved to WebRender in the GPU process, Canvas 2D is recorded and replayed over IPC, and WebGL gained a validating child/parent API. Form controls are now drawn by Firefox itself instead of as native widgets, complex-script line breaking is forwarded over IPC with caching, and a fix stops injected third-party DLLs from breaking COM. Skipping those DLLs also made opening new tabs about 15% faster, and equivalent lockdowns of WindowServer on macOS and X11 on Linux sped process startup by 30-70% on Mac.

Assumes: browser multi-process architectureWindows system callsIPC basics

Related posts

  • Letting users block injected third-party DLLs in Firefox

    Mozilla Hacks hardMaster

    Firefox 110 lets Windows users block specific injected third-party DLLs from the about:third-party page, which also flags DLLs linked to past crashes. Telemetry shows over 70% of Windows users have such DLLs loaded and just over 2% of Windows crash reports land in third-party code. Blocking works because a launcher process starts the browser suspended and passes the blocklist through a file mapping handle written with WriteProcessMemory(). A homegrown hooker intercepts NtMapViewOfSection() using either a 5-byte hot-patch on x86 or a 13-byte r11 jump plus trampoline on x64, with complications around relative jumps, Control Flow Guard, unwind info and Import Address Table injection.

  • Introducing Firefox’s new Site Isolation Security Architecture

    Mozilla Hacks easyNovice

    Firefox's Site Isolation (Project Fission) loads each site, including cross-site subframes, into its own operating system process, so Spectre-like attacks can no longer read another site's memory within a shared process. Sites are distinguished by scheme plus eTLD+1 using the Public Suffix list, which replaces the previous fixed pool of eight content processes where unrelated sites could share memory. Side benefits include better responsiveness when one page runs heavy GC or computation, use of more CPU cores, and crash containment. It can be enabled via the experimental preferences in Nightly or the fission.autostart pref in Beta, and process grouping can be inspected at about:processes.

  • A Deep Dive into the GetProcessHandleFromHwnd API

    Google Project Zero hardMaster

    GetProcessHandleFromHwnd has changed substantially since Vista. It started as a user-mode windows hook in oleacc.dll that duplicated a limited process handle back to the caller. In Windows 10 1803 it became the Win32k kernel call NtUserGetWindowProcessHandle, which opened processes with KernelMode access and so skipped access checks entirely. That let UI Access holders, and any caller at equal or higher integrity, open sandboxed or protected processes that own a window (CVE-2023-41772). The partial fix and the Windows 11 24H2 changes (process protection in UIPI checks, a UIPIAlwaysOn feature flag, and a ResponsiblePid path requiring UI Access) close some gaps but leave quirks such as PPL App processes being able to open one another.

  • WebAssembly and Back Again: Fine-Grained Sandboxing in Firefox 95

    Mozilla Hacks mediumAdept

    Firefox 95 ships RLBox, a fine-grained sandboxing technique that compiles third-party C/C++ libraries (Graphite, Hunspell, Ogg, with Expat and Woff2 following in 96) to WebAssembly and then back to native code, so untrusted code runs in-process but cannot jump to unexpected code or touch memory outside its region. This avoids the asynchrony refactoring and memory overhead of process-based isolation, needing only sanitization of values crossing the boundary via RLBox's tainting layer. The production pipeline replaced the Cranelift prototype with wasm2c, translating wasm to C and feeding it back into Clang, which preserves PGO, cross-boundary inlining, crash reporting and debugger support. Mozilla now pays bug bounties for sandbox escapes even without a library vulnerability.

  • New WebKit Features in Safari 15.2

    WebKit easyNovice

    Safari 15.2 expands WebAssembly addressable memory to 4GB and adds zero-cost exception handling for Wasm. It supports Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy headers, so sites serving COOP same-origin and COEP require-corp get process isolation and can use SharedArrayBuffer and Wasm threading again after the Spectre-era disablement. Canvas also gains wide gamut color support, including Display P3.

The quest for software engineering knowledge.

Look:
Layout: