{"summary":{"plugin_name":"shopmagic-for-woocommerce","display_name":"ShopMagic – email automation for WordPress","version":"4.9.5","risk_level":"low","risk_score":25.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":10,"filter_hooks":5},"last_analyzed":"2026-11-23T13:37:49.851083","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":10000,"rating":92,"num_ratings":78,"tested":"7.2","requires":"6.4","requires_php":"7.4","author":"wpdesk","short_description":"Flexible email automation and workflows triggered by customer and site events.","tags":["customize woocommerce emails","follow up emails","woocommerce abandoned cart","woocommerce email customizer","woocommerce mailchimp"],"added":"2016-10-03","last_updated":"2026-11-21 7:56am GMT","metadata_fetched_at":"2026-11-22T22:02:07.427539+00:00","modules_missing":[],"modules_failed":[],"latest_release":"4.9.5"},"security_metrics":{"total_issues":204,"parameters_found":40,"unknown_parameters":2,"headers_accessed":12,"cookies_accessed":0,"wp_hooks":2,"rest_routes":1,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":1,"A03":1,"A07":1},"attack_surface_level":"medium","attack_surface_score":44,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":21},"comparison":{"percentile":71.2,"rank":144641,"peer_count":502209,"better_than":71.2,"risk_distribution":{"low":102043,"high":178209,"medium":121581,"critical":38915,"minimal":61461}},"executive_summary":null,"vulnerabilities":[],"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":["Pattern 'nopriv_no_nonce' x7 - Nopriv AJAX handler without nonce verification (7 occurrence(s))"]},{"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' x14 - Interpolated variable in SQL query string (14 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 'user_register' - Hooks the 'user_register' authentication/identity flow — verify it cannot be abused to bypass authentication"]}],"owasp_findings":{"A01":[{"type":"pattern_match","pattern":"nopriv_no_nonce","count":7,"severity":"high","examples":["src/Frontend/ListsForm.php:24","src/Frontend/Interceptor/PreSubmitData.php:27","src/Frontend/Interceptor/PreSubmitData.php:28"],"risk":"Nopriv AJAX handler without nonce verification (7 occurrence(s))"}],"A03":[{"type":"pattern_match","pattern":"sqli_interpolated","count":14,"severity":"critical","examples":["src/Database/DatabaseSchema.php:112","src/Database/DatabaseSchema.php:137","src/Database/DatabaseSchema.php:160"],"risk":"Interpolated variable in SQL query string (14 occurrence(s))"}],"A07":[{"type":"auth_hook","name":"user_register","risk":"Hooks the 'user_register' authentication/identity flow — verify it cannot be abused to bypass authentication"}]}}