CWE-1386Insecure Operation on Windows Junction / Mount Point

PUBLISHEDweakness record
released 2022-06-28 · last modified 2026-04-30

Metadata

CWE ID:
CWE-1386
摘要:
Base
结构:
Simple
状态:
Incomplete
发布日期:
2022-06-28
更新日期:
2026-04-30

名称

Insecure Operation on Windows Junction / Mount Point

描述

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.

Depending on the intended action being performed, this could allow an attacker to cause the product to read, write, delete, or otherwise operate on unauthorized files. In Windows, NTFS5 allows for file system objects called reparse points. Applications can create a hard link from one directory to another directory, called a junction point. They can also create a mapping from a directory to a drive letter, called a mount point. 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.

常见后果

范围:
Confidentiality
影响:
Read Files or Directories
注释:
Read arbitrary files by replacing a user-controlled folder with a mount point and additional hard links.
范围:
Integrity
影响:
Modify Files or Directories
注释:
Modify an arbitrary file by replacing the rollback files in installer directories, as they can have the installer execute those rollbacks.
范围:
Availability
影响:
Modify Files or Directories
注释:
Even if there is no control of contents, an arbitrary file delete or overwrite (when running as SYSTEM or admin) can be used for a permanent system denial-of-service, e.g. by deleting a startup configuration file that prevents the service from starting.

相关 CWE