{"summary":{"plugin_name":"the-courier-guy","display_name":"The Courier Guy Shipping for WooCommerce","version":"5.5.5","risk_level":"medium","risk_score":32.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":5,"unauth_ratio":15,"rest_routes":2},"last_analyzed":"2026-11-23T13:21:22.488457","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":4000,"rating":62,"num_ratings":23,"tested":"7.0.9","requires":"6.0","requires_php":"8.0","author":"The Courier Guy","short_description":"This is the official WooCommerce extension to ship products using The Courier Guy.","tags":["courier","e-commerce","ecommerce","shipping","woocommerce"],"added":"2019-10-04","last_updated":"2026-11-13 12:46pm GMT","metadata_fetched_at":"2026-11-22T17:59:16.397390+00:00","modules_missing":[],"modules_failed":[],"latest_release":"5.5.5"},"security_metrics":{"total_issues":32,"parameters_found":12,"unknown_parameters":1,"headers_accessed":10,"cookies_accessed":0,"wp_hooks":2,"rest_routes":5,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":2,"file_upload_parameters":0,"owasp_findings":{"A01":6,"A03":1},"attack_surface_level":"medium","attack_surface_score":24,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":6},"comparison":{"percentile":64.4,"rank":178141,"peer_count":501067,"better_than":64.4,"risk_distribution":{"low":101454,"high":178105,"medium":121435,"critical":38849,"minimal":61224}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A01","name":"Broken Access Control","severity":"critical","findings_count":6,"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 'test' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route 'shipping-options' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route 'update-shipping-options' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route 'insurance' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route 'insurance' - 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":["Pattern 'sqli_interpolated' x1 - Interpolated variable in SQL query string (1 occurrence(s))"]}],"owasp_findings":{"A01":[{"type":"rest_route","name":"test","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"shipping-options","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"update-shipping-options","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"insurance","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"insurance","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"pattern_match","pattern":"rest_no_permission","count":5,"severity":"high","examples":["Core/TCG_Shipping_Integration.php:233","Core/TCG_Shipping_Integration.php:239","Core/TCG_Shipping_Integration.php:245"],"risk":"REST endpoint with no permission check (5 occurrence(s))"}],"A03":[{"type":"pattern_match","pattern":"sqli_interpolated","count":1,"severity":"critical","examples":["Shipping/TCG_ShippingMethod.php:199"],"risk":"Interpolated variable in SQL query string (1 occurrence(s))"}]}}