Description
The WordPress File Upload plugin for WordPress is vulnerable to Arbitrary File Deletion in versions up to, and including, 5.3.1 via the 'wfu_ajax_action_handshake' and 'wfu_ajax_action_send_email_notification' AJAX Actions. This is due to the unauthenticated handshake accepting a 'sid' parameter sanitized only with sanitize_text_field(), which does not strip '[', ']', '{', or '}', allowing the sid to be crafted as an item name containing embedded delimiter pairs that plant forged records for arbitrary other item names — including the per-session file path list and the consent flag — in the plugin's shared concatenated user-state option store, combined with the notification handler being gated only by a nonce freely minted by the same nopriv handshake. This makes it possible for unauthenticated attackers to delete arbitrary files on the affected site's server which may make remote code execution possible.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
- www.wordfence.com/threat-intel/vulnerabilities/id/dd126758-04c9-4c7e-8d26-8b11aa6110e7?sou
- plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_functions.php#L3706
- plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_functions.php#L6902
- plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_ajaxactions.php#L82
- plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_ajaxactions.php#L199
- plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_functions.php#L5739
- plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_functions.php#L5426
- plugins.trac.wordpress.org/browser/wp-file-upload/tags/5.3.0/lib/wfu_functions.php#L8046
- plugins.trac.wordpress.org/changeset?old_path=/wp-file-upload/tags/5.3.0&new_path=/wp-file
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.