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

Bugfix: credentials #1001

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Bugfix: credentials #1001

merged 1 commit into from
Aug 19, 2024

Conversation

wrongecho
Copy link
Collaborator

Fix an edge-case bug causing the user_encryption_session_key session cookie to not be set due to error output (when display PHP errors in browser is enabled). This means login credentials are still encrypted but cannot be decrypted properly by other users.

As a failsafe, prevent users creating new credentials if they do not have the correct cookie set.

This is the first time in 2+ years I've run into this, and only because I've setup a new dev env. I don't think it's a common issue by any means but doesn't hurt to fix.

Fix an edge-case bug causing the user_encryption_session_key session cookie to not be set due to error output (when display PHP errors in browser is enabled). This means login credentials are still encrypted but cannot be decrypted properly by other users.
Prevent users creating new credentials if they do not have the correct cookie set.
Copy link

@wrongecho
Copy link
Collaborator Author

Test these changes at: https://credfix1001.pr-review.itflow.org
(automatic message)

@johnnyq
Copy link
Collaborator

johnnyq commented Aug 19, 2024

nice catch, yeah deff a rare RACE condition

@johnnyq johnnyq merged commit 82a123a into master Aug 19, 2024
3 checks passed
@wrongecho wrongecho deleted the cred-fix branch August 29, 2024 18:11
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.

2 participants