CVE-2024-8522
CRITICAL EXPLOITED NUCLEILearnPress - WordPress LMS Plugin <4.2.7 - SQL Injection
Title source: llmExploitation Summary
CVE-2024-8522 has been observed exploited in the wild (reported by VulnCheck KEV).
EIP tracks 3 public exploits from researchers including Francisco Moraga (BTshell), Avento, abrahack, Valentin Lobstein, Achref Ben Thameur a.k.a achrefthameur, including a Metasploit module auxiliary/scanner/http/wp_learnpress_c_fields_sqli.
A Nuclei detection template is also available.
AI-analyzed exploit summary The provided exploit demonstrates a SQL injection vulnerability in the LearnPress WordPress plugin (versions <= 4.2.7) via the unauthenticated API endpoint parameter 'c_only_fields'. The PoC includes a Python script that tests for the vulnerability by measuring response time delays caused by injected SQL payloads.
Description
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.
Exploits (3)
The provided exploit demonstrates a SQL injection vulnerability in the LearnPress WordPress plugin (versions <= 4.2.7) via the unauthenticated API endpoint parameter 'c_only_fields'. The PoC includes a Python script that tests for the vulnerability by measuring response time delays caused by injected SQL payloads.
This repository contains a proof-of-concept for an unauthenticated SQL injection vulnerability in LearnPress WordPress LMS Plugin versions <= 4.2.7. The exploit leverages the 'c_only_fields' parameter in a REST API endpoint to inject malicious SQL payloads, demonstrated via a time-based blind SQLi technique.
This Metasploit module exploits unauthenticated SQL injection vulnerabilities (CVE-2024-8522 and CVE-2024-8529) in the LearnPress WordPress LMS Plugin via the 'c_only_fields' and 'c_fields' parameters. It uses time-based blind SQL injection to extract sensitive information such as user credentials.
Nuclei Templates (1)
html:"/wp-content/plugins/learnpress"
body="/wp-content/plugins/learnpress"
References (4)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H