CVE-2024-7857
Description
The Media Library Folders plugin for WordPress is vulnerable to second order SQL Injection via the 'sort_type' parameter of the 'mlf_change_sort_type' AJAX action in all versions up to, and including, 8.2.2 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with subscriber-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Affected WordPress components
-
Media Library Folders Plugin · media-library-plusUp to and including 8.2.2View on WordPress.org
A confirmed match is backed by the plugin or theme slug. A possible match is based on the product name only and should be verified.
Affected products and versions
- maxfoundry Media Library Folders — Up to and including 8.2.2
- maxfoundry media_library_folders — Up to and including 8.2.2
- maxfoundry media_library_folders — Before 8.2.3
References
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/media-library-plus/tags/8.2.2/media-library-plus.php#L1766 Product
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/media-library-plus/tags/8.2.2/media-library-plus.php#L3339 Product
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/changeset/3139954/media-library-plus/trunk/media-library-plus.php Patch
- www.wordfence.com https://www.wordfence.com/threat-intel/vulnerabilities/id/d2266254-9281-4859-8630-f7bb5c0ead19?source=cve Third Party Advisory
- nvd.nist.gov Official NVD record