{"summary":{"plugin_name":"better-payment","display_name":"Better Payment – Donation Forms, AI Fundraising Campaigns, Recurring Donations & Payment Forms","version":"2.5.1","risk_level":"medium","risk_score":45.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":15,"unauth_ratio":5,"rest_routes":10,"raw_input":5},"last_analyzed":"2026-11-29T22:12:37.105683","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":5000,"rating":92,"num_ratings":14,"tested":"7.1.5","requires":"6.0","requires_php":"7.4","author":"WPDeveloper","short_description":"Accept payments, donations and subscriptions, run fundraising campaigns and sell products on your Elementor and Gutenberg website.","tags":["charity","crowdfunding","donate","donation","fundraising"],"added":"2021-10-26","last_updated":"2026-11-18 11:45am GMT","metadata_fetched_at":"2026-11-23T00:50:50.613513+00:00","modules_missing":[],"modules_failed":[],"latest_release":"2.5.1"},"security_metrics":{"total_issues":31,"parameters_found":55,"unknown_parameters":2,"headers_accessed":8,"cookies_accessed":0,"wp_hooks":2,"rest_routes":48,"query_vars":3,"shortcode_atts":1,"rest_routes_with_access_patterns":9,"file_upload_parameters":1,"owasp_findings":{"A01":9},"attack_surface_level":"large","attack_surface_score":158,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":6},"comparison":{"percentile":50.4,"rank":249410,"peer_count":502779,"better_than":50.4,"risk_distribution":{"low":102294,"high":178279,"medium":121659,"critical":38948,"minimal":61599}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A01","name":"Broken Access Control","severity":"critical","findings_count":9,"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 '/campaigns/(?P<id>[\\d]+)/stats' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/campaigns/templates' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route '/mcp' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route 'None' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers","REST route 'None' - REST route registered with permission_callback '__return_true' — open to unauthenticated callers"]}],"owasp_findings":{"A01":[{"type":"rest_route","name":"/campaigns/(?P<id>[\\d]+)/stats","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/campaigns/templates","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":"/mcp","risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":null,"risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":null,"risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":null,"risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"type":"rest_route","name":null,"risk":"REST route registered with permission_callback '__return_true' — open to unauthenticated callers"},{"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":6,"severity":"high","examples":["includes/Admin.php:82","includes/Admin.php:85","includes/class-better-payment-actions.php:11"],"risk":"Nopriv AJAX handler without nonce verification (6 occurrence(s))"}]}}