结构: Simple
Abstraction: Variant
状态: Draft
被利用可能性: unkown
The application 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.
cwe_Nature: ChildOf cwe_CWE_ID: 312 cwe_View_ID: 1000 cwe_Ordinal: Primary
cwe_Nature: ChildOf cwe_CWE_ID: 312 cwe_View_ID: 699 cwe_Ordinal: Primary
Language: {'cwe_Class': 'Language-Independent', 'cwe_Prevalence': 'Undetermined'}
范围 | 影响 | 注释 |
---|---|---|
Confidentiality | Read Application Data |
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.
This Java example shows a properties file with a cleartext username / password pair.
bad Java
The following example shows a portion of a configuration file for an ASP.Net application. This configuration file includes username and password information for a connection to a database but the pair is stored in cleartext.
bad ASP.NET
Username and password information should not be included in a configuration file or a properties file in cleartext as this will allow anyone who can read the file access to the resource. If possible, encrypt this information and avoid CWE-260 and CWE-13
标识 | 说明 | 链接 |
---|---|---|
CVE-2001-1481 | Cleartext credentials in world-readable file. | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2001-1481 |
CVE-2005-1828 | Password in cleartext in config file. | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-1828 |
CVE-2005-2209 | Password in cleartext in config file. | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-2209 |
CVE-2002-1696 | Decrypted copy of a message written to disk given a combination of options and when user replies to an encrypted message. | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-1696 |
CVE-2004-2397 | Cleartext storage of private key and passphrase in log file when user imports the key. | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-2397 |
映射的分类名 | ImNode ID | Fit | Mapped Node Name |
---|---|---|---|
PLOVER | Plaintext Storage in File or on Disk | ||
Software Fault Patterns | SFP23 | Exposed Data |