{"summary":{"plugin_name":"woo-smart-compare","display_name":"WPC Smart Compare for WooCommerce","version":"6.7.1","risk_level":"low","risk_score":20.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":5,"superglobal_density":5},"last_analyzed":"2026-11-23T13:33:50.577131","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":60000,"rating":90,"num_ratings":44,"tested":"7.1.5","requires":"5.9","requires_php":"False","author":"WPClever","short_description":"It helps customers compare products with mighty AJAX, doesn't require opening a new page or iframe, and allows drag-and-drop functionality.","tags":["compare","comparison","quick compare","woocommerce","wpc"],"added":"2017-05-23","last_updated":"2026-11-07 4:39am GMT","metadata_fetched_at":"2026-11-22T05:37:43.688451+00:00","modules_missing":[],"modules_failed":[],"latest_release":"6.7.1"},"security_metrics":{"total_issues":3,"parameters_found":17,"unknown_parameters":0,"headers_accessed":0,"cookies_accessed":0,"wp_hooks":2,"rest_routes":0,"query_vars":1,"shortcode_atts":2,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":2,"A07":1,"A08":1},"attack_surface_level":"medium","attack_surface_score":19,"tainted_sinks":4,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":3},"comparison":{"percentile":76.6,"rank":116934,"peer_count":498955,"better_than":76.6,"risk_distribution":{"low":100541,"high":177932,"medium":120932,"critical":38742,"minimal":60808}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A01","name":"Broken Access Control","severity":"medium","findings_count":2,"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":["Reachable 'option_update' sink x1 - 1 attacker-reachable 'option_update' sink(s) found by the reachability analyzer","Pattern 'nopriv_no_nonce' x3 - Nopriv AJAX handler without nonce verification (3 occurrence(s))"]},{"category":"A07","name":"Identification and Authentication Failures","severity":"medium","findings_count":1,"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"]},{"category":"A08","name":"Software and Data Integrity Failures","severity":"medium","findings_count":1,"description":"Code and infrastructure that does not protect against integrity violations — notably insecure deserialization of attacker-controlled data","recommendations":["Never call unserialize() on attacker-controlled data — use json_decode() instead","If deserialization is unavoidable, pass ['allowed_classes' => false]","Verify integrity (signatures/checksums) of updates and imported data"],"findings_summary":["Reachable 'unserialize' sink x3 - 3 attacker-reachable 'unserialize' sink(s) found by the reachability analyzer"]}],"owasp_findings":{"A01":[{"type":"reachability_sink","sink":"option_update","count":1,"risk":"1 attacker-reachable 'option_update' sink(s) found by the reachability analyzer"},{"type":"pattern_match","pattern":"nopriv_no_nonce","count":3,"severity":"high","examples":["wpc-smart-compare.php:79","wpc-smart-compare.php:86","wpc-smart-compare.php:90"],"risk":"Nopriv AJAX handler without nonce verification (3 occurrence(s))"}],"A07":[{"type":"auth_hook","name":"wp_login","risk":"Hooks the 'wp_login' authentication/identity flow — verify it cannot be abused to bypass authentication"}],"A08":[{"type":"reachability_sink","sink":"unserialize","count":3,"risk":"3 attacker-reachable 'unserialize' sink(s) found by the reachability analyzer"}]}}