jbruinaud / WebGoatNet

WebGoat .Net for demos
0 stars 0 forks source link

CX Improper_Exception_Handling @ Code/IOHelper.cs [master] #186

Open jbruinaud opened 4 years ago

jbruinaud commented 4 years ago

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

Method ReadAllFromFile at line 11 of Code\IOHelper.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: 15


Code (Line #15):

            string data = sr.ReadToEnd();