一、 漏洞 CVE-2024-8529 基础信息
漏洞信息
                                        # LearnPress – WordPress LMS Plugin <= 4.2.7 - 无需认证的SQL注入攻击通过'c_fields'参数完成

## 漏洞概述
LearnPress – WordPress LMS Plugin插件存在SQL注入漏洞,攻击者可以通过`c_fields`参数在REST API接口中注入恶意SQL代码,从而获取数据库中的敏感信息。

## 影响版本
所有版本直到包括4.2.7均受影响。

## 细节
攻击者可以通过`/wp-json/lp/v1/courses/archive-course` REST API接口中的`c_fields`参数提交未经充分转义的用户输入。插件在处理SQL查询时缺乏充分准备,导致用户输入可以附加到现有的SQL查询中,从而使攻击者能够注入任意SQL代码。

## 影响
该漏洞允许未认证的攻击者通过SQL注入攻击从数据库中提取敏感信息。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
LearnPress – WordPress LMS Plugin <= 4.2.7 - Unauthenticated SQL Injection via 'c_fields'
来源:美国国家漏洞数据库 NVD
漏洞描述信息
The LearnPress – WordPress LMS Plugin plugin for WordPress is vulnerable to SQL Injection via the 'c_fields' parameter of the /wp-json/lp/v1/courses/archive-course 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.
来源:美国国家漏洞数据库 NVD
CVSS信息
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
来源:美国国家漏洞数据库 NVD
漏洞类别
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
来源:美国国家漏洞数据库 NVD
漏洞标题
WordPress plugin LearnPress SQL注入漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress plugin LearnPress 4.2.7版本及之前版本存在SQL注入漏洞,该漏洞源于对用户提供的参数转义不足以及对现有SQL查询准备不足。攻击者利用该漏洞可以从数据库中提取敏感信息。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
SQL注入
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2024-8529 的公开POC
# POC 描述 源链接 神龙链接
1 LearnPress – WordPress LMS Plugin <= 4.2.7 - Unauthenticated SQL Injection via 'c_fields' https://github.com/RandomRobbieBF/CVE-2024-8529 POC详情
2 The LearnPress WordPress LMS Plugin before 4.2.7.1 is vulnerable to unauthenticated SQL injection via the 'c_fields' parameter in the /wp-json/lp/v1/courses/archive-course REST API endpoint, allowing attackers to extract sensitive information from the database. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-8529.yaml POC详情
三、漏洞 CVE-2024-8529 的情报信息