Changeset 3373763
- Timestamp:
- 10/06/2025 02:09:26 PM (3 months ago)
- Location:
- folder-auditor
- Files:
-
- 64 added
- 12 deleted
- 3 edited
-
tags/1.4 (deleted)
-
tags/2.0 (deleted)
-
tags/2.5 (deleted)
-
tags/2.6 (deleted)
-
tags/2.7 (deleted)
-
tags/2.8 (deleted)
-
tags/2.9 (deleted)
-
tags/2.9.1 (deleted)
-
tags/2.9.2 (deleted)
-
tags/2.9.3 (deleted)
-
tags/2.9.4 (deleted)
-
tags/2.9.5 (deleted)
-
tags/3.7 (added)
-
tags/3.7/assets (added)
-
tags/3.7/assets/admin.js (added)
-
tags/3.7/assets/logo.webp (added)
-
tags/3.7/assets/style.css (added)
-
tags/3.7/folder-auditor.php (added)
-
tags/3.7/includes (added)
-
tags/3.7/includes/class-wp-folder-auditor.php (added)
-
tags/3.7/includes/handlers (added)
-
tags/3.7/includes/handlers/handler-actions.php (added)
-
tags/3.7/includes/handlers/handler-content.php (added)
-
tags/3.7/includes/handlers/handler-htaccess.php (added)
-
tags/3.7/includes/handlers/handler-plugins.php (added)
-
tags/3.7/includes/handlers/handler-root.php (added)
-
tags/3.7/includes/handlers/handler-scanner.php (added)
-
tags/3.7/includes/handlers/handler-themes.php (added)
-
tags/3.7/includes/handlers/handler-uploads.php (added)
-
tags/3.7/includes/helpers (added)
-
tags/3.7/includes/helpers/admin.php (added)
-
tags/3.7/includes/helpers/health-score (added)
-
tags/3.7/includes/helpers/health-score/health-score-display.php (added)
-
tags/3.7/includes/helpers/health-score/health-score-functions.php (added)
-
tags/3.7/includes/helpers/html-export.php (added)
-
tags/3.7/includes/helpers/lock-system (added)
-
tags/3.7/includes/helpers/lock-system/folder-locker.php (added)
-
tags/3.7/includes/helpers/lock-system/traits (added)
-
tags/3.7/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_Actions.php (added)
-
tags/3.7/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_Assets.php (added)
-
tags/3.7/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_Cache.php (added)
-
tags/3.7/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_FS.php (added)
-
tags/3.7/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_FSModal.php (added)
-
tags/3.7/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_NoticesBar.php (added)
-
tags/3.7/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_Request.php (added)
-
tags/3.7/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_Status.php (added)
-
tags/3.7/includes/helpers/lock-system/traits/WPFA_Folder_Locker_Trait_Targets.php (added)
-
tags/3.7/includes/helpers/reports (added)
-
tags/3.7/includes/helpers/reports/index.html (added)
-
tags/3.7/includes/helpers/safe-paths.php (added)
-
tags/3.7/includes/helpers/scanner (added)
-
tags/3.7/includes/helpers/scanner/scanner.php (added)
-
tags/3.7/includes/helpers/security-headers.php (added)
-
tags/3.7/includes/helpers/user-security.php (added)
-
tags/3.7/includes/summaries (added)
-
tags/3.7/includes/summaries/summary-content.php (added)
-
tags/3.7/includes/summaries/summary-htaccess.php (added)
-
tags/3.7/includes/summaries/summary-plugins.php (added)
-
tags/3.7/includes/summaries/summary-root.php (added)
-
tags/3.7/includes/summaries/summary-themes.php (added)
-
tags/3.7/includes/summaries/summary-totals.php (added)
-
tags/3.7/includes/summaries/summary-uploads.php (added)
-
tags/3.7/includes/views (added)
-
tags/3.7/includes/views/view-content.php (added)
-
tags/3.7/includes/views/view-dashboard.php (added)
-
tags/3.7/includes/views/view-header.php (added)
-
tags/3.7/includes/views/view-htaccess-files.php (added)
-
tags/3.7/includes/views/view-html-export.php (added)
-
tags/3.7/includes/views/view-plugins.php (added)
-
tags/3.7/includes/views/view-root.php (added)
-
tags/3.7/includes/views/view-scanner.php (added)
-
tags/3.7/includes/views/view-security.php (added)
-
tags/3.7/includes/views/view-settings.php (added)
-
tags/3.7/includes/views/view-themes.php (added)
-
tags/3.7/includes/views/view-uploads.php (added)
-
tags/3.7/readme.txt (added)
-
trunk/folder-auditor.php (modified) (1 diff)
-
trunk/includes/helpers/scanner/scanner.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
folder-auditor/trunk/folder-auditor.php
r3372509 r3373763 7 7 * Description: Helps WordPress administrators quickly see what’s really on their server. It scans the root, wp-content, plugins, themes, uploads, and .htaccess files, then highlights anything unusual like orphaned folders, leftover files, or PHP hidden in uploads. From the admin dashboard, you can safely download or delete what doesn’t belong, while active and required resources are protected. This also allows you to lock all folders and files to make them read only and stop anyone from adding, removing or changing any physical folder or file present in your WordPress installation. 8 8 9 * Version: 3. 69 * Version: 3.7 10 10 11 11 * Author: WP Fix It -
folder-auditor/trunk/includes/helpers/scanner/scanner.php
r3372509 r3373763 789 789 '(?s)(?:OPENSSL_RAW_DATA.*substr\s*\(\s*hash\s*\(\s*[\'"]sha256[\'"]|substr\s*\(\s*hash\s*\(\s*[\'"]sha256[\'"].*OPENSSL_RAW_DATA|[\'"]<\s*\/?\s*scr?\s*[\'"]\s*\.\s*[\'"]r?ipt\s*>[\'"])', 790 790 '(?s)\$[A-Za-z_]\w*\s*=\s*\$_(?:POST|REQUEST)\s*;.*?isset\s*\(\s*\$[A-Za-z_]\w*\s*\[[\'"][a-z0-9_]{3,}[\'"]\]\s*\).*?\$\w+\s*\(\s*\.\.\.\$\w+\s*\)', 791 '(?s)readfile\s*\(\s*base64_decode\s*\(\s*["\'][^"\']{8,}["\']\s*\)\s*\)\s*;.*?eval\s*\(\s*.*?ob_get_clean\s*\(\s*\)\s*\)\s*;', 791 '(?s)readfile\s*\(\s*base64_decode\s*\(\s*["\'][^"\']{8,}["\']\s*\)\s*\)\s*;.*?eval\s*\(\s*.*?ob_get_clean\s*\(\s*\)\s*\)\s*;', 792 'function\s*uPqmvR\s*\(', 793 'function\s*yh1\s*\(', 794 '\bUpVwwHRQ\s*\(', 795 'array_map\(\s*[\'"]md5[\'"]\s*,\s*\$_COOKIE', 796 '\$gi6\[\d+\]\s*\(\s*\$_(?:COOKIE|POST|REQUEST)', 797 'include\s*\(\s*base64_decode\s*\(\s*\$[A-Za-z_]\w*\s*\)\s*(?:\.\s*)?\)\s*;', 798 'call_user_func\s*\(\s*new\s+LiteSpeedMetaDataStore' 792 799 ]; 793 800 … … 818 825 '(?s)readfile\s*\(\s*base64_decode\s*\(.*?\)\s*\).*?eval\s*\(\s*.*?ob_get_clean\s*\(\s*\).*?\)', 819 826 '\$[A-Za-z_]\w*\s*=\s*\$[A-Za-z_]\w*\s*\[[\'"][a-z0-9_]{3,}[\'"]\]\s*;.*\$\w+\s*\(\s*\.\.\.\$\w+\s*\)', 827 'function\s*uPqmvR\s*\(', 828 'function\s*yh1\s*\(', 829 '\bUpVwwHRQ\s*\(', 830 'array_map\(\s*[\'"]md5[\'"]\s*,\s*\$_COOKIE', 831 '\$gi6\[\d+\]\s*\(\s*\$_(?:COOKIE|POST|REQUEST)', 832 'include\s*\(\s*base64_decode\s*\(\s*\$[A-Za-z_]\w*\s*\)\s*(?:\.\s*)?\)\s*;', 833 'call_user_func\s*\(\s*new\s+LiteSpeedMetaDataStore' 820 834 ]; 821 835 } -
folder-auditor/trunk/readme.txt
r3372509 r3373763 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 3. 68 Stable tag: 3.7 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Audit your site to keep WordPress clean and secure. Enable our one-of-a-kind SITE LOCK to give your site the ultimate security. 12 13 13 14 == Description == 14 15 **Folder Auditor & Site Lock** helps WordPress administrators keep their installations clean and secure. 16 15 17 Over time, it’s common for orphaned plugin or theme folders to build up in your wp-content directory. These stray folders may be the result of incomplete uninstallations, leftover files from updates, or abandoned code that was never fully removed. While they might seem harmless at first glance, they can create confusion, waste storage space, and in some cases pose a serious security risk. 18 16 19 Hackers often exploit these forgotten folders by hiding backdoors or malicious scripts inside them, knowing that site owners rarely check for or even notice such files. An orphaned folder can act as an open invitation for unauthorized access, giving attackers a quiet place to operate undetected. 17 20 By identifying and removing these unused folders, you not only keep your WordPress installation clean and organized but also close off potential entry points that could otherwise be used to compromise your site. The Folder Auditor plugin makes this process simple, scanning your directories to uncover anything that doesn’t belong and highlighting it for review before it becomes a problem. 21 18 22 **SITE LOCK - Only found here!** 23 19 24 One of the easiest ways for a hacked user to damage your site is by adding or changing the physical files that WordPress relies on. If attackers can place hidden scripts, modify plugin or theme files, or inject malicious code, they gain the power to compromise your entire site. 25 20 26 The Site Lock feature in Folder Auditor protects against this by allowing you to lock all folders and files in your installation and make them read-only. Once locked, no new files can be added, no existing files can be changed, and nothing can be removed. This ensures that the foundation of your WordPress site remains untouched, even if someone attempts to exploit vulnerabilities or gain access. 27 21 28 When updates or changes are needed, you can unlock the system with a single action, perform your updates, and then reapply the lock. This simple but powerful safeguard gives you complete control over your site’s file structure and adds a layer of security that goes beyond what most WordPress plugins offer. 29 22 30 This plugin scans the following directories: 23 31 - WordPress Root (main installation folder) … … 27 35 - Uploads Folder (wp-content/uploads/) 28 36 - htaccess files 37 29 38 Folder Auditor takes a disk-first approach. It crawls your entire WordPress installation and inventories every single file and folder, not just plugins and themes. Everything is presented in a clear interface where you can open items to view their contents, mark them to ignore, delete them if they are not needed, or download a copy for backup or investigation. 39 30 40 Because it works directly from what is actually on disk, you are never limited by what WordPress shows in the admin. You can quickly spot unfamiliar files, tidy up leftovers from old plugins or themes, and pull down suspicious items for review, all without leaving the dashboard. It provides a fast and transparent way to see exactly what is on your server and take action immediately. 41 31 42 **Key Features** 32 43 - Finds plugin folders not listed on the Plugins screen (hidden or orphaned) … … 42 53 - Configure user security 43 54 Provides settings to strengthen account and login security for WordPress users. 55 - Infection scanner 56 Scan all site files to find any suspicious files 44 57 - Zero configuration setup 45 58 Works right after install and activation—no complex setup required. 59 46 60 == Installation == 47 61 1. Upload the plugin files to the /wp-content/plugins/folder-auditor directory, or install via the WordPress Plugins screen directly. 48 62 2. Activate the plugin through the **Plugins** screen in WordPress. 49 63 3. Navigate to **Tools > Folder Auditor** to begin auditing your site. 64 50 65 == Frequently Asked Questions == 66 51 67 = Why do I need this plugin? = 52 68 Hidden or leftover folders can sometimes indicate incomplete uninstalls or even malicious code. This plugin helps you identify them. 69 53 70 = Does it automatically delete orphaned folders? = 54 71 No. Folder Auditor is strictly an auditing tool. It shows you what exists so you can make informed decisions. 72 55 73 = Will this slow down my site? = 56 74 No. All operations run only when you open the Tools > Folder Auditor screen. Nothing runs on the frontend. 75 57 76 = Does it work on multisite? = 58 77 Currently designed for single-site installs. Multisite support may be added in the future. 78 59 79 == Screenshots == 60 80 1. **Dashboard tab** showing score and all folder issues present on your site. … … 65 85 6. **Uploads tab** for auditing your uploads directory. 66 86 7. **htaccess tab** for auditing your htaccess files. 67 8. **Security tab** for locking down your site.87 8. **Security Settings** for securing your site from attacks. 68 88 9. **Infection Scanner** finding infected files. 69 89 10. **Site Lock Notice** notifying users when enabled. 90 70 91 == Changelog == 92 93 = 3.7 = 94 * Updated infection scanner patterns 71 95 72 96 = 3.6 = … … 95 119 * Added per folder lock exclusion 96 120 * New UI on main menu 121 97 122 = 3.2 = 98 123 * Added items locked to dashboard display 124 99 125 = 3.1 = 100 126 * Fixed Site Health issue when Site Lock is on 127 101 128 = 3.0 = 102 129 * Added user security settings to lock down account attacks 130 103 131 = 2.9.4 = 104 132 * Added Site Lock under Tools menu … … 106 134 * Added drop down to security tab 107 135 * Style changes 136 108 137 = 2.9.3 = 109 138 * Corrected bulk delete actions 139 110 140 = 2.9.2 = 111 141 * Enhanced Site Lock conditioning 142 112 143 = 2.9.1 = 113 144 * Fixed conflict with WP Rollback 145 114 146 = 2.9 = 115 147 * Added view file action buttons 148 116 149 = 2.8 = 117 150 * UI improvements 151 118 152 = 2.7 = 119 153 * Fixed security header defaults 154 120 155 = 2.6 = 121 156 * Fixed bulk ignore and delete functions 157 122 158 = 2.5 = 123 159 * Added security area to lock folders and files and set security headers 160 124 161 = 2.0 = 125 162 * New UI 163 126 164 = 1.3.1 = 127 165 * Improved plugin header and descriptions. 128 166 * Added Author URI and GPL license URI. 129 167 * Enhanced escaping for better security compliance. 168 130 169 = 1.3.0 = 131 170 * Added auditing of wp-content and WordPress root folder. 132 171 * Improved error handling for unreadable directories. 172 133 173 = 1.2.0 = 134 174 * Added uploads and themes auditing. 135 175 * Improved plugin rows to match Plugins screen exactly. 176 136 177 = 1.0.0 = 137 178 * Initial release. Added plugin folder auditing. 179 138 180 == Upgrade Notice == 181 182 = 3.7 = 183 * Updated infection scanner patterns 139 184 140 185 = 3.6 =
Note: See TracChangeset
for help on using the changeset viewer.