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 issue: session shared with ALL users #27

Closed
hakwerk opened this issue Nov 3, 2021 · 0 comments
Closed

Security issue: session shared with ALL users #27

hakwerk opened this issue Nov 3, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@hakwerk
Copy link
Owner

hakwerk commented Nov 3, 2021

As soon as the admin user is logged in, all other sessions (from any other browser/device) can access the admin pages!

It was found that no Set-Cookie headers were sent to the browser but the error message of the session.Save() were not shown. The root cause turned out to be using the base64 encoded authorization and encryption keys for the session store, instead of the decoded binary keys.

@hakwerk hakwerk added the bug Something isn't working label Nov 3, 2021
@hakwerk hakwerk closed this as completed in 7b91eba Nov 3, 2021
hakwerk added a commit that referenced this issue Nov 3, 2021
* release/21.11:
  Stop sharing admin session with ALL users (#27)
hakwerk added a commit that referenced this issue Dec 8, 2021
On the very first run, the authorization and encryption keys are generated as []byte but they should be
stored base64 encoded so they match the value as loaded in consecutive runs
hakwerk added a commit that referenced this issue Dec 8, 2021
* release/21.12:
  Bump boulder version to release-2021-12-06
  Downgrade some errors to warnings on dashboard
  Fix cert-checker for whitelist/lockdown domains
  Make initial setup process a bit more clear
  Add comment to hostname-policy.yaml for whitelist/lockdown section
  Disable redis containers (#29)
  Enable more than one local domain to issue certificates for (#24)
  Encode freshly generated keys to base64 (#27)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant