UserPro - Community und Benutzerprofil WordPress Plugins

UserPro - Community und Benutzerprofil WordPress Plugins 5.1.19

Kostenloser Download mit Konto
Security release. Please update.

- Security: Authenticated (Subscriber and above) stored cross-site
scripting through the profile background field (custom_profile_bg).
CVE-2026-131644 / Wordfence report #487032, discovered by Duc Manh.
Affects versions up to and including 5.1.17. The profile-background
value was printed unescaped inside the url() of a <style> block, so
a subscriber could store JavaScript that ran when anyone, including
an administrator, viewed their profile. The reported path was fixed
in 5.1.18; this release also fixes the professional profile layout
(the "modern" layout, up_modern_layout=4), which read profile values
straight from user meta and printed the cover image, the display
name and every profile field and link without escaping. All of those
now escape their output.

- Security: CSS-context hardening of the profile background. esc_url()
removes the characters that would break out of the <style> block into
HTML but leaves ")" and ";", which still break out of url(...) into
the stylesheet. Background URLs are now quoted and percent-encoded,
and the profile-background field is accepted only when it is a
raster-image URL, so a stored value that is not an image is dropped
rather than written into the page.
Security release. Please update.

- Security: Unauthenticated privilege escalation through registration
(critical, CVSS 9.8). Reported through Wordfence by 0xd4rk5id3.
default_role() is the function that assigns a role to a newly
registered account. Its only restriction was a case-sensitive
comparison against the literal string "administrator", so any other
value supplied in the request was passed straight to set_role(),
including capability names such as create_users or manage_options.
The Facebook Connect registration branch handed the raw request array
to new_user() without the allow-list check that the normal
registration form applies, so an unauthenticated visitor could create
an account holding an arbitrary capability and then use the WordPress
REST API to create a full administrator account.
A requested role is now accepted only when it appears in the
configured Allowed Roles list and is a role actually registered with
WordPress, which also rejects capability-shaped strings.
"administrator" is never assignable during registration regardless of
configuration, and unusable values fall back to the configured default
and then to subscriber. The same resolution is applied to the role
taken from the session. As defence in depth the Facebook branch no
longer passes the raw request array into new_user() and strips the
role and capability keys before it does.
Administrator-initiated role changes in the admin screens are
unaffected: they do not pass through this function.
(functions/api.php, functions/ajax.php)

- Security: Unauthenticated account takeover via Facebook Connect
(critical). The userpro_fbconnect endpoint verified the caller's
Facebook access token against the Graph API, but then selected which
account to log in using a separate social id taken from the request.
That id is produced in the browser from public values only (the first
eight characters of the public Facebook app id, DES encrypted over the
Facebook user id, then hex encoded) and contains no server secret, so
it could be submitted for any account and the server would reproduce
the stored value and log the caller in with no password. The id
returned by the verified Graph API response was fetched and never
compared against it.
Every login path in the handler is now bound to the email address that
Facebook confirmed for the presented access token, through the new
userpro_fb_identity_matches() check. This covers the returning social
id path, the existing email path and the username match path, the last
of which previously logged a caller into any account whose username
happened to match the Facebook first and last name with no email check
at all. Where a stored social id matches an account whose email is not
the verified one, the request now stops with a message asking the user
to sign in with their password and reconnect Facebook, rather than
creating a duplicate account. (functions/ajax.php)

- Security: Missing authorisation on the connection endpoints. Accepting
a connection request wrote into the target user's meta without
checking that the target had ever sent a request, so any logged in
user could force a connection to any account. On sites that gate
profile fields behind connections this exposed private profile data.
Accepting now requires a matching pending request, all three endpoints
require a logged in caller, and the user id is cast to a whole number
and confirmed to exist. (functions/ajax.php)

- Security: Activity feed disclosure. The refresh and load activity
endpoints took the feed owner's user id from the request, so anyone,
including visitors who were not logged in, could read another member's
private following feed by passing their id. The private feed is only
ever rendered for the viewer's own account, so the owner is now always
the current user. A posted zero still selects the public all users
feed, so the open to all mode is unchanged. The activity_user filter
is now restricted to the literal "self" or a list of user ids.
(addons/social/functions/ajax.php)

- Security: Login CSRF in Google sign in. The callback accepted any
authorization code delivered to it, because the OAuth state was
generated, sent to Google and then discarded: it was only written to
the session inside a branch the callback never reaches. An attacker
could therefore cause a visitor's browser to complete a Google sign in
the visitor never started, landing them in an account the attacker
controls. The state is now recorded when the authorization URL is
built and verified with hash_equals() on return, once only, and the
sign in is rejected if it does not match.
(functions/socials/GoogleAuth.php)

- Security: Exported user list was readable by anyone who guessed the
file name. The CSV of every exported user, email addresses included,
was written into the uploads folder as a Unix timestamp plus ".csv",
which is trivially guessable, and is served with no access control.
The name is now 32 random hex characters. This also fixes a bug that
could produce a dead download link: the timestamp was recalculated
when the link was built, so an export that crossed a second boundary
linked to a file that did not exist.
(admin/admin.php)

- Hardening: folders the plugin creates inside uploads are no longer
created world-writable (0777). The downloads folder, the plugin's
upload base folder and per-user upload folders now use WordPress's
configured directory permissions, 0755 by default.
(admin/admin.php, functions/api.php)

- Security: SQL injection in the admin user export. The row limit was
interpolated into the query string before $wpdb->prepare() ran, which
prepare() cannot sanitise. It is now a %d placeholder and the value is
cast to a whole number. Reachable only by an administrator holding
manage_options. (admin/admin.php)

- Security: Reflected cross site scripting on the badges admin screen.
The bid query parameter was echoed into an input value unescaped. It
is now cast to a whole number and escaped. Reachable only by an
administrator holding manage_options. (addons/badges/admin/panels/manage.php)

- Fix: PHP 8 fatal error in the bundled Campaign Monitor library.
services_json.php used the curly brace string offset syntax removed in
PHP 8.0 in 38 places, so saving a registration or profile with a
newsletter field ticked crashed on any PHP 8 site with Campaign
Monitor configured. Converted to square bracket offsets.
(lib/campaignmonitor/class/services_json.php)

- Fix: PHP fatal error in the Mailster subscriber check.
mailchimp_is_subscriber() required a file through a
MAILSTER_DIR_USERPRO constant that this plugin never defines, so the
call crashed whenever Mailster integration was on, no MailChimp key
was set and a newsletter field rendered. The require and the unused
subscriber object have been removed; the query below them does the
work. (functions/api.php)
- Fix: reCAPTCHA v2 field showed only its label on the registration,
login and edit forms, with no "I'm not a robot" widget.
Three separate causes, all fixed:
(1) admin/admin-functions.php printed the site key twice for the same
field on the Groups & Fields screen, once as a text input and again
as a hidden input holding the previously saved value. The hidden
copy came later in the form, so saving the group always overwrote
the key the administrator had just typed with the old (usually
empty) one. The key could never be saved from that screen.
(2) functions/fields-functions.php printed the site key into an
unquoted HTML attribute (data-sitekey=VALUE). An empty key, or a
key pasted with a leading or trailing space, produced invalid
markup and Google rendered nothing. The value is now quoted and
escaped, whitespace is trimmed, and when no key is stored an
explanatory notice is shown to administrators only, in place of
the blank space.
(3) the widget relied on Google's automatic rendering with a copy of
api.js printed per field. It is now loaded once per page in
explicit-render mode, so the widget also appears on forms loaded
by ajax and on pages where another plugin has already loaded
api.js. Containers another plugin has already rendered into are
left alone.
- Fix: the "Please confirm the Captcha." error was never displayed
unless the reCAPTCHA field happened to use the meta key "recaptcha".
The error is now keyed on the field's own meta key, and the field
carries an element for the message to attach to, so submitting the
form without ticking the box now shows the error next to the widget
instead of failing silently.
- Fix: a newly created reCAPTCHA field now shows its Site Key box
immediately, instead of only after the Fields screen is reloaded.
- Security fix: Privilege escalation (CVSS 9.8, unauthenticated).
A guest registration could overwrite the new account's wp_capabilities
row by posting a field name containing a Unicode homoglyph in place of an
ASCII letter (e.g. U+0209 replacing 'i' in wp_capabilities). MySQL's
accent-insensitive meta_key collation matched the mutated key to the real
wp_capabilities row, and the previous remove_accents() denylist did not
cover all characters in that equivalence class.
Fixed in two layers:
(1) functions/ajax.php now applies sanitize_key() to every POST key when
building the form array, stripping all non-ASCII bytes before they
reach update_user_meta().
(2) functions/user-functions.php now rejects any meta key containing
non-ASCII bytes outright and uses sanitize_key() rather than
remove_accents() for the capabilities/user_level denylist, as
defense-in-depth for any caller that does not go through ajax.php.
Reported by YC_Infosec via Patchstack, 2026-10-06.
- Stability fix: PHP warning "Attempt to read property 'post_name' on null"
on archive pages, 404s, and any non-single-post context. get_post() returns
null on these pages; the userpro_title_tag filter was reading
$post->post_name without a null guard, emitting the warning in the site
header whenever UserPro was active but no post was in context.
(functions/hooks-actions.php)
- Performance fix: member directory custom-field sort now sorts and paginates
in the database query (meta_key + orderby=meta_value). Previously every
matching user was fetched, sorted in PHP, then sliced, and the pagination
total was miscalculated (page links ran to hundreds of empty pages).
- Stability fix: member directory now survives malformed page/search input.
?userp=abc, ?userp[]=1 and ?searchuser[]=x previously caused a PHP 8 fatal
(500); ?userp=-1 produced a negative SQL LIMIT. Page numbers are now cast
with absint() and a non-string search is ignored. Same absint() guard
applied to the Enhanced Member Directory / collage emd-page parameter.
- Performance fix: Enhanced Member Directory and collage now count matches with
a single COUNT query instead of fetching every matching user to count() them
(same fix already applied to the core member directory).
- Performance fix: userpro_badges_admin_users() is now capped at 500 rows via
the userpro_badges_admin_users_limit filter (previously fetched every
account on the site). Full user objects are kept so the badge user
dropdowns still show email addresses and load in a handful of queries.
- Removed dead get_pending_verify_requests_count() function from admin/admin.php
(zero callers; duplicate of the patched function in the requests addon).
- Security fix: SQL injection in the front-end post publish flow. The lookup
query in the 'publish' AJAX action concatenated post_content (which passes
through wp_kses without escaping quotes) into raw SQL; now uses
$wpdb->prepare(). Reachable by any logged-in user.
- Security fix: privilege/trust meta can no longer be set through a self-service
profile save. A denylist (filter: userpro_protected_profile_meta) blocks
userpro_verified, account status, connection lists, secret key, badge and
social-id meta from the profile-edit POST for non-admins. Previously any
logged-in user could set userpro_verified=1 on their own account.
- Security fix: the role-change guard in userpro_update_user_profile() used
is_admin(), which is always true during admin-ajax, so it never fired. Role
changes via profile save now require the promote_users capability.
- Security fix: userpro_crop_picupload AJAX action now requires a valid nonce
(previously none) and escapes the file link it returns (reflected XSS via the
src parameter).
- Security fix: SQL injection in the badges comment-count query
(count_user_comments) now uses $wpdb->prepare() with an integer cast.
- Security fix: social follow/unfollow AJAX now requires login and always uses
the current user as the follower (previously the follower id was taken from
the request, letting anyone forge follow relationships between any users).
- Hardening: user_id in the display-badges and post-sort AJAX actions is cast
with absint().
- Security fix: userpro_reset_option and userpro_user_invite AJAX actions now
require the manage_options capability. Both were registered for logged-out
users and gated by the public nonce only, so any visitor could reset all
plugin settings or send invitation emails to arbitrary addresses.
- Security fix: the protected-profile-meta check is now case-insensitive, so
variants like Userpro_Verified can no longer slip a value into the real
(case-insensitively matched) meta row.
- Fix: the profile picture/file crop AJAX now receives the security nonce from
the front-end script, so uploads keep working with the new nonce check.
- Fix: the legacy userpro_sc_follow / userpro_sc_unfollow AJAX actions called a
non-existent method and fataled on every request; they now use the same
follow API as the current handler (and still force the follower to the
logged-in user).
- Fix: UserPro admin screen now shows the correct version number (was stuck
at 5.1.11).
- Fix: restored bundled cacert.pem files (Campaign Monitor, Twitter libs) and
corrected the package folder name to "userpro" so uploads replace the
existing plugin instead of installing a second copy.
- Performance fix: memberlist pagination now applies to custom-field sort keys
(previously number/offset were only set for built-in sort keys, leaving
custom-field-sorted member directories completely unbounded).
- Performance fix: member directory search/filter total-count now uses a single
COUNT query instead of fetching up to 10,000 full user records.
- Performance fix: userpro_badges_admin_users() now fetches only ID and
user_login, capped at 500 rows via the userpro_badges_admin_users_limit
filter (previously fetched full WP_User objects for every account).
- Performance fix: "Delete badge from all users" now fetches only user IDs
before the per-user write loop (previously hydrated full WP_User objects).
- Performance fix: User Requests admin panels (both old and new) now use a
COUNT query for the pending-user header badges and cap the display list at
200 rows (previously fetched all pending users unbounded).
- Removed dead get_pending_verify_requests_count() function from admin/admin.php
(zero callers; duplicate of the patched function in the requests addon).
- Fixed bug: Issue that caused settings tabs to not display in the UserPro settings page.
- Security fix.
- Fixed bug: Register shortcode register_redirect fix.
- Fixed bug: Register Ajax error.
- Fixed bug: Saving Groups & Fields undefined key warning fix.
- Fixed bug: Error while viewing followers.
- Security fix.
- Fixed bug: Login shortcode login_redirect fix.
- Improved stability of user password changes.
Zurück
Oben