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

80330 security fixes #488

Merged
merged 3 commits into from
Jul 9, 2019
Merged

80330 security fixes #488

merged 3 commits into from
Jul 9, 2019

Conversation

jamesmk
Copy link
Member

@jamesmk jamesmk commented Jul 8, 2019

Prevent vertical privilege escalation
Users with the role of admins could potentially set their role as super admin by abusing the toggle method provided for boolean attributes. Stricter definitions were added to toggle to make sure this doesn't happen.

More toggle abuse
toggle could also be used to on non-boolean attributes, which could lead to other potential security issues. Method is now available for booleans only.

toggle also exposed the existence of classes but returning a 500 when a class did not exist. Missing classes now return a 401 inline with unauthorized classes.

Brute-force protection
Currently Fae has no brute-force protection. This also enables Devise's lockable feature which will lock accounts after 5 failed attempts to log in. Accounts unlock after an hour or via emailed instructions.

@jasonfine
Copy link
Member

sweet!

@jasonfine jasonfine merged commit 15f72c8 into master Jul 9, 2019
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