CWE-538: Insertion of Sensitive Information into Externally-Accessible File or Directory

Base Draft Simple

CWE版本: 4.18

更新日期: 2025-09-09

弱点描述

The product places sensitive information into files or directories that are accessible to actors who are allowed to have access to the files, but not to the sensitive information.

常见后果

影响范围: Confidentiality

技术影响: Read Files or Directories

潜在缓解措施

阶段: Architecture and Design Operation System Configuration

描述: Do not expose file and directory information to the user.

检测方法

方法: Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

有效性: High

观察示例

参考: CVE-2018-1999036

SSH password for private key stored in build log

引入模式

阶段 说明
Implementation OMISSION: This weakness is caused by missing a security tactic during the architecture and design phase.
Operation OMISSION: This weakness is caused by missing a security tactic during the architecture and design phase.

适用平台

编程语言
Not Language-Specific (Undetermined)
关键信息

CWE ID: CWE-538

抽象级别: Base

结构: Simple

状态: Draft

相关弱点
相关攻击模式
CAPEC-95