Critical · 9.1 WordPress 1a53bcf5-61ed-427c-9efd-29c9309d2426
BuddyPress XProfile Custom Image Field (<= 3.1.0): Unauthenticated Arbitrary File Deletion
The BuddyPress XProfile Custom Image Field plugin for WordPress, in all versions up to and including 3.1.0, allows unauthenticated attackers to delete arbitrary files on the server via a flaw in the signup image field activation handler. No fix is currently available.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A vulnerability has been disclosed in the BuddyPress XProfile Custom Image Field plugin for WordPress, affecting all versions up to and including 3.1.0. The flaw allows an unauthenticated attacker to delete arbitrary files on a server running the plugin, which, depending on which file is targeted, can lead to further compromise including remote code execution. As of publication, no patched version has been released.
What happened
Wordfence Intelligence disclosed that the BuddyPress XProfile Custom Image Field plugin for WordPress contains a flaw that lets an unauthenticated attacker delete arbitrary files on the server. The issue is located in the function that handles activation of pending user signups when a profile image field is present on the registration form.
Technical cause
The function bpxp_image_field_update_on_user_activation() calls unlink() on a file path that is built directly from visitor-supplied signup metadata. The plugin does not resolve the path with realpath(), does not verify that the resulting path is contained within the intended profile-image directory, and does not restrict the value to allowed file extensions. An attacker can submit a zero-byte file using the 'field_N_hidden' parameter during the registration process. The plugin stores this raw value, and when the pending signup is later activated, the value is resolved against the document root and passed to unlink(), resulting in deletion of an attacker-chosen file.
Why it matters
Because the path is not restricted to the profile-image directory and no extension allow-list is enforced, an attacker can target files outside the intended scope. If a sensitive file such as wp-config.php is deleted, this can lead to remote code execution on the affected site, since WordPress will attempt to regenerate configuration through its setup process, which an attacker could potentially hijack. The vulnerability requires no authentication and no user interaction beyond submitting a registration request.
Who is affected
Sites running the BuddyPress XProfile Custom Image Field plugin are affected only if two conditions are met: the site has open user registration enabled, and an image-type profile field is present on the signup form. Sites without open registration, or without an image field on the signup form, are not exposed to this specific attack path.
Affected versions
All versions of the BuddyPress XProfile Custom Image Field plugin from version 0 up to and including version 3.1.0 are affected.
Fixes and mitigation
No fixed version is available at this time. Until a patch is released, site administrators should consider disabling open registration or removing image-type fields from the registration form to eliminate the required attack conditions. Administrators may also consider deactivating the plugin until a fix is published.
Recommended action
Site owners running this plugin should disable open user registration or remove the image profile field from signup forms as an immediate mitigation. Monitor the vendor and Wordfence Intelligence for a security update, and apply it as soon as one becomes available. If wp-config.php or other critical files are found missing, treat the site as potentially compromised and restore from a known-good backup.
PatchBriefing score
9.1 / 10 · Critical
Official CVSS: 9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- BuddyPress XProfile Custom Image Field *-3.1.0
- vulnerable
Reported fixes
No fixed version is available at this time. Until a patch is released, site administrators should consider disabling open registration or removing image-type fields from the registration form to eliminate the required attack conditions. Administrators may also consider deactivating the plugin until a fix is published.
How this was built
1 source records were collected, matched and used to prepare the report above.
-
Wordfence Intelligence scanner
Revision history
- Published
- Generated