cbcvebase.
CVE-2024-8529
published 2024-09-12

CVE-2024-8529: The LearnPress – WordPress LMS Plugin plugin for WordPress is vulnerable to SQL Injection via the 'c_fields' parameter of the…

PriorityP181high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
11.83%
95.6th percentile
The LearnPress – WordPress LMS Plugin plugin for WordPress is vulnerable to SQL Injection via the 'c_fields' parameter of the /wp-json/lp/v1/courses/archive-course REST API endpoint in all versions up to, and including, 4.2.7 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

Affected

2 ranges
VendorProductVersion rangeFixed in
thimpresslearnpress< 4.2.7.14.2.7.1
thimpresslearnpress_wordpress_lms_plugin_for_create_and_sell_online_courses<= 4.2.7

Detection & IOCsextracted from sources · hover to see the quote

url/wp-json/lp/v1/courses/archive-course
path/wp-json/lp/v1/courses/archive-course
otherc_fields
otherc_only_fields
  • Monitor unauthenticated REST API requests to /wp-json/lp/v1/courses/archive-course containing 'c_fields' or 'c_only_fields' query parameters, especially with SQL metacharacters or payloads indicative of blind SQLi (e.g., time-based or boolean-based injection strings).
  • Flag HTTP 200 responses with Content-Type application/json to the vulnerable endpoint, as the Metasploit module uses these as success indicators for exploitation.
  • The vulnerability is exploitable by unauthenticated attackers; no session cookie or authentication token is required. Prioritize detections that do not filter on authenticated sessions.
  • A Metasploit auxiliary scanner module exists for this CVE (wp_learnpress_c_fields_sqli.rb), meaning automated exploitation is readily available. Expect scanner-pattern traffic with repeated requests to the REST endpoint.
  • ·The vulnerability affects LearnPress plugin versions up to and including 4.2.7. Ensure version-scoping in detections to reduce false positives on patched installations.
  • ·The Metasploit module covers two related CVEs (CVE-2024-8522 and CVE-2024-8529) via two different parameters (c_only_fields and c_fields respectively). Detection rules should account for both parameters to cover both CVEs.

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vulncheck10.0CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.