satyamchaurasiapersistent / JavaVulnerableLab

lab
0 stars 0 forks source link

CX Improper_Resource_Shutdown_or_Release @ src/main/java/org/cysecurity/cspf/jvl/controller/lambda.java [master] #81

Closed satyamchaurasiapersistent closed 2 years ago

satyamchaurasiapersistent commented 2 years ago

Improper_Resource_Shutdown_or_Release issue exists @ src/main/java/org/cysecurity/cspf/jvl/controller/lambda.java in branch master

The application's handleRequest method in src\main\java\org\cysecurity\cspf\jvl\controller\lambda.java defines and initializes the OutputStreamWriter object at 39. This object encapsulates a limited computing resource, such as open file streams, database connections, or network streams. This resource is not properly closed and released in all situations.

Severity: Low

CWE:404

Vulnerability details and guidance

Checkmarx

Training Recommended Fix

Lines: 39


Code (Line #39):

        OutputStreamWriter writer = new OutputStreamWriter(outputStream, "UTF-8");

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.