{"summary":{"plugin_name":"woocommerce-gateway-paypal-powered-by-braintree","display_name":"PayPal Enterprise Payments (formerly Braintree) for WooCommerce","version":"3.12.2","risk_level":"low","risk_score":10.0,"risk_factors":{"static_analysis":5,"owasp":5},"last_analyzed":"2026-11-25T01:03:05.532393","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":10000,"rating":52,"num_ratings":50,"tested":"7.1.3","requires":"6.9","requires_php":"7.4","author":"WooCommerce","short_description":"The official PayPal Enterprise Payments extension for WooCommerce. Accept credit cards, PayPal, Apple Pay, Google Pay, Venmo, ACH Direct Debit, BNPL,  …","tags":["braintree","ecommerce","payments","paypal","woocommerce"],"added":"2016-01-05","last_updated":"2026-10-23 12:43pm GMT","metadata_fetched_at":"2026-10-25T02:45:49.016221+00:00","modules_missing":[],"modules_failed":[],"latest_release":"3.12.2"},"security_metrics":{"total_issues":72,"parameters_found":32,"unknown_parameters":2,"headers_accessed":3,"cookies_accessed":0,"wp_hooks":2,"rest_routes":3,"query_vars":1,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":1,"A03":2},"attack_surface_level":"medium","attack_surface_score":40,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":8},"comparison":{"percentile":87.8,"rank":61312,"peer_count":501497,"better_than":87.8,"risk_distribution":{"low":101676,"high":178141,"medium":121491,"critical":38878,"minimal":61311}},"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' x8 - Nopriv AJAX handler without nonce verification (8 occurrence(s))"]},{"category":"A03","name":"Injection","severity":"medium","findings_count":2,"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"]}],"owasp_findings":{"A01":[{"type":"pattern_match","pattern":"nopriv_no_nonce","count":8,"severity":"high","examples":["includes/WC_Gateway_Braintree_Credit_Card.php:120","includes/class-wc-gateway-braintree-credit-card.php:116","includes/class-wc-gateway-braintree-paypal.php:115"],"risk":"Nopriv AJAX handler without nonce verification (8 occurrence(s))"}],"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/woocommerce-gateway-paypal-powered-by-braintree/tags/3.12.2/vendor/skyverge/wc-plugin-framework/woocommerce/class-sv-wc-framework-bootstrap.php","line":244},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_GET on echo","file":"/plugins/woocommerce-gateway-paypal-powered-by-braintree/tags/3.12.2/vendor/skyverge/wc-plugin-framework/woocommerce/class-sv-wc-framework-bootstrap.php","line":245}]}}