LifterLMS <= 10.3.1 - Authenticated (Contributor+) Local File Inclusion via 'lifterlms_checkout' Shortcode Attributes
What fixes it
No source in this snapshot names a fixed version.
Description
The LifterLMS – WP LMS for eLearning, Online Courses, & Quizzes plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 10.3.1 via attacker-controlled attributes of the [lifterlms_checkout] shortcode. This is due to the llms_get_template() helper performing extract() on the shortcode attribute array before resolving the template path, which allows the attacker-supplied 'template_name' and 'default_path' shortcode attributes to overwrite the function's local parameters and ultimately control the path passed to a PHP include. This makes it possible for authenticated attackers, with Instructor-level access and above, to include and execute arbitrary files on the server, that can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where files with safe extensions containing attacker-controlled content can be uploaded and included.
Text from CVE List
Affected versions 1
- LifterLMS – WP LMS for eLearning, Online Courses, & Quizzesaffected: all versions through 10.3.1CVE List
References 7
- wordfence.com/threat-intel/vulnerabilities/id/631c4d14-8b33-47ed-a2ff-68b2b2906b84?source=cveReferencevia CVE List
- plugins.trac.wordpress.org/browser/lifterlms/tags/10.3.1/includes/functions/llms.functions.template.php#L120Referencevia CVE List
- plugins.trac.wordpress.org/browser/lifterlms/tags/10.3.1/includes/functions/llms.functions.template.php#L102Referencevia CVE List
- plugins.trac.wordpress.org/browser/lifterlms/tags/10.3.1/includes/shortcodes/class.llms.shortcode.checkout.php#L138Referencevia CVE List
- plugins.trac.wordpress.org/browser/lifterlms/tags/10.3.1/includes/shortcodes/class.llms.shortcode.checkout.php#L200Referencevia CVE List
- plugins.trac.wordpress.org/browser/lifterlms/tags/10.3.1/includes/shortcodes/class.llms.shortcodes.php#L412Referencevia CVE List
- plugins.trac.wordpress.org/changeset/3736899/lifterlms/trunk/includes/functions/llms.functions.template.phpReferencevia CVE List