---
title: "Letting users block injected third-party DLLs in Firefox"
description: "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."
url: "https://swe.quest/articles/letting-users-block-injected-third-party-dlls-in-firefox-848938ef2741cba1"
canonical: "https://hacks.mozilla.org/2023/03/letting-users-block-injected-third-party-dlls-in-firefox/"
source: "Mozilla Hacks"
published: "2023-03-30"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 12
tags: ["browsers","security","operating-systems","c-cpp"]
---

# Letting users block injected third-party DLLs in Firefox

A post on [Mozilla Hacks](https://swe.quest/sources/mozilla-hacks.md), published 2023-03-30, 12 min read, Deep dive. Original: [https://hacks.mozilla.org/2023/03/letting-users-block-injected-third-party-dlls-in-firefox/](https://hacks.mozilla.org/2023/03/letting-users-block-injected-third-party-dlls-in-firefox/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Operating systems](https://swe.quest/tags/operating-systems.md) (Infrastructure)
- [C & C++](https://swe.quest/tags/c-cpp.md) (Languages)

## Prerequisites

- x86/x64 assembly
- Windows DLL loading
- function hooking concepts

## Keywords

Firefox, NtMapViewOfSection, DLL injection, Windows, trampoline, Control Flow Guard, about:third-party

## Related posts

- [Improved Process Isolation in Firefox 100](https://swe.quest/articles/improved-process-isolation-in-firefox-100-c5bc38aed6bfa0ee.md): Mozilla Hacks · 2022-05-12 · Hard · 9 min read · Sandboxing & isolation, Browsers, Security, Operating systems
  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.
- [VirtualBox Process Hardening on Windows 2026 Edition: What’s a Single Bit Between Friends?](https://swe.quest/articles/virtualbox-process-hardening-on-windows-2026-edition-what-s-a-single-bit-1069b5979c740309.md): Google Project Zero · 2026-11-23 · Hard · 13 min read · Vulnerability research, Sandboxing & isolation, .NET, Virtualization, Security
  The .NET Framework v4 loader falls back from an image-section mapping (SEC\_IMAGE) to a plain data mapping (FlatImageLayout) whenever NtCreateSection fails with STATUS\_INVALID\_IMAGE\_FORMAT, so assemblies can execute without passing image-based DLL verification.
- [Improving Firefox stability with this one weird trick](https://swe.quest/articles/improving-firefox-stability-with-this-one-weird-trick-6dcdeb9550eeb654.md): Mozilla Hacks · 2022-11-22 · Medium · 4 min read · Memory management, Operating systems, Browsers, Resilience
  Out-of-memory crashes on Windows are often caused by exhaustion of commit space rather than physical RAM, since Windows forbids overcommit and graphics drivers commit memory for texture backing that is rarely used.
- [WebAssembly and Back Again: Fine-Grained Sandboxing in Firefox 95](https://swe.quest/articles/webassembly-and-back-again-fine-grained-sandboxing-in-firefox-95-d23a4c9673130b46.md): Mozilla Hacks · 2021-12-06 · Medium · 4 min read · Sandboxing & isolation, WebAssembly, Browsers, Memory safety, Supply chain security
  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.
- [Exploiting vulnerabilities in Cellebrite UFED and Physical Analyzer from an app's perspective](https://swe.quest/articles/exploiting-vulnerabilities-in-cellebrite-ufed-and-physical-analyzer-from-an-app-3c77e1bc69516f8f.md): Signal · 2021-04-21 · Easy · 6 min read · Vulnerability research, Application security, Mobile, Security
  Cellebrite's UFED and Physical Analyzer, whose main job is parsing untrusted app data pulled from seized phones, lack standard exploit mitigations and bundle FFmpeg DLLs from 2012 that miss over a hundred security fixes.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
