Skip to content

CX Trust_Boundary_Violation_in_Session_Variables @ src/main/java/org/cysecurity/cspf/jvl/controller/XPathQuery.java [master] #830

@nidhi0512

Description

@nidhi0512

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

*Method processRequest at line 35 of src\main\java\org\cysecurity\cspf\jvl\controller\XPathQuery.java gets user input from element ""username"". This element’s value flows through the code without being properly sanitized or validated and is eventually stored in the server-side Session object, in processRequest at line 63 of src\main\java\org\cysecurity\cspf\jvl\controller\XPathQuery.java. This constitutes a Trust Boundary Violation.
Similarity ID: 1837507346

Method processRequest at line 36 of src\main\java\org\cysecurity\cspf\jvl\controller\XPathQuery.java gets user input from element ""password"". This element’s value flows through the code without being properly sanitized or validated and is eventually stored in the server-side Session object, in processRequest at line 63 of src\main\java\org\cysecurity\cspf\jvl\controller\XPathQuery.java. This constitutes a Trust Boundary Violation.
Similarity ID: -1458384623*

Severity: Low

CWE:501

Vulnerability details and guidance

Checkmarx

Training
Recommended Fix

Lines: 35 36


Code (Line #35):

String user=request.getParameter("username");

Code (Line #36):

String pass=request.getParameter("password");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions