{"summary":{"plugin_name":"gdpr-cookie-consent","display_name":"WPLP Cookie Consent – Cookie Banner & Consent Management for GDPR, CCPA & Google Consent Mode","version":"4.5.0","risk_level":"high","risk_score":55.0,"risk_factors":{"static_analysis":10,"owasp":5,"attack_surface":15,"unauth_ratio":5,"superglobal_density":10,"rest_routes":10},"last_analyzed":"2026-11-27T16:09:55.070005","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":9000,"rating":94,"num_ratings":53,"tested":"7.1.5","requires":"6.2","requires_php":"7.4","author":"WP Legal Pages","short_description":"GDPR & CCPA cookie consent banner for WordPress. Cookie scanner, script blocking, consent logs, Google Consent Mode v2. One login, many sites.","tags":["CCPA","cookie banner","cookie consent","cookie notice","GDPR"],"added":"2019-08-02","last_updated":"2026-11-03 11:16am GMT","metadata_fetched_at":"2026-11-23T05:12:25.924936+00:00","modules_missing":[],"modules_failed":[],"latest_release":"4.5.0"},"security_metrics":{"total_issues":406,"parameters_found":541,"unknown_parameters":2,"headers_accessed":15,"cookies_accessed":2,"wp_hooks":2,"rest_routes":46,"query_vars":3,"shortcode_atts":1,"rest_routes_with_access_patterns":3,"file_upload_parameters":2,"owasp_findings":{"A01":3,"A03":3},"attack_surface_level":"large","attack_surface_score":645,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":1},"comparison":{"percentile":23.6,"rank":385115,"peer_count":504002,"better_than":23.6,"risk_distribution":{"low":102872,"high":178391,"medium":121870,"critical":38988,"minimal":61881}},"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 '/verify_connection' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/consent-log' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","Pattern 'nopriv_no_nonce' x1 - Nopriv AJAX handler without nonce verification (1 occurrence(s))"]},{"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","phpcs_security: Easy XSS detected because of direct user input with $_SERVER on echo"]}],"owasp_findings":{"A01":[{"type":"rest_route","name":"/verify_connection","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/consent-log","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"pattern_match","pattern":"nopriv_no_nonce","count":1,"severity":"high","examples":["public/modules/consent-logs/class-wpl-cookie-consent-consent-logs.php:48"],"risk":"Nopriv AJAX handler without nonce verification (1 occurrence(s))"}],"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/gdpr-cookie-consent/tags/4.5.0/admin/modules/policy-data/class-gdpr-policy-data.php","line":91},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/gdpr-cookie-consent/tags/4.5.0/admin/modules/policy-data/class-gdpr-policy-data.php","line":95},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/gdpr-cookie-consent/tags/4.5.0/admin/partials/gdpr-cookie-consent-admin-display.php","line":50}]}}