Skip to content

Create add_vulns.java#3

Open
aaronpynos wants to merge 1 commit intomainfrom
aaronpynos-patch-3
Open

Create add_vulns.java#3
aaronpynos wants to merge 1 commit intomainfrom
aaronpynos-patch-3

Conversation

@aaronpynos
Copy link
Copy Markdown
Owner

No description provided.

@aaronpynos
Copy link
Copy Markdown
Owner Author

aaronpynos commented Sep 30, 2024

Snyk has found 1 issues.

Icon Severity Issues
Critical 0
High 0
Medium 0
Low 1

security/snyk check is completed. No issues were found. (View Details)

license/snyk check is completed. No issues were found. (View Details)

code/snyk check is completed. Snyk found 1 issues. (View Details)

throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
javax.servlet.http.Cookie userCookie =
new javax.servlet.http.Cookie("BenchmarkTest00003", "someSecret");
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  Sensitive Cookie Without 'HttpOnly' Flag

Cookie misses a call to setHttpOnly. Set the HttpOnly flag to true to protect the cookie from possible malicious code on client side.

CWE-1004 | Priority score 389 | Line 37

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

Successfully merging this pull request may close these issues.

1 participant