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

What LogPulse has for it

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

  1. In WordPress admin open Plugins and update LearnPress to 4.2.7.1 or later.
  2. 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.

Start free with LogPulse