{"summary":{"plugin_name":"klarna-payments-for-woocommerce","display_name":"Klarna for WooCommerce","version":"4.13.6","risk_level":"low","risk_score":25.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":10,"raw_input":5},"last_analyzed":"2026-11-27T16:10:01.068849","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":20000,"rating":46,"num_ratings":20,"tested":"7.1.5","requires":"6.7","requires_php":"8.0","author":"Klarna","short_description":"Grow your business for increased sales and enhanced shopping experiences at no extra costs.","tags":["e-commerce","ecommerce","klarna","woocommerce"],"added":"2017-12-12","last_updated":"2026-11-17 10:53am GMT","metadata_fetched_at":"2026-11-22T04:36:09.727132+00:00","modules_missing":[],"modules_failed":[],"latest_release":"4.14.0"},"security_metrics":{"total_issues":30,"parameters_found":40,"unknown_parameters":1,"headers_accessed":1,"cookies_accessed":0,"wp_hooks":2,"rest_routes":1,"query_vars":1,"shortcode_atts":1,"rest_routes_with_access_patterns":1,"file_upload_parameters":0,"owasp_findings":{"A01":1,"A07":1},"attack_surface_level":"medium","attack_surface_score":44,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":2},"comparison":{"percentile":71.3,"rank":144054,"peer_count":501273,"better_than":71.3,"risk_distribution":{"low":101554,"high":178121,"medium":121483,"critical":38850,"minimal":61265}},"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' x2 - Nopriv AJAX handler without nonce verification (2 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 'auth_token' - Authentication-related parameter — verify login flow hardening"]}],"owasp_findings":{"A01":[{"type":"pattern_match","pattern":"nopriv_no_nonce","count":2,"severity":"high","examples":["classes/class-kp-banners.php:24","classes/class-kp-ajax.php:35"],"risk":"Nopriv AJAX handler without nonce verification (2 occurrence(s))"}],"A07":[{"type":"parameter","name":"auth_token","locations":{"POST":[{"file":"/plugins/klarna-payments-for-woocommerce/tags/4.13.6/classes/class-kp-ajax.php","line":72,"offset":2063,"snippet":"filter_input(INPUT_POST, 'auth_token', FILTER_SANITIZE_SPECIAL_CHARS)"}]},"risk":"Authentication-related parameter — verify login flow hardening"}]}}