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

Added vfsid and hashChallenge to limit stolen signing key issues #35

Merged
merged 1 commit into from
Mar 30, 2024

Conversation

rorylshanks
Copy link
Owner

@rorylshanks rorylshanks commented Mar 30, 2024

A potential security issue exists in Veriflow, whereby in the event the signing key is stolen, the attacker and impersonate any user by constructing specific JWTs and signing in as that user.
This PR adds a user-specific security identifier that is populated by the IdP adapter, and issues a hash of this SID to every /set request. When these SIDs do not match, do not log the user in.
This will force an attacker to steal the signing key, and also the users SID to construct a correct attack. The SID of the user is rotated on every IdP update

@rorylshanks rorylshanks merged commit 9363d57 into main Mar 30, 2024
1 check passed
@rorylshanks rorylshanks deleted the add-additional-protections-from-impersonation branch March 30, 2024 15:54
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