{"summary":{"plugin_name":"uk-cookie-consent","display_name":"Termly – GDPR/CCPA Cookie Consent Banner","version":"3.3.1","risk_level":"medium","risk_score":47.0,"risk_factors":{"staleness":10,"static_analysis":5,"owasp":5,"attack_surface":5,"vuln_history":5,"superglobal_density":10,"rest_routes":2,"raw_input":5},"last_analyzed":"2026-11-23T13:34:13.426239","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":80000,"rating":72,"num_ratings":205,"tested":"6.9.11","requires":"5.2","requires_php":"5.6","author":"davidtaroko","short_description":"Our easy to use cookie consent plugin can assist in your GDPR, CCPA, and ePrivacy Directive compliance efforts.","tags":["CCPA","cookie banner","cookie consent","GDPR","privacy"],"added":"2012-06-09","last_updated":"2026-01-09 6:20pm GMT","metadata_fetched_at":"2026-11-03T05:19:44.707819+00:00","modules_missing":null,"modules_failed":null,"latest_release":null},"security_metrics":{"total_issues":1,"parameters_found":14,"unknown_parameters":2,"headers_accessed":0,"cookies_accessed":0,"wp_hooks":0,"rest_routes":1,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":1,"A03":2,"A04":1},"attack_surface_level":"medium","attack_surface_score":16,"tainted_sinks":6,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":1},"comparison":{"percentile":85.6,"rank":10365,"peer_count":71920,"better_than":85.6,"risk_distribution":{"medium":21270,"high":34980,"critical":3839,"low":8312,"minimal":3517,"Unknown":2}},"executive_summary":null,"vulnerabilities":[{"id":"18b9747f-1820-4754-b586-363c2ef8bda5","title":"UK Cookie Consent <= 2.3.9 - Authenticated Stored Cross-Site Scripting (XSS)","created_at":"2018-04-26T08:11:19.000Z","updated_at":"2020-09-22T07:25:09.000Z","published_date":"2018-04-24T00:00:00.000Z","vuln_type":"XSS","references":{"url":["https://plugins.trac.wordpress.org/changeset/1863058/uk-cookie-consent"],"cve":["2018-10310"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"2.3.10","introduced_in":null},{"id":"b2e7517f-fc56-4dee-8606-6d3cd1689a7f","title":"GDPR/CCPA Cookie Consent Banner < 3.2.1 - Missing Authorization via handle_consent_toggle()","created_at":"2024-06-12T13:31:49.000Z","updated_at":"2024-06-12T13:31:49.000Z","published_date":"2024-06-06T00:00:00.000Z","vuln_type":"NO AUTHORISATION","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/9f521875-6b4a-44a6-b810-c13b73891e20"],"cve":["2024-35692"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"3.2.1","introduced_in":null}],"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 'rest_no_permission' x1 - REST endpoint with no permission check (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":["phpcs_security: Easy XSS detected because of direct user input with $_SERVER on echo","Reachable 'file_include' sink x6 - 6 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"]},{"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: 8 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]}],"owasp_findings":{"A01":[{"type":"pattern_match","pattern":"rest_no_permission","count":1,"severity":"high","examples":["includes/controllers/class-account-api-controller.php:26"],"risk":"REST endpoint with no permission check (1 occurrence(s))"}],"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/uk-cookie-consent/tags/3.3.1/includes/views/edit-cookie.php","line":158},{"type":"reachability_sink","sink":"file_include","count":6,"risk":"6 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"}],"A04":[{"type":"direct_file_access","count":8,"risk":"8 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}]}}