gecko-dev/mozglue
Yannis Juglaret 523986cd8b Bug 1841751 - Block instances of a malicious injected DLL causing startup crashes. r=gstoll, a=dmeehan
With bug 1832467 we have updated our Windows SDK version to 10.0.19041.
As a result, we now have a .retplne section in xul.dll, starting with
Firefox 115. This is a section with PAGE_NOACCESS protection, so
accessing it crashes the process.

Some injected DLLs read the whole memory space dedicated to the xul.dll
image to search for patterns in it. When they hit the .retplne section,
we will crash. This happened for a legit product in bug 1837242, but
also for a malicious DLL in bug 1841751. This is a startup crash.

This changeset blocks the variants of this malicious DLL we know, to
eliminate the associated startup crash spike. Because the DLL does not
use a fixed name, we block by matching on the combination of version
number + timestamp + image size, based on the values found in crash
reports. We additionnally check for a checksum of 0 and the absence of
debug information, both of which are uncommon for legit production-ready
DLLs; this thus helps further reduce the chances of collision.

Differential Revision: https://phabricator.services.mozilla.com/D183096
2023-07-10 13:59:16 +00:00
..
android Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium 2023-02-13 15:02:07 +00:00
baseprofiler Bug 1842368 - Force loading modules as image files for untrusted modules ping. r=gstoll, a=dmeehan 2023-07-08 15:09:02 +00:00
build Bug 1821963 part 2: Remove COM registration supporting the old accessibility architecture based on content process COM proxies. r=nlapre,bobowen 2023-05-22 20:19:45 +00:00
interposers Bug 1835231 - Use dlopen() wrapper for Android <= 22 r=gsvelto 2023-06-02 15:13:04 +00:00
linker Bug 1824518 - Make mozglue/linker/tests buildable outside of a unified build environment r=andi 2023-03-30 13:48:34 +00:00
misc Bug 1841751 - Block instances of a malicious injected DLL causing startup crashes. r=gstoll, a=dmeehan 2023-07-10 13:59:16 +00:00
static Bug 1832129 - Disable new alloc error panic code. r=emilio 2023-05-09 21:51:01 +00:00
tests Bug 1806947 - Skip TestStackWalk on TSAN. r=decoder DONTBUILD 2023-04-24 12:46:39 +00:00
moz.build Bug 1836478 - Disable mozglue interposers for snapshot fuzzing. r=gsvelto 2023-06-02 16:17:14 +00:00