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 HttpOnlyCookies @ src/main/webapp/admin/adminlogin.jsp [refs/heads/master] #186

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

Comments

@github-actions
Copy link

github-actions bot commented Mar 14, 2022

HttpOnlyCookies issue exists @ src/main/webapp/admin/adminlogin.jsp in branch refs/heads/master

The web application's Cookie method creates a cookie privilege, at line 27 of src\main\webapp\admin\adminlogin.jsp, and returns it in the response. However, the application is not configured to automatically set the cookie with the "httpOnly" attribute, and the code does not explicitly add this to the cookie.

Severity: Medium

CWE:1004

Vulnerability details and guidance

Checkmarx

Training
Recommended Fix

Lines: 27


Code (Line #27):

                                   Cookie privilege=new Cookie("privilege","admin");

@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