Skip to content

GHSA-259p-rvjx-ffwg Panel::Software Customized WiX .be TEMP folder is vulnerable to DLL redirection attacks that allow the attacker to escalate privileges

HighCVSS 8.2
Published
Updated
Exploit status
No public exploit known

Description

Summary

.be TEMP folder is vulnerable to DLL redirection attacks that allow the attacker to escalate privileges.

Details

If the bundle is not run as admin, the user's TEMP folder is used and not the system TEMP folder. A utility is able to monitor the user's TEMP folder for changes and drop its own DLL into the .be/.Local folder immediately when the .be folder is created. When the burn engine elevates, the malicious DLL receives elevated privileges.

PoC

As a standard, non-admin user:

  1. Monitor the user's TEMP folder for changes using ReadDirectoryChangesW
  2. On FILE_ACTION_ADDED, check if the folder name is .be
  3. Create a folder in .be named after the bundle + .Local (e.g. MyInstaller.exe.Local)
  4. Put the malicious COMCTL32.DLL in the .Local folder following the naming used for the real DLL (e.g. MyInstaller.exe.Local/x86_microsoft.windows.common-controls_.../COMCTL32.dll)
  5. Do hacker things when the engine escalates and the malicious DLL is loaded

Proper naming for the path can be obtained by using GetModuleHandle("comctl32.dll") and GetModuleFileName.

Impact

DLL redirection utilizing .exe.Local Windows capability. This impacts any installer built with the WiX installer framework.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
nuget PanelSW.Custom.WiX(NuGet) < 3.15.0-a44; = 3.12.0-b45; = 3.12.0-b48; = 3.12.0-b53 +58 more 3.15.0-a44 Fixed

Affected products

ProductAffected versionsFixed in
nuget PanelSW.Custom.WiX(NuGet) < 3.15.0-a44 3.15.0-a44
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b100 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b45 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b48 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b53 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b57 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b59 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b60 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b69 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b82 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b83 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b84 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b85 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b86 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b88 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b89 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b91 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b92 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b93 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-b99 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c101 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c104 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c105 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c106 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c107 No fix listed
Show 37 more
ProductAffected versionsFixed in
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c108 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c110 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c111 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c112 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c113 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c114 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c115 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c116 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c117 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c121 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c123 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c124 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c126 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c127 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c129 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c130 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c135 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c150 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c156 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c158 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c161 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c162 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c165 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c166 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c167 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c176 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c177 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c182 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c183 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c185 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c186 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c187 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c188 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c189 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c190 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c193 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c194 No fix listed

References