CVE-2024-8522

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:thimpress:learnpress:*:*:*:*:*:wordpress:*:*

History

13 Sep 2024, 16:12

Type Values Removed Values Added
References () https://plugins.trac.wordpress.org/browser/learnpress/trunk/inc/jwt/rest-api/version1/class-lp-rest-courses-v1-controller.php#L441 - () https://plugins.trac.wordpress.org/browser/learnpress/trunk/inc/jwt/rest-api/version1/class-lp-rest-courses-v1-controller.php#L441 - Product
References () https://plugins.trac.wordpress.org/changeset/3148560/learnpress/tags/4.2.7.1/inc/jwt/rest-api/version1/class-lp-rest-courses-v1-controller.php?old=3138586&old_path=learnpress%2Ftags%2F4.2.7%2Finc%2Fjwt%2Frest-api%2Fversion1%2Fclass-lp-rest-courses-v1-controller.php - () https://plugins.trac.wordpress.org/changeset/3148560/learnpress/tags/4.2.7.1/inc/jwt/rest-api/version1/class-lp-rest-courses-v1-controller.php?old=3138586&old_path=learnpress%2Ftags%2F4.2.7%2Finc%2Fjwt%2Frest-api%2Fversion1%2Fclass-lp-rest-courses-v1-controller.php - Patch
References () https://www.wordfence.com/threat-intel/vulnerabilities/id/e495507d-7eac-4f38-ab6f-b8f0809b2be4?source=cve - () https://www.wordfence.com/threat-intel/vulnerabilities/id/e495507d-7eac-4f38-ab6f-b8f0809b2be4?source=cve - Third Party Advisory
First Time Thimpress
Thimpress learnpress
CPE cpe:2.3:a:thimpress:learnpress:*:*:*:*:*:wordpress:*:*
CVSS v2 : unknown
v3 : 10.0
v2 : unknown
v3 : 7.5

12 Sep 2024, 12:35

Type Values Removed Values Added
Summary
  • (es) El complemento LearnPress – WordPress LMS Plugin para WordPress es vulnerable a la inyección SQL a través del parámetro 'c_only_fields' del endpoint de la API REST /wp-json/learnpress/v1/courses en todas las versiones hasta la 4.2.7 incluida, debido a un escape insuficiente en el parámetro proporcionado por el usuario y a la falta de preparación suficiente en la consulta SQL existente. Esto hace posible que atacantes no autenticados agreguen consultas SQL adicionales a consultas ya existentes que se pueden usar para extraer información confidencial de la base de datos.

12 Sep 2024, 09:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-09-12 09:15

Updated : 2024-09-13 16:12


NVD link : CVE-2024-8522

Mitre link : CVE-2024-8522

CVE.ORG link : CVE-2024-8522


JSON object : View

Products Affected

thimpress

  • learnpress
CWE
CWE-89

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')