Denial_Of_Service_Resource_Exhaustion issue exists @ vulnerable/sql.go in branch master
*The resource nbEntries allocated by PrepareSQLDB in the file vulnerable\sql.go at line 28 is prone to resource exhaustion when used by PrepareSQLDB in the file vulnerable\sql.go at line 38.Similarity ID: 633266600
The resource ctx allocated by GetProducts in the file vulnerable\sql.go at line 68 is prone to resource exhaustion when used by GetProducts in the file vulnerable\sql.go at line 75.Similarity ID: -56057004
The resource db allocated by GetProducts in the file vulnerable\sql.go at line 68 is prone to resource exhaustion when used by GetProducts in the file vulnerable\sql.go at line 75.Similarity ID: -505299855*
Denial_Of_Service_Resource_Exhaustion issue exists @ vulnerable/sql.go in branch master
*The resource nbEntries allocated by PrepareSQLDB in the file vulnerable\sql.go at line 28 is prone to resource exhaustion when used by PrepareSQLDB in the file vulnerable\sql.go at line 38.Similarity ID: 633266600
The resource ctx allocated by GetProducts in the file vulnerable\sql.go at line 68 is prone to resource exhaustion when used by GetProducts in the file vulnerable\sql.go at line 75.Similarity ID: -56057004
The resource db allocated by GetProducts in the file vulnerable\sql.go at line 68 is prone to resource exhaustion when used by GetProducts in the file vulnerable\sql.go at line 75.Similarity ID: -505299855*
Severity: Medium
CWE:400
Vulnerability details and guidance
Internal Guidance
Checkmarx
Training Recommended Fix
Lines: 68 28
Code (Line #68):
Code (Line #28):