Skip to content
OpenAdvisories

Weakness (CWE)

CWE-1386: Insecure Operation on Windows Junction / Mount Point

Base Incomplete

The product opens a file or directory, but it does not properly prevent the name from being associated with a junction or mount point to a destination that is outside of the intended control sphere.

More detail

If a file is used by a
privileged program, but it can be replaced
with a hard link to a sensitive file (e.g.,
AUTOEXEC.BAT), an attacker could escalate
privileges. When the process opens the file,
the attacker can assume the privileges of
that process, tricking the privileged
process to read, modify, or delete the
sensitive file, preventing the program from
accurately processing data. Note that one
can also point to registries and
semaphores.

How to prevent it (1 mitigation)
  1. Architecture and Design

    When designing software that will have different rights than the executer, the software should check that files that it is interacting with are not improper hard links or mount points. One way to do this in Windows is to use the functionality embedded in the following command: "dir /al /s /b" or, in PowerShell, use LinkType as a filter. In addition, some software uses authentication via signing to ensure that the file is the correct one to use. Make checks atomic with the file action, otherwise a TOCTOU weakness (CWE-367) can be introduced.

Source: MITRE CWE-1386

3 results · Clear filters · Feed

  • High 8.8

    Privilege escalation during the installation of Norton Secure VPN via the Microsoft Store

    A privilege escalation vulnerability exists during the installation of Norton Secure VPN via the Microsoft Store. A low-privilege user can replace files during the installation process, which may result in deletion of arbitrary files that can lead to elevatio…

  • High 8.5

    Local privilege escalation in ESET products for Windows

    The vulnerability potentially allowed an attacker to misuse ESET’s file operations during the removal of a detected file on the Windows operating system to delete files without having proper permissions to do so.

  • High 8.2

    NVIDIA GeForce Experience contains a vulnerability in the installer, where a user installing the NVIDIA GeForce Experie…