jbruinaud / WebGoatNet

WebGoat .Net for demos
0 stars 0 forks source link

CX Improper_Exception_Handling @ Code/SQLiteProfileProvider.cs [master] #137

Open jbruinaud opened 4 years ago

jbruinaud commented 4 years ago

Improper_Exception_Handling issue exists @ Code/SQLiteProfileProvider.cs in branch master

Method DeleteProfile at line 802 of Code\SQLiteProfileProvider.cs performs an operation that could be expected to throw an exception, and is not properly wrapped in a try-catch block. This constitutes Improper Exception Handling.

Severity: Low

CWE:248

Checkmarx

Lines: 818 598 824


Code (Line #818):

                string userId = cmd.ExecuteScalar () as string;

Code (Line #598):

                cmd.ExecuteNonQuery ();

Code (Line #824):

                    deleteSuccessful = (cmd.ExecuteNonQuery () != 0);

jbruinaud commented 4 years ago

Issue still exists.

SUMMARY

Issue has total 3 vulnerabilities left to be fix (Please scroll to the top for more information)