CVE-2024-7857CWE-89

Media Library Folders <= 8.2.2 - Authenticated (Subscriber+) Second-Order SQL Injection

Medium · published August 29, 2024

CVSS v3.1
6.5
EPSS
0%
Percentile
38.2
In the wild
Unconfirmed
What it is

⚠️ An authenticated user can sneak in extra SQL queries via the 'sort_type' parameter in the Media Library Folders plugin for WordPress, turning a simple request into a data extraction tool! 🔍 Think of it like a diner who can add extra items to an already placed order without the kitchen checking the original ticket. If unchecked, the kitchen (database) is left scrambling to fulfill unexpected requests! This vulnerability allows attackers with just subscriber-level access to modify existing database queries, potentially extracting sensitive information. If exploited, this could lead to unauthorized access to user data or other confidential information, making it a serious concern for site administrators.

Put simply

Think of it like a diner who can add extra items to an already placed order without the kitchen checking the original ticket. If unchecked, the kitchen (database) is left scrambling to fulfill unexpected requests! The Media Library Folders plugin allows second-order SQL Injection through insufficiently escaped user input in the 'sort_type' parameter of the 'mlf_change_sort_type' AJAX action. This enables attackers to append their own SQL queries to existing ones, which poses a risk to the database integrity.

What to do

This vulnerability allows attackers with just subscriber-level access to modify existing database queries, potentially extracting sensitive information. If exploited, this could lead to unauthorized access to user data or other confidential information, making it a serious concern for site administrators. To mitigate this vulnerability, update the Media Library Folders plugin to version 8.2.3 or later, ensuring that all user inputs are properly sanitized and validated before processing. It's also a good idea to review user permissions and limit access as necessary. You've got this! By following these steps, you'll keep your WordPress site secure and running smoothly! 🛡️

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00451 · 38.2th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2024-08-29T02:31Z
EPSS history
Timeline
  • 29 AUG 02:31Z
    Media Library Folders <= 8.2.2 - Authenticated (Subscriber+) Second-Order SQL Injection
    cvelistv5