{"summary":{"plugin_name":"cookies-and-content-security-policy","display_name":"Cookies and Content Security Policy","version":"2.42","risk_level":"medium","risk_score":47.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":15,"unauth_ratio":5,"superglobal_density":15,"rest_routes":2},"last_analyzed":"2026-11-23T14:36:29.352431","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":10000,"rating":98,"num_ratings":67,"tested":"7.1.5","requires":"5.0","requires_php":"7.4","author":"Johan Jonk Stenström","short_description":"Be fully GDPR and CCPA compliant through Content Security Policy. Blocks cookies and unwanted external content.","tags":["CCPA","content security policy","cookie bar","cookies","GDPR"],"added":"2020-03-07","last_updated":"2026-11-04 12:07pm GMT","metadata_fetched_at":"2026-11-23T10:29:14.697644+00:00","modules_missing":[],"modules_failed":[],"latest_release":"2.42"},"security_metrics":{"total_issues":2,"parameters_found":154,"unknown_parameters":0,"headers_accessed":4,"cookies_accessed":1,"wp_hooks":2,"rest_routes":1,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":2,"A03":3,"A07":2},"attack_surface_level":"large","attack_surface_score":158,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":3},"comparison":{"percentile":43.3,"rank":286670,"peer_count":505199,"better_than":43.3,"risk_distribution":{"low":103457,"high":178457,"medium":122112,"minimal":62164,"critical":39009}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A03","name":"Injection","severity":"high","findings_count":3,"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 $_REQUEST on echo","Pattern 'sqli_interpolated' x2 - Interpolated variable in SQL query string (2 occurrence(s))"]},{"category":"A01","name":"Broken Access Control","severity":"medium","findings_count":2,"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":["REST route '/texts/' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","Pattern 'rest_no_permission' x1 - REST endpoint with no permission check (1 occurrence(s))"]},{"category":"A07","name":"Identification and Authentication Failures","severity":"medium","findings_count":2,"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 'cacsp_option_quickstart_recaptcha' - Authentication-related parameter — verify login flow hardening","Parameter 'cacsp_option_quickstart_hcaptcha' - Authentication-related parameter — verify login flow hardening"]}],"owasp_findings":{"A01":[{"type":"rest_route","name":"/texts/","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"pattern_match","pattern":"rest_no_permission","count":1,"severity":"high","examples":["inc/set-cacsp.php:159"],"risk":"REST endpoint with no permission check (1 occurrence(s))"}],"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/cookies-and-content-security-policy/tags/2.42/inc/settings-cacsp-tab-consent.php","line":379},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/cookies-and-content-security-policy/tags/2.42/inc/settings-cacsp-tab-consent.php","line":379},{"type":"pattern_match","pattern":"sqli_interpolated","count":2,"severity":"critical","examples":["inc/settings-cacsp-tab-consent.php:68","inc/settings-cacsp-tab-consent.php:73"],"risk":"Interpolated variable in SQL query string (2 occurrence(s))"}],"A07":[{"type":"parameter","name":"cacsp_option_quickstart_recaptcha","locations":{"POST":[{"file":"/plugins/cookies-and-content-security-policy/tags/2.42/inc/settings-cacsp-tab-quickstart.php","line":37,"offset":3003,"snippet":"$_POST['cacsp_option_quickstart_recaptcha']"},{"file":"/plugins/cookies-and-content-security-policy/tags/2.42/inc/settings-cacsp-update-options.php","line":478,"offset":27366,"snippet":"$_POST['cacsp_option_quickstart_recaptcha']"}]},"risk":"Authentication-related parameter — verify login flow hardening"},{"type":"parameter","name":"cacsp_option_quickstart_hcaptcha","locations":{"POST":[{"file":"/plugins/cookies-and-content-security-policy/tags/2.42/inc/settings-cacsp-tab-quickstart.php","line":38,"offset":3103,"snippet":"$_POST['cacsp_option_quickstart_hcaptcha']"},{"file":"/plugins/cookies-and-content-security-policy/tags/2.42/inc/settings-cacsp-update-options.php","line":494,"offset":28222,"snippet":"$_POST['cacsp_option_quickstart_hcaptcha']"}]},"risk":"Authentication-related parameter — verify login flow hardening"}]}}