{"summary":{"plugin_name":"faz-cookie-manager","display_name":"FAZ Cookie Manager","version":"1.39.0","risk_level":"medium","risk_score":35.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":15,"unauth_ratio":5,"rest_routes":5},"last_analyzed":"2026-12-01T05:59:42.235861","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":3000,"rating":100,"num_ratings":30,"tested":"7.1.5","requires":"5.0","requires_php":"7.4","author":"fabiodalez","short_description":"Free cookie consent with GDPR, CCPA, ePrivacy, Google Consent Mode v2, IAB TCF v2.3, and built-in Cookie Policy generator. No cloud required.","tags":["CCPA","consent","cookie","GDPR","privacy"],"added":"2026-04-30","last_updated":"2026-11-21 10:49pm GMT","metadata_fetched_at":"2026-11-22T04:25:59.408940+00:00","modules_missing":[],"modules_failed":[],"latest_release":"1.40.0"},"security_metrics":{"total_issues":2,"parameters_found":36,"unknown_parameters":1,"headers_accessed":16,"cookies_accessed":1,"wp_hooks":2,"rest_routes":86,"query_vars":0,"shortcode_atts":6,"rest_routes_with_access_patterns":9,"file_upload_parameters":0,"owasp_findings":{"A01":3,"A02":1,"A03":2},"attack_surface_level":"large","attack_surface_score":210,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":0},"comparison":{"percentile":64.0,"rank":180527,"peer_count":501273,"better_than":64.0,"risk_distribution":{"low":101554,"high":178121,"medium":121483,"critical":38850,"minimal":61265}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A01","name":"Broken Access Control","severity":"high","findings_count":3,"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 'None' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/banner/(?P<lang>[a-z0-9-]+)' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/consent' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers"]},{"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":["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":"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 'faz_pow_salt' - Sensitive data exposure"]}],"owasp_findings":{"A01":[{"type":"rest_route","name":null,"risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/banner/(?P<lang>[a-z0-9-]+)","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/consent","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"}],"A02":[{"type":"parameter","name":"faz_pow_salt","locations":{"POST":[{"file":"/plugins/faz-cookie-manager/tags/1.39.0/includes/class-dsar-shortcode.php","line":1166,"offset":53146,"snippet":"$_POST['faz_pow_salt']"},{"file":"/plugins/faz-cookie-manager/tags/1.39.0/includes/class-dsar-shortcode.php","line":1166,"offset":53201,"snippet":"$_POST['faz_pow_salt']"}]},"risk":"Sensitive data exposure"}],"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/faz-cookie-manager/tags/1.39.0/admin/views/system-status.php","line":286},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/faz-cookie-manager/tags/1.39.0/admin/views/system-status.php","line":286}]}}