The W3 Total Cache plugin for WordPress is vulnerable to unauthorized File Deletion in all versions up to, and including, 2.11.0 via the ajaxrevert() AJAX handler. The vulnerability exists because the removeoptimizations() function reads attacker-controlled values from the unprotected w3tcimageservice post meta key — which carries no underscore prefix and no registered authorization callback, making it writable by any user with editpost capability via WordPress's built-in custom-fields AJAX endpoint — and passes those values directly to wpdeleteattachment() with no check that the referenced ID is a child of the caller's own post, is an actual attachment, or that the caller holds deletepost capability on it. This makes it possible for authenticated attackers with Author-level access or above to permanently delete any WordPress attachment in the media library, including media files owned by other users along with their associated files on disk, regardless of ownership — a capability not available through the normal WordPress interface. The revert nonce is exposed via wplocalizescript on /wp-admin/upload.php to any user with uploadfiles capability, ensuring the nonce check that is present does not serve as a meaningful barrier to Author-level exploitation.
Author Broken Access Control in W3 Total Cache <= 2.9.1 versions.
Improper Validation of Specified Quantity in Input vulnerability in BoldGrid W3 Total Cache w3-total-cache allows Accessing Functionality Not Properly Constrained by ACLs.This issue affects W3 Total Cache: from n/a through <= 2.9.1.