.. / CVE-2024-3136

Exploit for WordPress Plugin MasterStudy LMS <= 3.3.3 - Unauthenticated Local File Inclusion (CVE-2024-3136)

Description:

The MasterStudy LMS plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 3.3.3 via the ‘template’ parameter. This makes it possible for unauthenticated attackers to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other “safe” file types can be uploaded and included.

Affected Products:

Proof of Concept

PoC exploit

Nuclei Template

View the template here CVE-2024-3136.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2024/CVE-2024-3136.yaml
Copy

References:

https://nvd.nist.gov/vuln/detail/CVE-2024-3136
https://plugins.trac.wordpress.org/changeset/3064337/masterstudy-lms-learning-management-system/trunk/_core/lms/classes/helpers.php
https://plugins.trac.wordpress.org/changeset/3064337/masterstudy-lms-learning-management-system/trunk/_core/lms/classes/templates.php
https://www.wordfence.com/threat-intel/vulnerabilities/id/9a573740-cdfe-4b58-b33b-5e50bcbc4779?source=cve
https://github.com/drdry2/CVE-2024-3136-Wordpress-RCE