satyamchaurasiapersistent / JavaVulnerableLab

lab
0 stars 0 forks source link

CX Improper_Exception_Handling @ src/main/webapp/vulnerability/forumUsersList.jsp [master] #55

Closed satyamchaurasiapersistent closed 2 years ago

satyamchaurasiapersistent commented 2 years ago

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

The method while at line 15 of src\main\webapp\vulnerability\forumUsersList.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: 18 12 15


Code (Line #18):

                out.print("<a href='UserDetails.jsp?username="+rs.getString("username")+"'>"+rs.getString("username")+"</a>");

Code (Line #12):

             rs=stmt.executeQuery("select * from users");

Code (Line #15):

              while( rs.next())

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.

satyamchaurasiapersistent commented 2 years ago

Issue still exists.