结构: 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'] |
策略:
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 |