Rapid7 Vulnerability & Exploit Database

Wordpress Plugin WooCommerce Payments Unauthenticated Admin Creation

Back to Search

Wordpress Plugin WooCommerce Payments Unauthenticated Admin Creation

Disclosed
03/22/2023
Created
07/11/2023

Description

WooCommerce-Payments plugin for Wordpress versions 4.8', '4.8.2, 4.9', '4.9.1, 5.0', '5.0.4, 5.1', '5.1.3, 5.2', '5.2.2, 5.3', '5.3.1, 5.4', '5.4.1, 5.5', '5.5.2, and 5.6', '5.6.2 contain an authentication bypass by specifying a valid user ID number within the X-WCPAY-PLATFORM-CHECKOUT-USER header. With this authentication bypass, a user can then use the API to create a new user with administrative privileges on the target WordPress site IF the user ID selected corresponds to an administrator account.

Author(s)

  • h00die
  • Michael Mazzolini
  • Julien Ahrens

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/scanner/http/wp_woocommerce_payments_add_user
msf auxiliary(wp_woocommerce_payments_add_user) > show actions
    ...actions...
msf auxiliary(wp_woocommerce_payments_add_user) > set ACTION < action-name >
msf auxiliary(wp_woocommerce_payments_add_user) > show options
    ...show and set options...
msf auxiliary(wp_woocommerce_payments_add_user) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;