{"summary":{"plugin_name":"advanced-coupons-for-woocommerce-free","display_name":"Advanced Coupons for WooCommerce – BOGO, Store Credit & WooCommerce Coupons","version":"4.7.6.1","risk_level":"medium","risk_score":37.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":10,"unauth_ratio":5,"superglobal_density":5,"rest_routes":2,"raw_input":5},"last_analyzed":"2026-11-23T14:47:27.043133","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":20000,"rating":88,"num_ratings":185,"tested":"7.1.5","requires":"5.9","requires_php":"5.6","author":"Josh Kohlbach","short_description":"WooCommerce coupon plugin for BOGO deals, store credit, URL coupons, discount codes, coupon rules, gift cards & loyalty program. Free & powerful.","tags":["bogo","coupon plugin","discount codes","store credit","woocommerce coupons"],"added":"2020-05-05","last_updated":"2026-10-28 7:24am GMT","metadata_fetched_at":"2026-11-22T04:44:51.637795+00:00","modules_missing":[],"modules_failed":[],"latest_release":"4.7.6.1"},"security_metrics":{"total_issues":30,"parameters_found":45,"unknown_parameters":1,"headers_accessed":6,"cookies_accessed":1,"wp_hooks":2,"rest_routes":28,"query_vars":0,"shortcode_atts":3,"rest_routes_with_access_patterns":9,"file_upload_parameters":0,"owasp_findings":{"A01":2,"A03":1,"A07":2},"attack_surface_level":"large","attack_surface_score":103,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":6},"comparison":{"percentile":62.1,"rank":190226,"peer_count":501273,"better_than":62.1,"risk_distribution":{"low":101554,"high":178121,"medium":121483,"critical":38850,"minimal":61265}},"executive_summary":null,"vulnerabilities":[{"id":"0a6dadd1-13c9-42da-9e59-127f60d2c1ba","title":"Advanced Coupons for WooCommerce Coupons < 4.5.0.1 - Notice Dismiss via CSRF","created_at":"2022-11-08T22:23:58.000Z","updated_at":"2022-11-08T22:24:01.000Z","published_date":"2022-11-30T00:00:00.000Z","vuln_type":"CSRF","references":{"cve":["2022-43481"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"4.5.0.1","introduced_in":null},{"id":"fb0f7002-53e1-4bf5-b160-4dafec2e313a","title":"Advanced Coupons for WooCommerce Coupons < 4.6.9 - Authenticated (Shop manager+) SQL Injection","created_at":"2025-10-22T21:32:25.000Z","updated_at":"2025-10-22T21:32:25.000Z","published_date":"2025-10-16T00:00:00.000Z","vuln_type":"SQLI","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/3288536d-e0c9-4c9f-8d28-444dfe79d770"],"cve":["2025-62015"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"4.6.9","introduced_in":null},{"id":"886c3dd9-a66c-4567-9341-a8b22b53a2f0","title":"Advanced Coupons for WooCommerce Coupons < 4.7.2 - Authenticated (Contributor+) Stored Cross-Site Scripting","created_at":"2026-04-15T21:34:23.000Z","updated_at":"2026-04-15T21:34:23.000Z","published_date":"2026-03-28T00:00:00.000Z","vuln_type":"XSS","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/2d1d8f46-68e4-4101-8ae8-1ca01f5145bf"],"cve":["2026-39508"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"4.7.2","introduced_in":null},{"id":"bdbc8751-7732-414f-9c79-e0c9416045b0","title":"Advanced Coupons for WooCommerce Coupons < 4.7.1.1 - Missing Authorization","created_at":"2026-04-15T21:41:43.000Z","updated_at":"2026-04-15T21:41:43.000Z","published_date":"2026-02-06T00:00:00.000Z","vuln_type":"NO AUTHORISATION","references":{"url":["https://www.wordfence.com/threat-intel/vulnerabilities/id/8591cbd0-0bdb-4222-8485-0e96cf15e39f"],"cve":["2026-31919"]},"verified":false,"poc":null,"description":null,"cvss":null,"fixed_in":"4.7.1.1","introduced_in":null}],"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":["REST route 'None' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","Pattern 'nopriv_no_nonce' x1 - Nopriv AJAX handler without nonce verification (1 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' x5 - Interpolated variable in SQL query string (5 occurrence(s))"]},{"category":"A07","name":"Identification and Authentication Failures","severity":"medium","findings_count":2,"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":["Parameter 'woocommerce-login-nonce' - Authentication-related parameter — verify login flow hardening","Auth hook 'user_register' - Hooks the 'user_register' authentication/identity flow — verify it cannot be abused to bypass authentication"]}],"owasp_findings":{"A01":[{"type":"rest_route","name":null,"risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"pattern_match","pattern":"nopriv_no_nonce","count":1,"severity":"high","examples":["Models/Emails.php:320"],"risk":"Nopriv AJAX handler without nonce verification (1 occurrence(s))"}],"A03":[{"type":"pattern_match","pattern":"sqli_interpolated","count":5,"severity":"critical","examples":["Models/Usage.php:202","Models/BOGO/Admin.php:131","Models/REST_API/API_Store_Credit_Entry.php:487"],"risk":"Interpolated variable in SQL query string (5 occurrence(s))"}],"A07":[{"type":"parameter","name":"woocommerce-login-nonce","locations":{"GET":[{"file":"/plugins/advanced-coupons-for-woocommerce-free/tags/4.7.6.1/Models/Role_Restrictions.php","line":198,"offset":5989,"snippet":"$_REQUEST['woocommerce-login-nonce']"}],"POST":[{"file":"/plugins/advanced-coupons-for-woocommerce-free/tags/4.7.6.1/Models/Role_Restrictions.php","line":198,"offset":5989,"snippet":"$_REQUEST['woocommerce-login-nonce']"}]},"risk":"Authentication-related parameter — verify login flow hardening"},{"type":"auth_hook","name":"user_register","risk":"Hooks the 'user_register' authentication/identity flow — verify it cannot be abused to bypass authentication"}]}}