LearnPress – WordPress LMS Plugin <= 4.2.6.5 - Authenticated (Instructor+) Arbitrary File Upload
Strategic Overview
- Status
- Patched in 4.2.6.6
- Affected Version
<= 4.2.6.5- CVSS
- 8.8High
- Weakness type
- CWE-434 · Unrestricted Upload of File with Dangerous Type
- CVE
CVE-2024-4397
At a glance
CVE-2024-4397 is a high-severity Unrestricted Upload of File with Dangerous Type vulnerability in the LearnPress WordPress plugin, affecting versions <= 4.2.6.5. It carries a CVSS score of 8.8 (reachable over the network; low attack complexity; high confidentiality, integrity, availability impact). Exploitation requires an authenticated account at Instructor level or above. The issue is fixed in version 4.2.6.6; sites on affected versions should update now. Disclosed May 2024, reported by JoanClarke2.
Vulnerability Overview
The LearnPress – WordPress LMS Plugin plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the 'save_post_materials' function in versions up to, and including, 4.2.6.5. This makes it possible for authenticated attackers, with Instructor-level permissions and above, to upload arbitrary files on the affected site's server which may make remote code execution possible.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.
CWE-434: Unrestricted Upload of File with Dangerous Type
LearnPress <= 4.2.6.5 carries this weakness at save_post_materials, and reaching it takes an account at Instructor level or above. An unrestricted file upload lets a caller store a file whose type or destination the application does not properly constrain.
If an uploaded file lands anywhere the server will execute, the flaw becomes remote code execution and the site should be treated as fully compromised. For LearnPress the fix is 4.2.6.6: builds <= 4.2.6.5 are affected, anything from 4.2.6.6 onward is not.
Remediation
Update to version 4.2.6.6, or a newer patched version
How does WordSec protect against this?
An attacker needs Instructor access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: LearnPress 4.2.6.6 closes this, and updating the plugin is the step that ends it.
- Firewall
- Scanner
- Alerts
External References
Related records
Other vulnerabilities in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses
- 10.0CVE-2024-8529: LearnPress – WordPress LMS Plugin SQL Injection
CVE-2024-8529 - 10.0CVE-2024-8522: LearnPress – WordPress LMS Plugin SQL Injection
CVE-2024-8522 - 9.8CVE-2024-4434: LearnPress – WordPress LMS Time-Based SQL Injection
CVE-2024-4434 - 9.8CVE-2023-6567: LearnPress <= 4.2.5.7 SQL Injection
CVE-2023-6567 - 9.8CVE-2022-45808: LearnPress <= 4.1.7.3.2 SQL Injection
CVE-2022-45808 - 9.8CVE-2022-47615: LearnPress <= 4.1.7.3.2 Local File Inclusion
CVE-2022-47615 - 9.8CVE-2022-3360: LearnPress <= 4.1.7.1 PHP Object Injection
CVE-2022-3360 - 9.8CVE-2021-24951: LearnPress <= 4.1.3 SQL Injection
CVE-2021-24951
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C