satyamchaurasiapersistent / JavaVulnerableLab

lab
0 stars 0 forks source link

CX Improper_Exception_Handling @ src/main/webapp/vulnerability/idor/change-email.jsp [master] #79

Closed satyamchaurasiapersistent closed 2 years ago

satyamchaurasiapersistent commented 2 years ago

Improper_Exception_Handling issue exists @ src/main/webapp/vulnerability/idor/change-email.jsp in branch master

The method stmt.executeUpdate at line 32 of src\main\webapp\vulnerability\idor\change-email.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: 32


Code (Line #32):

            stmt.executeUpdate("Update users set email='"+email+"' where id="+id);

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.