Exploit database

Vulnerability

CVE-2024-8522

LearnPress – WordPress LMS Plugin <= 4.2.7 - Unauthenticated SQL Injection via 'c_only_fields'

Vulnerability details

Score
10.0
Severity
critical

CVSS 3.1 · Wordfence

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

2 sources
12442rf/poc
GH-3a840c3a743e0417793b49231edf2d51GitHubUnofficial GitHub source

12442rf/poc source repository

2025-05-0612 files · 1 stars