{"summary":{"plugin_name":"patchstack","display_name":"Patchstack – WordPress & Plugins Security","version":"2.3.7","risk_level":"medium","risk_score":40.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":10,"superglobal_density":10,"filter_hooks":15,"installs_modifier":-5},"last_analyzed":"2026-11-23T10:24:54.430728","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":100000,"rating":96,"num_ratings":62,"tested":"7.0.9","requires":"5.2","requires_php":"5.6","author":"Patchstack","short_description":"Patchstack automatically identifies and mitigates security vulnerabilities in WordPress plugins, themes, and core.","tags":["firewall","security","virtual patching","vulnerabilities","vulnerability"],"added":"2021-11-01","last_updated":"2026-11-16 12:26pm GMT","metadata_fetched_at":"2026-11-22T04:42:56.776871+00:00","modules_missing":[],"modules_failed":[],"latest_release":"2.3.7"},"security_metrics":{"total_issues":17,"parameters_found":35,"unknown_parameters":1,"headers_accessed":7,"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":{"A02":2,"A03":6,"A07":10},"attack_surface_level":"medium","attack_surface_score":37,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":0},"comparison":{"percentile":54.6,"rank":205718,"peer_count":453317,"better_than":54.6,"risk_distribution":{"medium":111962,"minimal":49237,"high":175083,"low":79269,"critical":37766}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A03","name":"Injection","severity":"critical","findings_count":6,"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":["phpcs_security: Easy XSS detected because of direct user input with $_SERVER on echo","phpcs_security: Easy XSS detected because of direct user input with $_SERVER on echo","phpcs_security: Easy XSS detected because of direct user input with $_SERVER on echo","phpcs_security: Easy XSS detected because of direct user input with $_SERVER on echo","phpcs_security: Easy XSS detected because of direct user input with $_SERVER on echo"]},{"category":"A07","name":"Identification and Authentication Failures","severity":"critical","findings_count":10,"description":"Functions related to a user's identity, authentication, or session management","recommendations":["Enforce strong passwords and rate-limit login attempts","Add MFA/2FA for privileged accounts","Use wp_verify_nonce() and capability checks together — neither alone is sufficient","Audit any authenticate / determine_current_user filter for bypass paths"],"findings_summary":["Parameter 'g-recaptcha-response' - Authentication-related parameter — verify login flow hardening","Parameter 'patchstack_2fa' - Authentication-related parameter — verify login flow hardening","Parameter 'patchstack_2fa_enabled' - Authentication-related parameter — verify login flow hardening","Parameter 'patchstack_2fa_secretkey_verification' - Authentication-related parameter — verify login flow hardening","Auth hook 'wp_authenticate_user' - Hooks the 'authenticate' authentication/identity flow — verify it cannot be abused to bypass authentication"]},{"category":"A02","name":"Cryptographic Failures","severity":"low","findings_count":2,"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 'patchstack_secret' - Sensitive data exposure","Parameter 'secret' - Sensitive data exposure"]}],"owasp_findings":{"A02":[{"type":"parameter","name":"patchstack_secret","locations":{"POST":[{"file":"/plugins/patchstack/tags/2.3.7/includes/listener.php","line":23,"offset":497,"snippet":"$_POST['patchstack_secret']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/listener.php","line":23,"offset":541,"snippet":"$_POST['patchstack_secret']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/listener.php","line":23,"offset":594,"snippet":"$_POST['patchstack_secret']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/listener.php","line":52,"offset":1612,"snippet":"$_POST['patchstack_secret']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/listener.php","line":496,"offset":15650,"snippet":"$_POST['patchstack_secret']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/upload.php","line":54,"offset":1858,"snippet":"$_POST['patchstack_secret']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/upload.php","line":279,"offset":9564,"snippet":"$_POST['patchstack_secret']"}]},"risk":"Sensitive data exposure"},{"type":"parameter","name":"secret","locations":{"POST":[{"file":"/plugins/patchstack/tags/2.3.7/includes/listener.php","line":835,"offset":26271,"snippet":"$_POST['secret']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/listener.php","line":839,"offset":26459,"snippet":"$_POST['secret']"}]},"risk":"Sensitive data exposure"}],"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/patchstack/tags/2.3.7/includes/views/access-denied-login.php","line":25},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/patchstack/tags/2.3.7/includes/views/access-denied-login.php","line":25},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/patchstack/tags/2.3.7/includes/views/access-denied-login.php","line":25},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/patchstack/tags/2.3.7/includes/views/access-denied.php","line":25},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/patchstack/tags/2.3.7/includes/views/access-denied.php","line":25},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/patchstack/tags/2.3.7/includes/views/access-denied.php","line":25}],"A07":[{"type":"parameter","name":"g-recaptcha-response","locations":{"POST":[{"file":"/plugins/patchstack/tags/2.3.7/includes/hardening.php","line":253,"offset":8544,"snippet":"$_POST['g-recaptcha-response']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/hardening.php","line":253,"offset":8587,"snippet":"$_POST['g-recaptcha-response']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/hardening.php","line":285,"offset":9369,"snippet":"$_POST['g-recaptcha-response']"}]},"risk":"Authentication-related parameter — verify login flow hardening"},{"type":"parameter","name":"patchstack_2fa","locations":{"POST":[{"file":"/plugins/patchstack/tags/2.3.7/includes/login.php","line":114,"offset":3648,"snippet":"$_POST['patchstack_2fa']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/login.php","line":114,"offset":3687,"snippet":"$_POST['patchstack_2fa']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/login.php","line":114,"offset":3717,"snippet":"$_POST['patchstack_2fa']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/login.php","line":121,"offset":4091,"snippet":"$_POST['patchstack_2fa']"}]},"risk":"Authentication-related parameter — verify login flow hardening"},{"type":"parameter","name":"patchstack_2fa_enabled","locations":{"POST":[{"file":"/plugins/patchstack/tags/2.3.7/includes/login.php","line":170,"offset":5454,"snippet":"$_POST['patchstack_2fa_enabled']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/login.php","line":194,"offset":6255,"snippet":"$_POST['patchstack_2fa_enabled']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/login.php","line":204,"offset":6511,"snippet":"$_POST['patchstack_2fa_enabled']"}]},"risk":"Authentication-related parameter — verify login flow hardening"},{"type":"parameter","name":"patchstack_2fa_secretkey_verification","locations":{"POST":[{"file":"/plugins/patchstack/tags/2.3.7/includes/login.php","line":178,"offset":5705,"snippet":"$_POST['patchstack_2fa_secretkey_verification']"},{"file":"/plugins/patchstack/tags/2.3.7/includes/login.php","line":178,"offset":5763,"snippet":"$_POST['patchstack_2fa_secretkey_verification']"}]},"risk":"Authentication-related parameter — verify login flow hardening"},{"type":"auth_hook","name":"wp_authenticate_user","risk":"Hooks the 'authenticate' authentication/identity flow — verify it cannot be abused to bypass authentication"},{"type":"auth_hook","name":"wp_login","risk":"Hooks the 'wp_login' authentication/identity flow — verify it cannot be abused to bypass authentication"},{"type":"auth_hook","name":"user_register","risk":"Hooks the 'user_register' authentication/identity flow — verify it cannot be abused to bypass authentication"},{"type":"auth_hook","name":"validate_password_reset","risk":"Hooks the 'password_reset' authentication/identity flow — verify it cannot be abused to bypass authentication"},{"type":"auth_hook","name":"wp_authenticate","risk":"Hooks the 'authenticate' authentication/identity flow — verify it cannot be abused to bypass authentication"},{"type":"auth_hook","name":"lostpassword_post","risk":"Hooks the 'lostpassword' authentication/identity flow — verify it cannot be abused to bypass authentication"}]}}