jbruinaud / WebGoatNet

WebGoat .Net for demos
0 stars 0 forks source link

CX Improper_Exception_Handling @ App_Code/DB/SqliteDbProvider.cs [master] #105

Open jbruinaud opened 4 years ago

jbruinaud commented 4 years ago

Improper_Exception_Handling issue exists @ App_Code/DB/SqliteDbProvider.cs in branch master

Method GetCatalogData at line 56 of App_Code\DB\SqliteDbProvider.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: 352 418 386 390 294 231 103 494 366 466 434 85 470 535 218 63


Code (Line #352):

                da.Fill(ds);

Code (Line #418):

                da.Fill(ds);

Code (Line #386):

                da.Fill(ds, "products");

Code (Line #390):

                da.Fill(ds, "comments");

Code (Line #294):

                da.Fill(ds);

Code (Line #231):

                da.Fill(ds);

Code (Line #103):

            log.Info("Running recreate");

Code (Line #494):

                da.Fill(ds); //

Code (Line #366):

                da.Fill(ds);

Code (Line #466):

                da.Fill(ds, "categories");

Code (Line #434):

                da.Fill(ds);

Code (Line #85):

                da.Fill(ds);

Code (Line #470):

                da.Fill(ds, "products");

Code (Line #535):

                da.Fill(ds);

Code (Line #218):

                da.Fill(ds);

Code (Line #63):

                da.Fill(ds);

jbruinaud commented 4 years ago

Issue still exists.

SUMMARY

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