CWE-664 在生命周期中对资源的控制不恰当

admin 2021年11月6日14:50:59评论136 views字数 913阅读3分2秒阅读模式

CWE-664 在生命周期中对资源的控制不恰当

Improper Control of a Resource Through its Lifetime

结构: Simple

Abstraction: Class

状态: Draft

被利用可能性: unkown

基本描述

The software does not maintain or incorrectly maintains control over a resource throughout its lifetime of creation, use, and release.

扩展描述

Resources often have explicit instructions on how to be created, used and destroyed. When software does not follow these instructions, it can lead to unexpected behaviors and potentially exploitable states.

Even without explicit instructions, various principles are expected to be adhered to, such as "Do not use an object until after its creation is complete," or "do not use an object after it has been slated for destruction."

常见的影响

范围 影响 注释
Other Other

可能的缓解方案

Testing

策略:

Use Static analysis tools to check for unreleased resources.

Notes

分类映射

映射的分类名 ImNode ID Fit Mapped Node Name
CERT C Secure Coding FIO39-C CWE More Abstract Do not alternately input and output from a stream without an intervening flush or positioning call

相关攻击模式

  • CAPEC-196
  • CAPEC-21
  • CAPEC-60
  • CAPEC-61
  • CAPEC-62

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

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

发表评论

匿名网友 填写信息