CVE-2024-8529
published 2024-09-12CVE-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
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| thimpress | learnpress | < 4.2.7.1 | 4.2.7.1 |
| thimpress | learnpress_wordpress_lms_plugin_for_create_and_sell_online_courses | <= 4.2.7 | — |
Detection & IOCsextracted from sources · hover to see the quote
- →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.
GHSA
GHSA-98wp-w76v-f75p: 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/a
ghsa_unreviewed·2024-09-12
CVE-2024-8529 [CRITICAL] CWE-89 GHSA-98wp-w76v-f75p: 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/a
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.
VulnCheck
thimpress learnpress Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
vulncheck·2024·CVSS 10.0
CVE-2024-8529 [CRITICAL] thimpress learnpress Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
thimpress learnpress Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
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: thimpress learnpress
Required Action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or
No detection rules found.
Metasploit
WordPress LearnPress Unauthenticated SQLi (CVE-2024-8522, CVE-2024-8529)
metasploit·CVSS 7.5
CVE-2024-8522 [HIGH] WordPress LearnPress Unauthenticated SQLi (CVE-2024-8522, CVE-2024-8529)
WordPress LearnPress Unauthenticated SQLi (CVE-2024-8522, CVE-2024-8529)
The LearnPress WordPress LMS Plugin up to version 4.2.7 is vulnerable to SQL injection via the 'c_only_fields' and 'c_fields' parameters. This allows unauthenticated attackers to exploit blind SQL injections and extract sensitive information.
Nuclei
LearnPress < 4.2.7.1 - SQL Injection
nuclei·CVSS 7.5
CVE-2024-8529 [HIGH] LearnPress < 4.2.7.1 - SQL Injection
LearnPress =8'
- 'status_code == 200'
- 'contains(content_type, "application/json")'
condition: and
# digest: 4b0a00483046022100f57ff5ab94c610b62a58fc142d9015a89cd245308f6c8256f48190feb1b77625022100f6755fee795cc1ededa20513c2bf77040edf442500fa7d62a11b1013b68ee4a9:922c64590222798bb761d5b6d8e72950
No writeups or analysis indexed.
2024-09-12
Published
Exploited in the wild