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

Implement and honor a password expiry #58

Open
brendanheywood opened this issue Aug 20, 2020 · 4 comments
Open

Implement and honor a password expiry #58

brendanheywood opened this issue Aug 20, 2020 · 4 comments
Labels

Comments

@brendanheywood
Copy link
Contributor

Mostly cut and paste or inherit from auth_manual

@Apollon1977
Copy link

Apollon1977 commented Sep 16, 2021

+1
This is a severe security issue as anyone with an expired key can (although not enrolled in the course) create an account for the site!

@brendanheywood
Copy link
Contributor Author

This is an expiration for the users password, not the enrollment key. The enrollment key logic is managed by core moodle and to my knowledge don't have a concept of an expiry?

@Apollon1977
Copy link

OK. Let me describe the issue I noticed a bit more in detail:

  1. I have configured auth_enrolkey as authentication method.
  2. In a course I configured self enrolment and entered a key and an enrolment period.
  3. If a new user wants to register, he enters the key at the signup page. Then a new account in moodle is created and the user is enrolled in my course. Thats how it's supposed to be - works perfect.
  4. When the enrolment period has ended, it's not anymore possible to enrol into the cours - also as supposed.
  5. BUT: it is still possible to register a new user whith that key. This user therefored gets an account (what I think is not supposed). I have to deactivate self enrolment in the course to prevent registering a new user.

@brendanheywood
Copy link
Contributor Author

Right yes that does make sense. I'll add this to our internal queue but I'm not sure when we will get to it. Pull requests welcome.

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

No branches or pull requests

2 participants