{"summary":{"plugin_name":"protect-uploads","display_name":"Protect Uploads","version":"0.8.0","risk_level":"low","risk_score":15.0,"risk_factors":{"owasp":5,"attack_surface":5,"superglobal_density":5},"last_analyzed":"2026-11-23T12:10:24.141345","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":30000,"rating":96,"num_ratings":12,"tested":"7.1.3","requires":"5.0","requires_php":"7.4","author":"Protect Uploads","short_description":"Protect your uploads directory. Prevent browsing, password-protect files, add watermarks, and discourage right-click copying.","tags":["directory listing","password protection","private files","security","watermark"],"added":"2015-03-31","last_updated":"2026-10-07 10:45pm GMT","metadata_fetched_at":"2026-10-12T01:39:40.445505+00:00","modules_missing":null,"modules_failed":null,"latest_release":"0.8.0"},"security_metrics":{"total_issues":0,"parameters_found":18,"unknown_parameters":0,"headers_accessed":2,"cookies_accessed":0,"wp_hooks":2,"rest_routes":0,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":1,"A02":3,"A03":2,"A04":1},"attack_surface_level":"medium","attack_surface_score":20,"tainted_sinks":10,"tainted_sql":8,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":1},"comparison":{"percentile":82.1,"rank":86604,"peer_count":483303,"better_than":82.1,"risk_distribution":{"high":176746,"critical":38227,"medium":117895,"low":93433,"minimal":57002}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A01","name":"Broken Access Control","severity":"medium","findings_count":1,"description":"Access control enforces policy such that users cannot act outside of their intended permissions","recommendations":["Add a real permission_callback to every REST route — never '__return_true' for state-changing endpoints","Verify nonces on all wp_ajax_nopriv_ handlers and re-check capabilities server-side","Validate and canonicalize file paths to block traversal on read/write/delete operations","Never trust a user-supplied role/capability — enforce it against the acting user's own permissions"],"findings_summary":["Pattern 'nopriv_no_nonce' x1 - Nopriv AJAX handler without nonce verification (1 occurrence(s))"]},{"category":"A03","name":"Injection","severity":"medium","findings_count":2,"description":"User-supplied data is not validated, filtered, or sanitized by the application","recommendations":["Use $wpdb->prepare() for all database queries — never interpolate or concatenate input","Sanitize all user input with appropriate WordPress functions","Escape output based on context (esc_html, esc_attr, etc.)","Never pass user input to eval(), include/require, or a variable function"],"findings_summary":["Reachable 'sql' sink x8 - 8 attacker-reachable 'sql' sink(s) found by the reachability analyzer","Reachable 'file_include' sink x2 - 2 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"]},{"category":"A02","name":"Cryptographic Failures","severity":"low","findings_count":3,"description":"Failures related to cryptography which often lead to exposure of sensitive data","recommendations":["Never store passwords or API keys in plain text","Use WordPress options API with encryption for sensitive data","Implement proper key management practices","Use HTTPS for all sensitive data transmission"],"findings_summary":["Parameter 'enable_password_protection' - Sensitive data exposure","Parameter 'password' - Sensitive data exposure","Parameter 'password_id' - Sensitive data exposure"]},{"category":"A04","name":"Insecure Design","severity":"low","findings_count":1,"description":"Missing or ineffective control design — e.g. plugin files that perform work when requested directly, bypassing the WordPress bootstrap","recommendations":["Add a `defined('ABSPATH') || exit;` guard to every PHP file so it cannot be requested directly","Move logic out of directly-reachable files into hook callbacks loaded by WordPress","Threat-model unauthenticated entry points during design, not after release"],"findings_summary":["Direct file access: 2 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]}],"owasp_findings":{"A01":[{"type":"pattern_match","pattern":"nopriv_no_nonce","count":1,"severity":"high","examples":["includes/class-protect-uploads-passwords.php:50"],"risk":"Nopriv AJAX handler without nonce verification (1 occurrence(s))"}],"A02":[{"type":"parameter","name":"enable_password_protection","locations":{"POST":[{"file":"/plugins/protect-uploads/tags/0.8.0/admin/class-protect-uploads-admin.php","line":912,"offset":33073,"snippet":"$_POST['enable_password_protection']"}]},"risk":"Sensitive data exposure"},{"type":"parameter","name":"password","locations":{"POST":[{"file":"/plugins/protect-uploads/tags/0.8.0/includes/class-protect-uploads-frontend.php","line":89,"offset":2776,"snippet":"$_POST['password']"},{"file":"/plugins/protect-uploads/tags/0.8.0/includes/class-protect-uploads-frontend.php","line":97,"offset":3452,"snippet":"$_POST['password']"},{"file":"/plugins/protect-uploads/tags/0.8.0/includes/class-protect-uploads-passwords.php","line":658,"offset":22137,"snippet":"$_POST['password']"}]},"risk":"Sensitive data exposure"},{"type":"parameter","name":"password_id","locations":{"POST":[{"file":"/plugins/protect-uploads/tags/0.8.0/includes/class-protect-uploads-passwords.php","line":691,"offset":23372,"snippet":"$_POST['password_id']"},{"file":"/plugins/protect-uploads/tags/0.8.0/includes/class-protect-uploads-passwords.php","line":691,"offset":23406,"snippet":"$_POST['password_id']"}]},"risk":"Sensitive data exposure"}],"A03":[{"type":"reachability_sink","sink":"sql","count":8,"risk":"8 attacker-reachable 'sql' sink(s) found by the reachability analyzer"},{"type":"reachability_sink","sink":"file_include","count":2,"risk":"2 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"}],"A04":[{"type":"direct_file_access","count":2,"risk":"2 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}]}}