CWE-313 在文件或磁盘上的明文存储

admin 2022年1月5日21:07:04CWE(弱点枚举)评论13 views2259字阅读7分31秒阅读模式

CWE-313 在文件或磁盘上的明文存储

Cleartext Storage in a File or on Disk

结构: 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

# Java Web App ResourceBundle properties file


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.




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.
CVE-2005-1828 Password in cleartext in config file.
CVE-2005-2209 Password in cleartext in config file.
CVE-2002-1696 Decrypted copy of a message written to disk given a combination of options and when user replies to an encrypted message.
CVE-2004-2397 Cleartext storage of private key and passphrase in log file when user imports the key.



映射的分类名 ImNode ID Fit Mapped Node Name
PLOVER Plaintext Storage in File or on Disk
Software Fault Patterns SFP23 Exposed Data


特别标注: 本站(CN-SEC.COM)所有文章仅供技术研究,若将其信息做其他用途,由用户承担全部法律及连带责任,本站不承担任何法律及连带责任,请遵守中华人民共和国安全法.
  • 我的微信
  • 微信扫一扫
  • weinxin
  • 我的微信公众号
  • 微信扫一扫
  • weinxin
  • 本文由 发表于 2022年1月5日21:07:04
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                  CWE-313 在文件或磁盘上的明文存储


匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: