Command Injection in LearnPress get_content Function
The LearnPress plugin for WordPress, up to and including version 4.2.5.7, contains a command injection vulnerability in the get_content function. The vulnerability arises from the use of call_user_func with user-supplied input, allowing unauthenticated attackers to execute arbitrary public functions that accept a single parameter. This can lead to remote code execution on the affected WordPress instance.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows unauthenticated remote attackers to execute arbitrary code on the server, potentially leading to full compromise of the WordPress site and underlying server, data theft, site defacement, or further lateral movement within the hosting environment.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, disable the LearnPress plugin or restrict access to the affected functionality. Employ web application firewalls (WAF) to block suspicious requests targeting the vulnerable endpoint. Monitor logs for signs of exploitation attempts.
Patch, then assume compromise.
Upgrade LearnPress to a version after 4.2.5.7 where the use of call_user_func with user input is properly sanitized or removed. Ensure that all user input is validated and that only intended functions can be called.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.