The self-enrolment functionality in Moodle 2.1.x before 2.1.4 and 2.2.x before 2.2.1 allows remote authenticated users to obtain the manager role by leveraging the teacher role.
Weaknesses in this category are related to the management of permissions, privileges, and other security features that are used to perform access control.