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

引用