CWE-779 日志记录过多数据

admin 2021年12月12日05:45:11评论75 views字数 2319阅读7分43秒阅读模式

CWE-779 日志记录过多数据

Logging of Excessive Data

结构: Simple

Abstraction: Base

状态: Draft

被利用可能性: Low

基本描述

The software logs too much information, making log files hard to process and possibly hindering recovery efforts or forensic analysis after an attack.

扩展描述

While logging is a good practice in general, and very high levels of logging are appropriate for debugging stages of development, too much logging in a production environment might hinder a system administrator's ability to detect anomalous conditions. This can provide cover for an attacker while attempting to penetrate a system, clutter the audit trail for forensic analysis, or make it more difficult to debug problems in a production environment.

相关缺陷

  • cwe_Nature: ChildOf cwe_CWE_ID: 400 cwe_View_ID: 1000 cwe_Ordinal: Primary

  • cwe_Nature: ChildOf cwe_CWE_ID: 400 cwe_View_ID: 699 cwe_Ordinal: Primary

适用平台

Language: {'cwe_Class': 'Language-Independent', 'cwe_Prevalence': 'Undetermined'}

常见的影响

范围 影响 注释
Availability ['DoS: Resource Consumption (CPU)', 'DoS: Resource Consumption (Other)'] Log files can become so large that they consume excessive resources, such as disk and CPU, which can hinder the performance of the system.
Non-Repudiation Hide Activities Logging too much information can make the log files of less use to forensics analysts and developers when trying to diagnose a problem or recover from an attack.
Non-Repudiation Hide Activities If system administrators are unable to effectively process log files, attempted attacks may go undetected, possibly leading to eventual system compromise.

可能的缓解方案

Architecture and Design

策略:

Suppress large numbers of duplicate log messages and replace them with periodic summaries. For example, syslog may include an entry that states "last message repeated X times" when recording repeated events.

Architecture and Design

策略:

Support a maximum size for the log file that can be controlled by the administrator. If the maximum size is reached, the admin should be notified. Also, consider reducing functionality of the software. This may result in a denial-of-service to legitimate software users, but it will prevent the software from adversely impacting the entire system.

Implementation

策略:

Adjust configurations appropriately when software is transitioned from a debug state to production.

分析过的案例

标识 说明 链接
CVE-2007-0421 server records a large amount of data to the server log when it receives malformed headers https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0421
CVE-2002-1154 chain: application does not restrict access to front-end for updates, which allows attacker to fill the error log https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-1154

文章来源于互联网:scap中文网

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年12月12日05:45:11
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   CWE-779 日志记录过多数据http://cn-sec.com/archives/613307.html
                  免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉.

发表评论

匿名网友 填写信息