satyamchaurasiapersistent / JavaVulnerableLab

lab
0 stars 0 forks source link

CX Improper_Exception_Handling @ src/main/webapp/vulnerability/idor/download.jsp [master] #59

Closed satyamchaurasiapersistent closed 2 years ago

satyamchaurasiapersistent commented 2 years ago

Improper_Exception_Handling issue exists @ src/main/webapp/vulnerability/idor/download.jsp in branch master

The method while at line 24 of src\main\webapp\vulnerability\idor\download.jsp 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

Vulnerability details and guidance

Checkmarx

Training Recommended Fix

Lines: 17 24 26


Code (Line #17):

            response.setContentLength((int)file.length());

Code (Line #24):

            while ((in != null) && ((length = in.read(byteBuffer)) != -1))

Code (Line #26):

            outStream.write(byteBuffer,0,length);

satyamchaurasiapersistent commented 2 years ago

Issue still exists.

satyamchaurasiapersistent commented 2 years ago

Issue still exists.

satyamchaurasiapersistent commented 2 years ago

Issue still exists.

satyamchaurasiapersistent commented 2 years ago

Issue still exists.

satyamchaurasiapersistent commented 2 years ago

Issue still exists.

satyamchaurasiapersistent commented 2 years ago

Issue still exists.

satyamchaurasiapersistent commented 2 years ago

Issue still exists.

satyamchaurasiapersistent commented 2 years ago

Issue still exists.