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

Devise registerable module may allow attackers to register themselves as staff/admins #68

Open
eliotsykes opened this issue Aug 11, 2020 · 0 comments

Comments

@eliotsykes
Copy link
Owner

Devise's :registerable module allows users to register themselves.

If the :registerable module is incorrectly setup for staff/admin scope, then you may be allowing attackers to register themselves as staff/admin users.

The attackers may be able to HTTP POST to the Devise::RegistrationsController#create controller action and create users this way.

Where to start looking?

  • Search for registerable usage in app/models and sub directories
  • Search for registrations#create in the output from bin/rails routes

There is a valid use for :registerable, but only for user scopes that should be able to register themselves. On a public facing web site, this would be typically used for visitors who want to sign up for their own account.

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

No branches or pull requests

1 participant