Snapshots for IPC Fuzzing

Christian Holler · 2024年6月27日

AI 摘要 AI 生成,可能有误

Mozilla 使用 Nyx 为 Firefox 的进程间通信(IPC)接口部署了基于快照的模糊测试。Nyx 是一款与研究社区共同开发的开源工具,能够在测试过程中回滚应用程序状态。快照模糊测试解决了长期存在的难题:IPC 接口无法单独进行测试,而且浏览器重启会带来难以承受的延迟。自 2024 年起,该技术已在生产环境中运行。这种方法已经帮助 Mozilla 发现并修复了 Firefox IPC 层中的潜在问题,增强了对沙箱逃逸攻击的防护。

Process separation is one of the cornerstones of the Firefox security model. Instead of running Firefox as a single process, multiple processes with different privileges communicate with each other via Inter-Process Communication (IPC). For example: loading a website, processing its resources, and rendering it is done by an isolated Content Process with a very restrictive sandbox, whereas critical operations such as file system access are only allowed to be executed in the Parent Process.

By running potentially harmful code with lower privileges, the impact of a potential code execution vulnerability is mitigated. In order to gain full control, the attacker now needs to find a second vulnerability that allows bypassing these privilege restrictions – which is colloquially known as a “sandbox escape”.

In order to achieve a sandbox escape, an attacker essentially has two options: The first one is to directly attack the underlying operating system from within the compromised content process. Since every process needs to interact with the operating system for various tasks, an attacker can focus on finding bugs in these interfaces to elevate privileges.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Mozilla Hacks

Intent to Ship: JPEG XL

AI 摘要Mozilla has announced its intent to ship JPEG XL support in Firefox, based on jxl-rs, a safe and compact Rust decoder built by Google Research after concerns about the attack surface of the original 100,000-line C++ implementation. Firefox's implementation includes progressive rendering, which lets images display as they download, a feature Safari's earlier version lacked. The article also compares JPEG XL with AVIF, noting that AVIF tends to produce smaller files at web quality, while JPEG XL excels at lossless imagery and recompressing existing JPEGs, so developers should choose based on their use case.

PACT: Anonymous Credentials for the Web

AI 摘要The article describes how websites' anti-bot defenses are increasingly failing, as browser privacy protections erase passive signals and generative AI renders CAPTCHAs ineffective, forcing users into a dilemma between privacy and access. It critiques device-attestation solutions like Google's Web Environment Integrity and Apple's Private Access Tokens for concentrating control in hardware manufacturers and threatening the open web's openness. As an alternative, Mozilla proposes a system of anonymous credentials built on Privacy Pass-style cryptography, where sites can rate-limit users anchored to scarce resources (such as email addresses or VPN subscriptions) without learning their identities, while open challenges like issuer blinding and issuer trust evaluation remain to be solved.

Announcing Web Serial Support in Firefox

AI 摘要Firefox 151 for Desktop now supports the Web Serial API, enabling web applications to communicate directly with serial-connected hardware such as microcontrollers, development boards, 3D printers, and power meters without native software. Mozilla collaborated with Adafruit to test the implementation against real hardware workflows, and security is handled through explicit per-site, per-port user permission prompts. Mozilla is also pursuing standardization of the API through the WHATWG.

Behind the Scenes Hardening Firefox with Claude Mythos Preview

AI 摘要Mozilla explains how it used Claude Mythos Preview and other AI models, driven by an agentic harness built atop its fuzzing infrastructure, to find and fix an unprecedented number of latent security bugs in Firefox, including sandbox escapes and bugs dating back 15-20 years, with 271 fixes shipped in Firefox 150. The team scaled the effort by parallelizing bug-hunting jobs across ephemeral VMs and integrating discovery into its full security bug lifecycle of deduplication, triage, and shipping fixes, noting that better models and harnessing techniques transformed AI bug reports from low-value noise into high-signal findings. Mozilla has published a sample of the bug reports, recommends that other software projects begin using these AI-assisted hardening techniques now, and plans to integrate this analysis into continuous integration to scan patches as they land.

Trustworthy JavaScript for the Open Web

AI 摘要Mozilla introduces WAICT (Web Application Integrity, Consistency and Transparency), a mechanism that cryptographically binds client-side web code to manifests committed to publicly auditable logs, protecting applications—even end-to-end encrypted ones—against malicious or compromised servers serving modified code. Sites can opt in to enforcement so browsers reject any code that has not been publicly logged, making attacks observable and attributable. An early prototype is available in Firefox Nightly and can be tested at waict.dev, with Mozilla collaborating with partners like Cloudflare, the Freedom of the Press Foundation, and Meta while developing the specifications openly.