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

normalize username to lock password #38

Merged
merged 2 commits into from
Oct 26, 2021
Merged

Conversation

georgejhunt
Copy link
Contributor

@georgejhunt georgejhunt commented Sep 2, 2021

Prevent username with changed capitalization from taking over an existing username/password combination.

Root cause: jupyterhub lower-cases username, but firstuseauthenticator does not. So alternate capitalization of username gains access to, and creates a parallel path to user files (multiple capitalizations of username have access)

@holta
Copy link

holta commented Sep 4, 2021

I've confirmed that this critical security fix works.

Thank you @georgejhunt for these very important patches to firstuseauthenticator!

Related:

allows for following normalization changes
@minrk minrk changed the title lowercase username to lock password normalize username to lock password Oct 26, 2021
@minrk minrk merged commit d36ac97 into jupyterhub:master Oct 26, 2021
@welcome
Copy link

welcome bot commented Oct 26, 2021

Congrats on your first merged pull request in this project! 🎉
congrats
Thank you for contributing, we are very proud of you! ❤️

@minrk
Copy link
Member

minrk commented Oct 26, 2021

Thanks! I've updated this to call the normalize_username method, which encapsulates whatever JupyterHub does to normalize a username.

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

Successfully merging this pull request may close these issues.

4 participants