{"summary":{"plugin_name":"add-to-cart-direct-checkout-for-woocommerce","display_name":"Add to Cart Redirect for WooCommerce","version":"2.2.9","risk_level":"low","risk_score":25.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":10,"superglobal_density":5},"last_analyzed":"2026-11-23T14:55:33.861363","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":6000,"rating":98,"num_ratings":101,"tested":"7.1.5","requires":"3.0.1","requires_php":"False","author":"PI Web Solution","short_description":"Features offered: Add to cart redirect, Quick purchase button, Buy now button, Quick View product, option to change quantity on checkout page.","tags":["Direct Checkout","one page checkout","redirect to checkout","woocommerce direct checkout","WooCommerce Single Page Checkout"],"added":"2019-03-04","last_updated":"2026-11-10 11:12am GMT","metadata_fetched_at":"2026-11-22T02:46:20.481323+00:00","modules_missing":[],"modules_failed":[],"latest_release":"2.2.7"},"security_metrics":{"total_issues":11,"parameters_found":25,"unknown_parameters":0,"headers_accessed":1,"cookies_accessed":0,"wp_hooks":2,"rest_routes":0,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":1,"A03":6,"A07":1},"attack_surface_level":"medium","attack_surface_score":27,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":3},"comparison":{"percentile":71.4,"rank":142458,"peer_count":498343,"better_than":71.4,"risk_distribution":{"low":100247,"high":177896,"medium":120809,"critical":38736,"minimal":60655}},"executive_summary":null,"vulnerabilities":[{"id":"15529920-77b3-41ed-8807-8744d48a150d","title":"Direct checkout, Add to cart redirect for Woocommerce < 2.1.49 - Admin+ Stored XSS","created_at":"2023-06-27T19:12:07.000Z","updated_at":"2023-06-27T19:12:08.000Z","published_date":"2023-06-26T00:00:00.000Z","description":null,"poc":null,"vuln_type":"XSS","references":{"cve":["2023-28988"]},"cvss":null,"fixed_in":"2.1.49","introduced_in":null}],"recommendations":[{"category":"A03","name":"Injection","severity":"critical","findings_count":6,"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","phpcs_security: Easy XSS detected because of direct user input with $_GET on echo","phpcs_security: Easy XSS detected because of direct user input with $_GET on echo","phpcs_security: Easy XSS detected because of direct user input with $_GET on echo","phpcs_security: Easy XSS detected because of direct user input with $_GET on echo"]},{"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' 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":["Parameter 'captcha_field' - Authentication-related parameter — verify login flow hardening"]}],"owasp_findings":{"A01":[{"type":"pattern_match","pattern":"nopriv_no_nonce","count":3,"severity":"high","examples":["public/class-change-quantity-checkout.php:18","public/class-change-quantity-checkout.php:21","public/quickview/class.frontend.php:34"],"risk":"Nopriv AJAX handler without nonce verification (3 occurrence(s))"}],"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/add-to-cart-direct-checkout-for-woocommerce/tags/2.2.9/admin/class-pi-dcw-add-to-cart.php","line":72},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/add-to-cart-direct-checkout-for-woocommerce/tags/2.2.9/admin/class-pi-dcw-buy-now.php","line":93},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/add-to-cart-direct-checkout-for-woocommerce/tags/2.2.9/admin/class-pi-dcw-checkout.php","line":155},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/add-to-cart-direct-checkout-for-woocommerce/tags/2.2.9/admin/class-pi-dcw-option.php","line":79},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/add-to-cart-direct-checkout-for-woocommerce/tags/2.2.9/admin/plugins.php","line":62},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/add-to-cart-direct-checkout-for-woocommerce/tags/2.2.9/public/quickview/class-pi-dcw-quickview.php","line":88}],"A07":[{"type":"parameter","name":"captcha_field","locations":{"POST":[{"file":"/plugins/add-to-cart-direct-checkout-for-woocommerce/tags/2.2.9/public/class-checkout-captcha.php","line":94,"offset":3412,"snippet":"$_POST['captcha_field']"},{"file":"/plugins/add-to-cart-direct-checkout-for-woocommerce/tags/2.2.9/public/class-checkout-captcha.php","line":94,"offset":3459,"snippet":"$_POST['captcha_field']"}]},"risk":"Authentication-related parameter — verify login flow hardening"}]}}