CVE-2024-8522CWE-89

LearnPress – WordPress LMS Plugin <= 4.2.7 - Unauthenticated SQL Injection via 'c_only_fields'

Critical · published September 12, 2024

Patch now

High probability of exploitation

CVSS calls it critical at 10.0. It sits in the 99.2th percentile for exploit probability.

CVSS v3.1
10.0
EPSS
63%
Percentile
99.2
In the wild
Unconfirmed
What it is

🚨 A single parameter can turn your courses into an open book for attackers! A vulnerability in the LearnPress plugin for WordPress allows unauthenticated SQL injection through the 'c_only_fields' parameter. 🔥 Think of it like a restaurant where customers can sneak in their own ingredients without the chef checking what’s on the menu. If the chef isn’t careful, a rogue ingredient could end up in the main dish, potentially spoiling the entire meal! With this SQL injection flaw, an attacker could execute additional SQL queries, gaining unauthorized access to sensitive information stored in your database. This means they could potentially expose user data, course materials, and any other critical information, leaving your site vulnerable to catastrophic breaches!

Put simply

Think of it like a restaurant where customers can sneak in their own ingredients without the chef checking what’s on the menu. If the chef isn’t careful, a rogue ingredient could end up in the main dish, potentially spoiling the entire meal! The vulnerability stems from improper escaping of the 'c_only_fields' parameter in the LearnPress REST API endpoint, allowing attackers to manipulate existing SQL queries to extract data. This makes it a high-risk target for data breaches in versions up to 4.2.7.

What to do

With this SQL injection flaw, an attacker could execute additional SQL queries, gaining unauthorized access to sensitive information stored in your database. This means they could potentially expose user data, course materials, and any other critical information, leaving your site vulnerable to catastrophic breaches! Immediately update the LearnPress plugin to version 4.2.8 or later to patch this vulnerability. Additionally, review your database permissions and consider implementing prepared statements for database queries to enhance security. 🛡️ You've got this! By taking these steps, you'll be a security hero, protecting your site and users from this critical threat! 💪🎉

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.62882 · 99.2th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2024-09-12T08:30Z
EPSS history
Timeline
  • 12 SEP 08:30Z
    LearnPress – WordPress LMS Plugin <= 4.2.7 - Unauthenticated SQL Injection via 'c_only_fields'
    cvelistv5