{"summary":{"plugin_name":"woo-swish-e-commerce","display_name":"BjornTech Swish for WooCommerce","version":"3.8.1","risk_level":"medium","risk_score":37.0,"risk_factors":{"static_analysis":5,"owasp":5,"attack_surface":10,"superglobal_density":5,"rest_routes":2,"raw_input":10},"last_analyzed":"2026-12-05T07:33:57.677191","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":2000,"rating":92,"num_ratings":20,"tested":"7.1.4","requires":"5.3","requires_php":"7.4","author":"bjorntech","short_description":"Accept Swish payments in your WooCommerce store with BjornTech as Technical Supplier.","tags":["ecommerce","payment","swish","swish-handel","woocommerce"],"added":"2018-10-15","last_updated":"2026-11-01 10:58pm GMT","metadata_fetched_at":"2026-11-16T05:53:53.937355+00:00","modules_missing":null,"modules_failed":null,"latest_release":"3.8.1"},"security_metrics":{"total_issues":20,"parameters_found":27,"unknown_parameters":1,"headers_accessed":3,"cookies_accessed":0,"wp_hooks":2,"rest_routes":1,"query_vars":1,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":1,"A02":2},"attack_surface_level":"medium","attack_surface_score":31,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":2},"comparison":{"percentile":62.4,"rank":186941,"peer_count":497311,"better_than":62.4,"risk_distribution":{"low":99720,"high":177846,"medium":120641,"critical":38744,"minimal":60360}},"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":"A02","name":"Cryptographic Failures","severity":"low","findings_count":2,"description":"Failures related to cryptography which often lead to exposure of sensitive data","recommendations":["Never store passwords or API keys in plain text","Use WordPress options API with encryption for sensitive data","Implement proper key management practices","Use HTTPS for all sensitive data transmission"],"findings_summary":["Parameter 'refresh_token' - Sensitive data exposure","Parameter 'secret' - Sensitive data exposure"]}],"owasp_findings":{"A01":[{"type":"pattern_match","pattern":"nopriv_no_nonce","count":2,"severity":"high","examples":["woo-swish-e-commerce.php:187","classes/woo-swish-payment-gateway.php:129"],"risk":"Nopriv AJAX handler without nonce verification (2 occurrence(s))"}],"A02":[{"type":"parameter","name":"refresh_token","locations":{"GET":[{"file":"/plugins/woo-swish-e-commerce/tags/3.8.1/classes/woo-swish-payment-gateway.php","line":1146,"offset":52859,"snippet":"$_REQUEST['refresh_token']"},{"file":"/plugins/woo-swish-e-commerce/tags/3.8.1/classes/woo-swish-payment-gateway.php","line":1148,"offset":53167,"snippet":"$_REQUEST['refresh_token']"}],"POST":[{"file":"/plugins/woo-swish-e-commerce/tags/3.8.1/classes/woo-swish-payment-gateway.php","line":1146,"offset":52859,"snippet":"$_REQUEST['refresh_token']"},{"file":"/plugins/woo-swish-e-commerce/tags/3.8.1/classes/woo-swish-payment-gateway.php","line":1148,"offset":53167,"snippet":"$_REQUEST['refresh_token']"}]},"risk":"Sensitive data exposure"},{"type":"parameter","name":"secret","locations":{"GET":[{"file":"/plugins/woo-swish-e-commerce/tags/3.8.1/classes/woo-swish-subscriptions-gateway.php","line":1810,"offset":109856,"snippet":"$_GET['secret']"},{"file":"/plugins/woo-swish-e-commerce/tags/3.8.1/classes/woo-swish-subscriptions-gateway.php","line":1810,"offset":109906,"snippet":"$_GET['secret']"}]},"risk":"Sensitive data exposure"}]}}