{"summary":{"plugin_name":"woo-payment-gateway","display_name":"Payment Plugins Braintree For WooCommerce","version":"3.2.86","risk_level":"high","risk_score":60.0,"risk_factors":{"static_analysis":20,"owasp":5,"attack_surface":10,"unauth_ratio":15,"rest_routes":10},"last_analyzed":"2026-11-23T13:40:56.890166","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":2000,"rating":96,"num_ratings":149,"tested":"7.1.3","requires":"3.0.1","requires_php":"5.6","author":"Payment Plugins","short_description":"Accept Credit Cards, PayPal, PayPal Credit, Google Pay, ApplePay, Venmo, and Local Payments like iDEAL all in one plugin for free!","tags":["braintree","braintree gateway","braintree plugin","braintree woocommerce","fastlane"],"added":"2015-08-11","last_updated":"2026-10-09 5:24pm GMT","metadata_fetched_at":"2026-10-11T00:45:26.448997+00:00","modules_missing":null,"modules_failed":null,"latest_release":"3.2.86"},"security_metrics":{"total_issues":87,"parameters_found":30,"unknown_parameters":1,"headers_accessed":2,"cookies_accessed":0,"wp_hooks":2,"rest_routes":33,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":3,"file_upload_parameters":0,"owasp_findings":{"A01":18,"A03":1},"attack_surface_level":"large","attack_surface_score":98,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":20},"comparison":{"percentile":16.5,"rank":401686,"peer_count":480820,"better_than":16.5,"risk_distribution":{"high":176587,"critical":38202,"medium":117354,"low":92200,"minimal":56477}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A01","name":"Broken Access Control","severity":"critical","findings_count":18,"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 'vaulted_nonce' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route 'payment-method' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route 'cart' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route 'cart/shipping-method' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route 'cart/shipping-address' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers"]},{"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' x2 - Interpolated variable in SQL query string (2 occurrence(s))"]}],"owasp_findings":{"A01":[{"type":"rest_route","name":"vaulted_nonce","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"payment-method","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"cart","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"cart/shipping-method","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"cart/shipping-address","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"cart/shipping","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"checkout","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"create","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"shipping-address","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"(?P<api_key>[\\w\\_\\-]+)","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"(?P<api_key>[\\w\\_\\-]+)","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"payment-data","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"payment/complete","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"shipping","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"notification","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"webhooks/test","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"webhooks","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"pattern_match","pattern":"rest_no_permission","count":18,"severity":"high","examples":["includes/api/class-wc-braintree-controller-kount.php:30","includes/api/class-wc-braintree-controller-kount.php:40","includes/api/class-wc-braintree-controller-local-payment.php:25"],"risk":"REST endpoint with no permission check (18 occurrence(s))"}],"A03":[{"type":"pattern_match","pattern":"sqli_interpolated","count":2,"severity":"critical","examples":["includes/api/class-wc-braintree-controller-data-migration.php:94","includes/api/class-wc-braintree-controller-data-migration.php:104"],"risk":"Interpolated variable in SQL query string (2 occurrence(s))"}]}}