{"summary":{"plugin_name":"duracelltomi-google-tag-manager","display_name":"GTM4WP – A Google Tag Manager (GTM) plugin for WordPress","version":"2.1.1","risk_level":"low","risk_score":15.0,"risk_factors":{"static_analysis":5,"owasp":5,"unauth_ratio":5,"rest_routes":7,"installs_modifier":-7},"last_analyzed":"2026-11-28T22:01:34.389327","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":700000,"rating":90,"num_ratings":155,"tested":"7.1.4","requires":"6.3","requires_php":"8.0","author":"Thomas Geiger","short_description":"Advanced tag management for WordPress with Google Tag Manager","tags":["google ads","google analytics","google tag manager","gtm","tag manager"],"added":"2013-09-23","last_updated":"2026-11-05 6:39pm GMT","metadata_fetched_at":"2026-11-15T11:48:28.274058+00:00","modules_missing":null,"modules_failed":null,"latest_release":"2.1.1"},"security_metrics":{"total_issues":43,"parameters_found":7,"unknown_parameters":0,"headers_accessed":6,"cookies_accessed":6,"wp_hooks":2,"rest_routes":15,"query_vars":2,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":1,"A03":1,"A04":1,"A07":2},"attack_surface_level":"medium","attack_surface_score":39,"tainted_sinks":17,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":0},"comparison":{"percentile":81.6,"rank":91122,"peer_count":496262,"better_than":81.6,"risk_distribution":{"low":99239,"high":177822,"medium":120365,"critical":38729,"minimal":60107}},"executive_summary":null,"vulnerabilities":[{"id":"b5384be3-91c0-45e8-ae03-0188be12bc09","title":"Google Tag Manager for WordPress < 1.15.1 - Reflected Cross-Site Scripting","created_at":"2022-05-19T15:19:41.000Z","updated_at":"2023-02-13T07:02:07.000Z","published_date":"2022-05-19T00:00:00.000Z","vuln_type":"XSS","references":{"cve":["2022-1707"]},"verified":true,"poc":null,"description":null,"cvss":null,"fixed_in":"1.15.1","introduced_in":null},{"id":"78f097ff-ac14-4d30-a80f-29709f7d1f69","title":"GTM4WP < 1.15.2 - Admin+ Stored Cross-Site Scripting","created_at":"2022-05-31T20:09:44.000Z","updated_at":"2023-02-28T07:02:19.000Z","published_date":"2022-05-31T00:00:00.000Z","vuln_type":"XSS","references":{"cve":["2022-1961"]},"verified":true,"poc":null,"description":null,"cvss":null,"fixed_in":"1.15.2","introduced_in":null},{"id":"167264ae-3650-4a4e-93a3-13a6f0d48277","title":"GTM4WP < 1.22.4 - Unauthenticated Stored XSS via WooCommerce Billing Fields","created_at":"2026-07-28T21:49:17.000Z","updated_at":"2026-07-28T21:49:17.000Z","published_date":"2026-07-28T00:00:00.000Z","vuln_type":"XSS","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/03542812-b6e5-421d-9ba6-43f1c779940f"],"cve":["2026-16597"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"1.22.4","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":["REST route '/visitor-data' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers"]},{"category":"A03","name":"Injection","severity":"medium","findings_count":1,"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":["Reachable 'file_include' sink x13 - 13 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"]},{"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":["Auth hook 'wp_login' - Hooks the 'wp_login' authentication/identity flow — verify it cannot be abused to bypass authentication","Auth hook 'user_register' - Hooks the 'user_register' authentication/identity flow — verify it cannot be abused to bypass authentication"]},{"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: 6 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]}],"owasp_findings":{"A01":[{"type":"rest_route","name":"/visitor-data","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"}],"A03":[{"type":"reachability_sink","sink":"file_include","count":13,"risk":"13 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"}],"A04":[{"type":"direct_file_access","count":6,"risk":"6 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}],"A07":[{"type":"auth_hook","name":"wp_login","risk":"Hooks the 'wp_login' authentication/identity flow — verify it cannot be abused to bypass authentication"},{"type":"auth_hook","name":"user_register","risk":"Hooks the 'user_register' authentication/identity flow — verify it cannot be abused to bypass authentication"}]}}