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

    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 ID SNYK-DOTNET-PANELSWCUSTOMWIX-6483816
  • published 26 Mar 2024
  • disclosed 25 Mar 2024
  • credit Christopher Painter

Introduced: 25 Mar 2024

CVE NOT AVAILABLE CWE-426 Open this link 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
Expand this section

Snyk

Recommended
7.3 high
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High