Untrusted Search Path Affecting panelsw.custom.wix package, versions [,3.15.0-a46)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DOTNET-PANELSWCUSTOMWIX-6483816
  • published26 Mar 2024
  • disclosed25 Mar 2024
  • creditChristopher Painter

Introduced: 25 Mar 2024

CVE NOT AVAILABLE CWE-426  (opens in a new tab)

How to fix?

Upgrade PanelSW.Custom.WiX to version 3.15.0-a46 or higher.

Overview

Affected versions of this package are vulnerable to Untrusted Search Path due to the use of an unprotected C:\Windows\Temp directory to copy and execute binaries. When a bundle runs as the SYSTEM user, it uses GetTempPathW which points to this insecure directory to drop and load multiple binaries. Standard users can hijack the binary before it's loaded in the application, resulting in elevation of privileges.

Note:

This is only exploitable if the attacker has the ability to write to the C:\Windows\Temp directory and monitor changes using the ReadDirectoryChangesW API to figure out randomized folder names created inside this directory.

CVSS Scores

version 3.1