From 74a4260ecd6b6e6f40d48d4b181e34127487532b Mon Sep 17 00:00:00 2001 From: Moonchild Date: Wed, 25 Oct 2023 18:20:53 +0200 Subject: [PATCH] [XPCOM] Add several app/msi file types to the executables list (Win). This errs on the side of caution for what are installer packages, but people getting conned into thinking this is safe is a bit too common. They are akin in danger to .exe files in that respect as it installs software, and should be treated similarly, so, warn about the potential danger. --- xpcom/io/nsLocalFileWin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xpcom/io/nsLocalFileWin.cpp b/xpcom/io/nsLocalFileWin.cpp index 5210885dd9..8b063802ed 100644 --- a/xpcom/io/nsLocalFileWin.cpp +++ b/xpcom/io/nsLocalFileWin.cpp @@ -3020,6 +3020,8 @@ nsLocalFile::IsExecutable(bool* aResult) "air", // Adobe AIR installer "app", // executable application "application", // from bug 348763 + "appx", + "appxbundle", "asp", "bas", "bat", @@ -3062,6 +3064,8 @@ nsLocalFile::IsExecutable(bool* aResult) "msh", // Microsoft Shell "mshxml", // Microsoft Shell "msi", + "msix", + "msixbundle", "msp", "mst", "ops", // Office Profile Settings