Плагин Academy LMS AI Course Builder, Quizzes, Certificates & eLearning для WordPress уязвим для Privilege Escalation во всех версиях вплоть до 4.0.3. Это связано с тем, что add_child() функция, вызывающая add_role('academy_student') на любой существующей учетной записи, разрешенной из параметра, предоставленного злоумышленником email, перед Store::link() проверяет отношения опекуна и пользователя, и не может откатить эту роль, когда Store::link() возвращает WP_Error. Это позволяет аутентифицированным злоумышленникам с ролью academy_guardian или выше повысить любую существующую учетную запись WordPress, включая свою собственную, до роли academy_student, получив возможности edit_posts` (Contributor-equivalent) и, когда включена настройка загрузки файла учащегося, upload_files` (Author-equivalent), возможности, не предоставленные роли хранителя.
Когда опекун предоставляет свой собственный адрес электронной почты, email_exists() разрешает своему собственному пользователю ID, в результате чего Store::link() отклоняет самоссылку, но поскольку вызов add_role() уже выполнен и никогда не отменяется, грант на роль academy_student от их собственного счета сохраняется навсегда.
Показать оригинальное описание (EN)
The Academy LMS – AI Course Builder, Quizzes, Certificates & eLearning plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 4.0.3. This is due to the `add_child()` function calling `add_role('academy_student')` on any existing account resolved from the attacker-supplied `email` parameter before `Store::link()` validates the guardian-ward relationship, and failing to roll back that role write when `Store::link()` returns a `WP_Error`. This makes it possible for authenticated attackers with the `academy_guardian` role or higher to elevate any existing WordPress account — including their own — to the `academy_student` role, gaining `edit_posts` (Contributor-equivalent) capabilities and, when the student file-upload setting is enabled, `upload_files` (Author-equivalent) capabilities not granted to the guardian role. When a guardian supplies their own email address, `email_exists()` resolves to their own user ID, causing `Store::link()` to reject the self-link, but because the `add_role()` call has already executed and is never reversed, the academy_student role grant on their own account persists permanently.
Характеристики атаки
Последствия
Строка CVSS v3.1