Skip to content

GHSA-wq88-fq4x-h2pm WiX Burn-based bundles are vulnerable to binary hijack when run as SYSTEM

HighCVSS 7.3
Published
Updated
Exploit status
No public exploit known

Description

Summary

Burn uses an unprotected C:\Windows\Temp directory to copy binaries and run them from there. This directory is not entirely protected against low privilege users.

Details

When a bundle runs as SYSTEM user, Burn uses GetTempPathW which points to an insecure directory C:\Windows\Temp to drop and load multiple binaries. Standard users can hijack the binary before it's loaded in the application resulting in elevation of privileges.

icacls c:\windows\temp

BUILTIN\Users:(CI)(S,WD,AD,X)
BUILTIN\Administrators:(F)
BUILTIN\Administrators:(OI)(CI)(IO)(F)
NT AUTHORITY\SYSTEM:(F)
NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)
CREATOR OWNER:(OI)(CI)(IO)(F)

Built in users(non-administrators) have special permissions to this folder and can create files and write to this directory. While they do not have explicit read permissions, there is a way they can monitor the changes to this directory using ReadDirectoryChangesW API and thus figure out randomized folder names created inside this directory as wel

PoC

PoC works against the against visual studio enterprise with update 3 installer

Reproduction steps

As a standard user, run the poc.
Mount the iso and run visual studio installer as local system account.
The PoC should hijack the the binaries dropped by vs installer and a child process "notepad.exe" will be running.

Impact

This is an Elevation of Privilege Vulnerability where a low privileged user can hijack binaries in an unprotected path C:\Windows\Temp to elevate to the SYSTEM user privileges.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
nuget PanelSW.Custom.WiX(NuGet) < 3.15.0-a46; <= 3.15.0-a45; = 3.12.0-b45; = 3.12.0-b48 +61 more 3.15.0-a46 Fixed

Affected products

ProductAffected versionsFixed in
nuget PanelSW.Custom.WiX(NuGet) <= 3.15.0-a45 No fix listed
nuget PanelSW.Custom.WiX(NuGet) < 3.15.0-a46 3.15.0-a46
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
Show 40 more
ProductAffected versionsFixed in
nuget PanelSW.Custom.WiX(NuGet) = 3.12.0-c107 No fix listed
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
nuget PanelSW.Custom.WiX(NuGet) = 3.15.0-a44 No fix listed
nuget PanelSW.Custom.WiX(NuGet) = 3.15.0-a45 No fix listed

References