{"summary":{"plugin_name":"change-quantity-on-checkout-for-woocommerce","display_name":"Change Quantity on Checkout for WooCommerce","version":"4.0","risk_level":"low","risk_score":20.0,"risk_factors":{"static_analysis":5,"owasp":5,"unauth_ratio":5,"superglobal_density":5},"last_analyzed":"2026-11-23T14:47:14.807142","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":5000,"rating":100,"num_ratings":52,"tested":"6.9","requires":"1.4","requires_php":"5.6","author":"bhavik.kiri","short_description":"Allow customers to change product quantities and remove products directly from both Classic and Block-based WooCommerce checkout pages.","tags":["checkout","quantity","remove product","update quantity","woocommerce"],"added":"2016-08-16","last_updated":"2025-12-21 7:35pm GMT","metadata_fetched_at":null,"modules_missing":null,"modules_failed":null,"latest_release":null},"security_metrics":{"total_issues":7,"parameters_found":4,"unknown_parameters":0,"headers_accessed":0,"cookies_accessed":0,"wp_hooks":1,"rest_routes":0,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":1,"A03":4},"attack_surface_level":"minimal","attack_surface_score":5,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":1},"comparison":{"percentile":94.8,"rank":7464,"peer_count":142284,"better_than":94.8,"risk_distribution":{"high":68561,"medium":41398,"low":17028,"critical":7834,"minimal":7459,"Unknown":4}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A03","name":"Injection","severity":"high","findings_count":4,"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"]},{"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' x1 - Nopriv AJAX handler without nonce verification (1 occurrence(s))"]}],"owasp_findings":{"A01":[{"type":"pattern_match","pattern":"nopriv_no_nonce","count":1,"severity":"high","examples":["change-quantity-on-checkout-woocommerce.php:124"],"risk":"Nopriv AJAX handler without nonce verification (1 occurrence(s))"}],"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/change-quantity-on-checkout-for-woocommerce/tags/4.0/includes/cqoc-admin - backup.php","line":70},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/change-quantity-on-checkout-for-woocommerce/tags/4.0/includes/cqoc-admin - backup.php","line":74},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/change-quantity-on-checkout-for-woocommerce/tags/4.0/includes/cqoc-admin.php","line":95},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/change-quantity-on-checkout-for-woocommerce/tags/4.0/includes/cqoc-admin.php","line":99}]}}