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

Security Missconfiguration express cookie #21

Closed
gkouziik opened this issue Jul 24, 2019 · 0 comments
Closed

Security Missconfiguration express cookie #21

gkouziik opened this issue Jul 24, 2019 · 0 comments
Assignees
Labels
Create new Rule Create a new rule for the plugin

Comments

@gkouziik
Copy link
Owner

gkouziik commented Jul 24, 2019

Rule 11

The user has to add httpOnly:true and secure:true properties in express cookie configuration!

HttpOnly HTTP header preventing cookies beeing accessed by scripts.The application used HTTPS secure connections,and cookies are configured to sent only on Secure HTTPS connections be Secure flag!
app.use(express.session({ secret: "s3Cur3", cookie: { httpOnly: true, secure: true } }));

@gkouziik gkouziik added the Create new Rule Create a new rule for the plugin label Jul 24, 2019
@gkouziik gkouziik self-assigned this Jul 24, 2019
gkouziik added a commit that referenced this issue Sep 10, 2019
@gkouziik gkouziik reopened this Sep 16, 2019
gkouziik added a commit that referenced this issue Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Create new Rule Create a new rule for the plugin
Projects
None yet
Development

No branches or pull requests

1 participant