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

[MEDIUM] Cookie missing HttpOnly flag #2

Open
joshbouncesecurity opened this issue Nov 3, 2022 · 0 comments
Open

[MEDIUM] Cookie missing HttpOnly flag #2

joshbouncesecurity opened this issue Nov 3, 2022 · 0 comments
Labels

Comments

@joshbouncesecurity
Copy link
Collaborator

joshbouncesecurity commented Nov 3, 2022

Details

A cookie has been set without the HttpOnly flag, which means that the cookie can be accessed by JavaScript. If a malicious script can be run on this page then the cookie will be accessible and can be transmitted to another site. If this is a session cookie then session hijacking may be possible.

Recommendations

Ensure that the HttpOnly flag is set for all cookies.

Evidence

This is the request where the cookie is returned:
image

The cookie is returned without the HttpOnly flag set:
image

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

No branches or pull requests

1 participant