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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CWE-313 (在文件或磁盘上的明文存储) — Vulnerability Class 31

31 vulnerabilities classified as CWE-313 (在文件或磁盘上的明文存储). AI Chinese analysis included.

CWE-313 represents a critical data protection weakness where applications store sensitive information in plaintext on disk or in files, leaving it vulnerable to unauthorized access. Attackers typically exploit this flaw by gaining physical access to the device, obtaining administrative privileges, or directly reading storage media to extract credentials, keys, or personal data. Even if the data appears obfuscated through simple encoding, determined adversaries can often reverse-engineer the method to reveal the original content. To mitigate this risk, developers must implement robust encryption standards, such as AES-256, for all sensitive data at rest. Additionally, utilizing hardware security modules and ensuring strict file permission controls can significantly reduce the attack surface, ensuring that stored information remains confidential even if the underlying storage is compromised.

MITRE CWE Description
The product stores sensitive information in cleartext in a file, or on disk. The sensitive information could be read by attackers with access to the file, or with physical or administrator access to the raw disk. Even if the information is encoded in a way that is not human-readable, certain techniques could determine which encoding is being used, then decode the information.
Common Consequences (1)
Confidentiality Read Application Data
Examples (1)
The following examples show a portion of properties and configuration files for Java and ASP.NET applications. The files include username and password information but they are stored in cleartext.
# Java Web App ResourceBundle properties file ... webapp.ldap.username=secretUsername webapp.ldap.password=secretPassword ...
Bad · Java
... <connectionStrings> <add name="ud_DEV" connectionString="connectDB=uDB; uid=db2admin; pwd=password; dbalias=uDB;" providerName="System.Data.Odbc" /> </connectionStrings> ...
Bad · ASP.NET
CVE ID Title CVSS Severity Published
CVE-2016-6538 TrackR Bravo mobile application stores account passwords in cleartext — Bravo Mobile Application 8.8 - 2018-07-06

Vulnerabilities classified as CWE-313 (在文件或磁盘上的明文存储) represent 31 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.