{"summary":{"plugin_name":"woocommerce-shipping","display_name":"WooCommerce Shipping","version":"2.5.1","risk_level":"high","risk_score":65.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":15,"unauth_ratio":5,"superglobal_density":5,"filter_hooks":15,"rest_routes":10,"raw_input":5},"last_analyzed":"2026-11-23T13:25:36.421495","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":70000,"rating":40,"num_ratings":18,"tested":"7.1.3","requires":"7.0","requires_php":"7.4","author":"WooCommerce","short_description":"A free shipping plugin for US merchants to print discounted shipping labels and compare live label rates directly from your WooCommerce dashboard.","tags":["dhl","labels","shipping","usps","woocommerce"],"added":"2024-07-30","last_updated":"2026-10-14 4:01pm GMT","metadata_fetched_at":"2026-11-22T04:36:09.434717+00:00","modules_missing":["phpcs_security"],"modules_failed":[],"latest_release":"2.5.2"},"security_metrics":{"total_issues":66,"parameters_found":73,"unknown_parameters":1,"headers_accessed":8,"cookies_accessed":9,"wp_hooks":2,"rest_routes":83,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":18,"file_upload_parameters":0,"owasp_findings":{"A01":4,"A03":1,"A05":2,"A07":5},"attack_surface_level":"large","attack_surface_score":241,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":2},"comparison":{"percentile":10.7,"rank":442451,"peer_count":495724,"better_than":10.7,"risk_distribution":{"low":98975,"high":177790,"medium":120222,"critical":38722,"minimal":60015}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A01","name":"Broken Access Control","severity":"high","findings_count":4,"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_xmlrpc_error' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/verify_registration' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/remote_authorize' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/connection' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers"]},{"category":"A07","name":"Identification and Authentication Failures","severity":"high","findings_count":5,"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 'authenticate' - Hooks the 'authenticate' authentication/identity flow — verify it cannot be abused to bypass authentication","Auth hook 'determine_current_user' - Hooks the 'authenticate' authentication/identity flow — verify it cannot be abused to bypass authentication","Auth hook 'wp_authenticate_user' - Hooks the 'authenticate' 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","Auth hook 'wp_login' - Hooks the 'wp_login' authentication/identity flow — verify it cannot be abused to bypass authentication"]},{"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":["Pattern 'sqli_interpolated' x2 - Interpolated variable in SQL query string (2 occurrence(s))"]},{"category":"A05","name":"Security Misconfiguration","severity":"low","findings_count":2,"description":"Missing appropriate security hardening or improperly configured permissions","recommendations":["Remove phpinfo() and error_reporting()/display_errors overrides from shipped code","Never define WP_DEBUG inside a plugin — leave debug configuration to the site owner","Fail closed: do not expose stack traces or environment details to visitors"],"findings_summary":["Misconfiguration in vendor/automattic/jetpack-status/src/class-errors.php:35 - $display_errors  = @ini_set( 'display_errors', 1 );","Misconfiguration in vendor/automattic/jetpack-status/src/class-errors.php:36 - $error_reporting = @error_reporting( E_ALL );"]}],"owasp_findings":{"A01":[{"type":"rest_route","name":"/verify_xmlrpc_error","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/verify_registration","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/remote_authorize","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/connection","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"}],"A03":[{"type":"pattern_match","pattern":"sqli_interpolated","count":2,"severity":"critical","examples":["classes/class-wc-connect-options.php:336","classes/class-wc-connect-service-settings-store.php:464"],"risk":"Interpolated variable in SQL query string (2 occurrence(s))"}],"A05":[{"type":"misconfiguration","file":"vendor/automattic/jetpack-status/src/class-errors.php","line":"35","match":"$display_errors  = @ini_set( 'display_errors', 1 );","risk":"Security-misconfiguration token in shipped plugin code (error display / debug / info disclosure)"},{"type":"misconfiguration","file":"vendor/automattic/jetpack-status/src/class-errors.php","line":"36","match":"$error_reporting = @error_reporting( E_ALL );","risk":"Security-misconfiguration token in shipped plugin code (error display / debug / info disclosure)"}],"A07":[{"type":"auth_hook","name":"authenticate","risk":"Hooks the 'authenticate' authentication/identity flow — verify it cannot be abused to bypass authentication"},{"type":"auth_hook","name":"determine_current_user","risk":"Hooks the 'authenticate' authentication/identity flow — verify it cannot be abused to bypass authentication"},{"type":"auth_hook","name":"wp_authenticate_user","risk":"Hooks the 'authenticate' 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"},{"type":"auth_hook","name":"wp_login","risk":"Hooks the 'wp_login' authentication/identity flow — verify it cannot be abused to bypass authentication"}]}}