Support

Devkit File Manager Vulnerability

Bruce Young
Bruce Young
Publish date: November 18, 2026

Hi,

I saw that DevKit was creating backup folders in the public_html folder on the server even though no websites are setup in the root. Claude AI took a look at the plugin an found the following.

I extracted and audited devkit.2.3.1.zip locally (isolated scratchpad, nothing executed). It’s genuinely DevKit Pro by DPlugins (dplugins.com) — a legitimate commercial WP admin-toolkit plugin. No obfuscated/backdoor code in it. But its File Manager module has a serious, specific flaw that fully explains your devkit-backups-<hash> folders at the account root:

1. No path containment — includes/file-manager/file-manager.php:854-866 (getRealPath()):

if($this->isWindows()) {
  $path = realpath(trim($path, DIRECTORY_SEPARATOR));
}
return $path;
 

On Linux/cPanel hosting (i.e. your server), the realpath() call that would collapse ../ traversal never runs. A POST’d path like ../../../ is passed straight through, unmodified, into mkdir(), copy(), unlink(), zip-extract, etc.

2. No permission check — every File Manager AJAX handler (ajax_create_folder, ajax_upload_file, ajax_delete_item, ajax_rename_item, ajax_move_item, ajax_compress_item, ajax_paste_item, ajax_download_item, ajax_change_permissions…) in file-manager.php and its near-duplicate file-manager-backup.php checks only a generic nonce (check_ajax_referer('ajax-nonce', 'verify_nonce')) — zero current_user_can() calls in either file. Every other module in this same plugin (backup-restore, users-manager, themes-installer, etc.) correctly gates with current_user_can('manage_options') — the File Manager module is the one glaring exception.

3. Generic, unprefixed action names — registered as wp_ajax_create_folder, wp_ajax_upload_file etc. (not wp_ajax_devkit_...), making them easy to target directly at admin-ajax.php.

Net effect: anyone who obtains a valid ajax-nonce (stolen session, XSS, CSRF, or a lower-privileged account) can create/write/delete/move files anywhere the PHP process can reach on disk — including straight out of the WordPress install into your account root, which is exactly where the devkit-backups-<hash> folders are sitting. The name is almost certainly chosen deliberately to blend in with the plugin’s own legitimate backup naming so it looks innocuous on a casual glance.

Leave a Reply