rufus/.mingw
Pete Batard 622e60659c
[dev] fix a side-loading vulnerability with cfgmgr32.dll
* Current Rufus and earlier versions (when compiled with MinGW) suffer from a side-loading vulnerability
  due to cfgmgr32.dll being attempted to be loaded from the same directory as the executable. This may
  result in someone being able to execute elevated malicious code if they already have gained user-level
  access to the platform and were able to drop an arbitrary cfgmgr32.dll in the same directory as rufus.
* While we were able to address similar vulnerabilities using delay-loading, this method does not appear
  to work for MinGW with this specific DLL, so we remove all the implicit CM_ function calls, that result
  in automated DLL loading that cannot be mitigated, to replace them with direct DLL hooks, which are
  not subject to Windows' default (vulnerable) DLL lookup behaviour. We still add the def for the delay
  loading in case we manage to find how to delay load cfgmgr32 with MinGW in the future...
* Fixes CVE-2025-26624 (https://github.com/pbatard/rufus/security/advisories/GHSA-p8p5-r296-g2jv).
* This vulnerability was discovered by @EmperialX working with @Shauryae1337 and reported by @EmperialX.
2025-02-19 11:58:10 +00:00
..
cfgmgr32.def [dev] fix a side-loading vulnerability with cfgmgr32.dll 2025-02-19 11:58:10 +00:00
dwmapi.def [core] drop direct hooking into dwmapi DLL and use delay-loading instead 2022-04-12 13:55:33 +01:00
Makefile.am [dev] fix a side-loading vulnerability with cfgmgr32.dll 2025-02-19 11:58:10 +00:00
Makefile.in [dev] fix a side-loading vulnerability with cfgmgr32.dll 2025-02-19 11:58:10 +00:00
version.def [uefi] don't revoke Windows 11 or post Windows 10 20H1 boot media yet 2023-07-15 23:20:59 +02:00
virtdisk.def [misc] reinstate delay-loading of wininet and virtdisk DLLs 2024-07-13 17:43:40 +01:00
wininet.def [misc] reinstate delay-loading of wininet and virtdisk DLLs 2024-07-13 17:43:40 +01:00
wintrust.def [mingw] use delay loading for DLLs that are subject to side loading 2022-04-12 11:09:59 +01:00