CWE-619 数据库游标悬挂(游标注入)

admin 2021年12月4日16:18:16评论79 views字数 997阅读3分19秒阅读模式

CWE-619 数据库游标悬挂(游标注入)

Dangling Database Cursor ('Cursor Injection')

结构: Simple

Abstraction: Base

状态: Incomplete

被利用可能性: unkown

基本描述

If a database cursor is not closed properly, then it could become accessible to other users while retaining the same privileges that were originally assigned, leaving the cursor "dangling."

扩展描述

For example, an improper dangling cursor could arise from unhandled exceptions. The impact of the issue depends on the cursor's role, but SQL injection attacks are commonly possible.

相关缺陷

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

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

适用平台

Language: {'cwe_Name': 'SQL', 'cwe_Prevalence': 'Undetermined'}

常见的影响

范围 影响 注释
['Confidentiality', 'Integrity'] ['Read Application Data', 'Modify Application Data']

可能的缓解方案

Implementation

策略:

Close cursors immediately after access to them is complete. Ensure that you close cursors if exceptions occur.

分类映射

映射的分类名 ImNode ID Fit Mapped Node Name
Software Fault Patterns SFP24 Tainted input to command

引用

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

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年12月4日16:18:16
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   CWE-619 数据库游标悬挂(游标注入)http://cn-sec.com/archives/613442.html

发表评论

匿名网友 填写信息