The create method in app/controllers/users_controller.rb in Foreman before 1.2.0-RC2 allows remote authenticated users with permissions to create or edit other users to gain privileges by (1) changing the admin flag or (2) assigning an arbitrary role.
https://groups.google.com/forum/#%21topic/foreman-users/6WpO_3ugiXU
https://bugzilla.redhat.com/show_bug.cgi?id=968166