{"summary":{"plugin_name":"captcha-bws","display_name":"Captcha by BestWebSoft – Advanced Spam Protection, Math & OCR-Friendly Captcha for Site Forms","version":"5.3.1","risk_level":"high","risk_score":55.0,"risk_factors":{"static_analysis":10,"owasp":5,"attack_surface":15,"superglobal_density":10,"filter_hooks":15},"last_analyzed":"2026-11-23T11:58:12.569321","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":10000,"rating":82,"num_ratings":21,"tested":"7.1.5","requires":"6.5","requires_php":"False","author":"bestwebsoft","short_description":"1 The Ultimate Spam Protection Plugin Using Captcha for WordPress Forms.","tags":["antispam","captcha","captcha WooCommerce","security","spam protection"],"added":"2017-09-14","last_updated":"2026-11-05 3:39pm GMT","metadata_fetched_at":"2026-11-22T06:46:14.020027+00:00","modules_missing":[],"modules_failed":[],"latest_release":"5.3.1"},"security_metrics":{"total_issues":31,"parameters_found":63,"unknown_parameters":2,"headers_accessed":3,"cookies_accessed":1,"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":1,"A03":5,"A07":3},"attack_surface_level":"large","attack_surface_score":65,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":12},"comparison":{"percentile":23.8,"rank":380580,"peer_count":499148,"better_than":23.8,"risk_distribution":{"low":100543,"high":177968,"medium":121021,"critical":38800,"minimal":60816}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A03","name":"Injection","severity":"high","findings_count":5,"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 $_REQUEST on echo","phpcs_security: Easy XSS detected because of direct user input with $_POST on echo","phpcs_security: Easy XSS detected because of direct user input with $_REQUEST on echo","phpcs_security: Easy XSS detected because of direct user input with $_REQUEST on echo","Pattern 'sqli_interpolated' x10 - Interpolated variable in SQL query string (10 occurrence(s))"]},{"category":"A07","name":"Identification and Authentication Failures","severity":"high","findings_count":3,"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 'cptch_enable_session' - Authentication-related parameter — verify login flow hardening","Auth hook 'authenticate' - Hooks the 'authenticate' authentication/identity flow — verify it cannot be abused to bypass authentication","Auth hook 'validate_password_reset' - Hooks the 'password_reset' authentication/identity flow — verify it cannot be abused to bypass authentication"]},{"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' x2 - Nopriv AJAX handler without nonce verification (2 occurrence(s))"]},{"category":"A02","name":"Cryptographic Failures","severity":"low","findings_count":1,"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 'cptch_force_strong_passwords' - Sensitive data exposure"]}],"owasp_findings":{"A01":[{"type":"pattern_match","pattern":"nopriv_no_nonce","count":2,"severity":"high","examples":["captcha-bws.php:1999","captcha-bws.php:2010"],"risk":"Nopriv AJAX handler without nonce verification (2 occurrence(s))"}],"A02":[{"type":"parameter","name":"cptch_force_strong_passwords","locations":{"POST":[{"file":"/plugins/captcha-bws/tags/5.3.1/includes/class-cptch-settings-tabs.php","line":426,"offset":15540,"snippet":"$_POST['cptch_force_strong_passwords']"}]},"risk":"Sensitive data exposure"}],"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/captcha-bws/tags/5.3.1/bws_menu/class-bws-settings.php","line":301},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_POST on echo","file":"/plugins/captcha-bws/tags/5.3.1/captcha-bws.php","line":586},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/captcha-bws/tags/5.3.1/includes/pro_banners.php","line":223},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/captcha-bws/tags/5.3.1/includes/pro_banners.php","line":223},{"type":"pattern_match","pattern":"sqli_interpolated","count":10,"severity":"critical","examples":["captcha-bws.php:1952","includes/class-cptch-package-loader.php:103","includes/class-cptch-package-loader.php:109"],"risk":"Interpolated variable in SQL query string (10 occurrence(s))"}],"A07":[{"type":"parameter","name":"cptch_enable_session","locations":{"GET":[{"file":"/plugins/captcha-bws/tags/5.3.1/includes/class-cptch-settings-tabs.php","line":385,"offset":13180,"snippet":"$_REQUEST['cptch_enable_session']"}],"POST":[{"file":"/plugins/captcha-bws/tags/5.3.1/includes/class-cptch-settings-tabs.php","line":385,"offset":13180,"snippet":"$_REQUEST['cptch_enable_session']"}]},"risk":"Authentication-related parameter — verify login flow hardening"},{"type":"auth_hook","name":"authenticate","risk":"Hooks the 'authenticate' 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"}]}}