Detailedseverity: Very HighDraft

CAPEC-177Create files with the same name as files protected with a higher classification

Abstraction
Detailed
Status
Draft
Severity
Very High

Description

An attacker exploits file location algorithms in an operating system or application by creating a file with the same name as a protected or privileged file. The attacker could manipulate the system if the attacker-created file is trusted by the operating system or an application component that attempts to load the original file. Applications often load or include external files, such as libraries or configuration files. These files should be protected against malicious manipulation. However, if the application only uses the name of the file when locating it, an attacker may be able to create a file with the same name and place it in a directory that the application will search before the directory with the legitimate file is searched. Because the attackers' file is discovered first, it would be used by the target application. This attack can be extremely destructive if the referenced file is executable and/or is granted special privileges based solely on having a particular name.

Related weaknesses· 1

CWE-706

MITRE ATT&CK crosswalk· 1

T1036: Masquerading

Related attack patterns· 1

CAPEC-17 (ChildOf)

Exploits1

TypeTargetConfidenceTier
WeaknessUse of Incorrectly-Resolved Name or Referencecwe-706100%live

Related to1

TypeTargetConfidenceTier
TechniqueMasqueradingt1036100%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CAPEC
File Manipulation
CAPEC
Alternative Execution Due to Deceptive Filenames
CAPEC
Redirect Access to Libraries
CAPEC
Leveraging Race Conditions via Symbolic Links
CAPEC
Symlink Attack
CAPEC
Explore for Predictable Temporary File Names
Sourced from MITRE CAPEC. Curated by Adam Lundqvist, SQUR.