CVE-2023-6567
LearnPress <= 4.2.5.7 - Unauthenticated SQL Injection via order_by
Record summary
CVE-2023-6567 has a selected CVSS score of 9.8 (critical); EIP currently links 1 repository PoC and 1 Nuclei template.
Description
The LearnPress plugin for WordPress is vulnerable to time-based SQL Injection via the ‘order_by’ parameter in all versions up to, and including, 4.2.5.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.
Exploitation context
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
LearnPress – WordPress LMS Plugin for Create and Sell Online CoursesBrowse thimpress / LearnPress – WordPress LMS Plugin for Create and Sell Online CoursesDefault status: unaffected | CVE List | Through 4.2.5.7 | affected |
learnpressBrowse thimpress / learnpress | VulnCheck | Version data not supplied | |
Proofs of concept
1Repository PoCs
GitHubmimiloveexe/CVE-2023-6567-pocRepository PoCby mimiloveexeStars: 0Not analyzed1 file
Nuclei templates
1ProjectDiscoveryHIGHLearnPress <= 4.2.5.7 - SQL InjectionCVSS 7.5
The LearnPress plugin for WordPress is vulnerable to time-based SQL Injection via the 'order_by' parameter in all versions up to, and including, 4.2.5.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.
Impact
Unauthenticated attackers can execute time-based SQL injection through the order_by parameter to extract the complete WordPress database including user credentials and course data.
Remediation
Fixed in version 4.2.5.8
Source: ProjectDiscovery