WordPress Plugin Vulnerabilities

LearnPress < 3.2.6.9 - Privilege Escalation to "LP Instructor"

Description

The LearnPress plugin through 3.2.6.8 for WordPress allows remote attackers to escalate the privileges of any user to LP Instructor via the accept-to-be-teacher action parameter. The "LP Instructor" role grants the "unfiltered_html" capability, allowing an escalated user to insert posts containing malicious JavaScript

Proof of Concept

It is possible for a remote attacker to elevate the privileges of any user to LP Instructor by sending a request to any location within wp-admin, such as wp-admin/admin-post.php with the action parameter set to accept-to-be-teacher and the user_id parameter set to an arbitrary user ID. This is possible because the learn_press_accept_become_a_teacher function runs on the plugins_loaded action and lacks nonce checks and capability checks.

Affects Plugins

Fixed in 3.2.6.9

References

Classification

Miscellaneous

Original Researcher
Ramuel Gall (Wordfence)
Submitter
Ramuel Gall
Verified
No

Timeline

Publicly Published
2020-04-28 (about 3 years ago)
Added
2020-04-28 (about 3 years ago)
Last Updated
2020-04-29 (about 3 years ago)

Other