Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-538 (文件和路径信息暴露) — Vulnerability Class 66

66 vulnerabilities classified as CWE-538 (文件和路径信息暴露). AI Chinese analysis included.

CWE-538 represents a critical data exposure weakness where applications inadvertently store sensitive information in files or directories accessible to unauthorized actors. This vulnerability typically arises when developers fail to enforce strict access controls on storage locations, allowing individuals with basic file system permissions to read confidential data such as credentials, session tokens, or personal identifiable information. Attackers exploit this by navigating to the exposed directory and extracting the unprotected files, often bypassing application-level security measures entirely. To mitigate this risk, developers must implement robust file permission settings, ensuring that sensitive data is stored in restricted directories accessible only to the application process. Additionally, employing encryption for data at rest and utilizing secure, temporary storage mechanisms can prevent unauthorized access, thereby maintaining the confidentiality and integrity of critical information against external threats.

MITRE CWE Description
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.
Common Consequences (1)
ConfidentialityRead Files or Directories
Mitigations (1)
Architecture and Design, Operation, System ConfigurationDo not expose file and directory information to the user.
Examples (1)
In the following code snippet, a user's full name and credit card number are written to a log file.
logger.info("Username: " + usernme + ", CCN: " + ccn);
Bad · Java

Vulnerabilities classified as CWE-538 (文件和路径信息暴露) represent 66 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.