LearnPress – WordPress LMS Plugin <= 4.2.7 - Unauthenticated SQL Injection via 'c_only_fields'
No fixed version listed yet.Check the vendor advisory. References ↓
thimpress · LearnPress – WordPress LMS Plugin for Create and Sell Online Courses
The LearnPress WordPress LMS plugin (LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, by thimpress) contains an SQL injection flaw in the 'c_only_fields' parameter of its /wp-json/learnpress/v1/courses REST API endpoint, where user input is insufficiently escaped and the underlying SQL query is not properly prepared. An unauthenticated remote attacker, with no user interaction or special configuration required, can append additional SQL queries to existing ones to extract sensitive information from the site's database.
Official description · CVE.org
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.
- Exploited
- Yes, in VulnCheck KEV
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
First seen exploited the day it was disclosed. Public exploit code (Metasploit) was available 1 day before disclosure.
- Public exploit codeMetasploit1 day before
Affected versions and fixes
as published in the CVE recordthimpress LearnPress – WordPress LMS Plugin for Create and Sell Online Courses
Affected: <= 4.2.7