Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CX CSRF @ src/main/java/org/cysecurity/cspf/jvl/controller/LoginValidator.java [refs/heads/master] #194

Open
github-actions bot opened this issue Mar 14, 2022 · 1 comment

Comments

@github-actions
Copy link

github-actions bot commented Mar 14, 2022

CSRF issue exists @ src/main/java/org/cysecurity/cspf/jvl/controller/LoginValidator.java in branch refs/heads/master

Method processRequest at line 43 of src\main\java\org\cysecurity\cspf\jvl\controller\LoginValidator.java gets a parameter from a user request from ""username"". This parameter value flows through the code and is eventually used to access application state altering functionality. This may enable Cross-Site Request Forgery (CSRF).

Severity: Medium

CWE:352

Vulnerability details and guidance

Checkmarx

Training
Recommended Fix

Lines: 43 44


Code (Line #43):

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

Code (Line #44):

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

@github-actions github-actions bot reopened this Mar 14, 2022
@github-actions
Copy link
Author

Issue still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants