{"summary":{"plugin_name":"wc-smart-cod","display_name":"Smart COD for WooCommerce","version":"1.9.11","risk_level":"low","risk_score":20.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":5,"superglobal_density":5},"last_analyzed":"2026-11-23T12:11:40.503895","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":30000,"rating":92,"num_ratings":53,"tested":"7.1.5","requires":"4.5","requires_php":"5.6","author":"FullStack-ing","short_description":"Configure COD restrictions and extra fees for WooCommerce Classic Checkout and Cart & Checkout Blocks.","tags":["cash on delivery","cod","COD Extra Fee","Smart COD","woocommerce"],"added":"2017-06-27","last_updated":"2026-11-13 10:48am GMT","metadata_fetched_at":"2026-11-22T04:48:36.580450+00:00","modules_missing":[],"modules_failed":[],"latest_release":"1.9.11"},"security_metrics":{"total_issues":8,"parameters_found":13,"unknown_parameters":0,"headers_accessed":0,"cookies_accessed":0,"wp_hooks":2,"rest_routes":0,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":1,"owasp_findings":{"A03":2,"A04":1},"attack_surface_level":"medium","attack_surface_score":20,"tainted_sinks":11,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":0},"comparison":{"percentile":76.5,"rank":118017,"peer_count":501497,"better_than":76.5,"risk_distribution":{"low":101676,"high":178141,"medium":121491,"critical":38878,"minimal":61311}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"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 $_GET on echo","Reachable 'file_include' sink x11 - 11 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: 12 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]}],"owasp_findings":{"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/wc-smart-cod/tags/1.9.11/admin/class-wc-smart-cod-settings-tools.php","line":247},{"type":"reachability_sink","sink":"file_include","count":11,"risk":"11 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"}],"A04":[{"type":"direct_file_access","count":12,"risk":"12 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}]}}