CVE-2024-8522 in thimpress learnpress
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
The LearnPress – WordPress LMS Plugin plugin for WordPress is vulnerable to SQL Injection via the 'c_only_fields' parameter of the /wp-json/learnpress/v1/courses 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 software: thimpress learnpress
Scores
- CVSS: 7.5 (high)
- EPSS: 62.88% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2024-09-12
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Update LearnPress to 4.2.7.1 or later
Patch or upgrade. LearnPress up to 4.2.5.7 puts the order_by parameter (CVE-2023-6567) and up to 4.2.7 the c_only_fields parameter (CVE-2024-8522) of its REST routes into SQL without escaping. Version 4.2.7.1 fixes both injections.
Applies to: LearnPress WordPress LMS plugin 4.2.7 and earlier
- In WordPress admin open Plugins and update LearnPress to 4.2.7.1 or later.
- Search the access log for learnpress/v1/courses and lp/v1 requests with quotes or brackets in c_only_fields or order_by.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.