{"summary":{"plugin_name":"geoip-detect","display_name":"Geolocation IP Detection","version":"5.6.4","risk_level":"low","risk_score":25.0,"risk_factors":{"static_analysis":10,"owasp":5,"attack_surface":5,"superglobal_density":5},"last_analyzed":"2026-11-23T13:19:55.269873","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":20000,"rating":94,"num_ratings":59,"tested":"7.0","requires":"5.0","requires_php":"7.2.5","author":"Benjamin Pick","short_description":"Provides geographic information detected by an IP adress.","tags":["GeoIP","geolocation","ipstack","locator","maxmind"],"added":"2013-07-04","last_updated":"2026-06-03 3:06pm GMT","metadata_fetched_at":"2026-06-14T20:41:57.851901+00:00","modules_missing":null,"modules_failed":null,"latest_release":"5.6.4"},"security_metrics":{"total_issues":36,"parameters_found":12,"unknown_parameters":0,"headers_accessed":5,"cookies_accessed":0,"wp_hooks":2,"rest_routes":0,"query_vars":0,"shortcode_atts":2,"rest_routes_with_access_patterns":0,"file_upload_parameters":0,"owasp_findings":{"A01":1,"A03":8,"A04":1},"attack_surface_level":"medium","attack_surface_score":14,"tainted_sinks":9,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":1},"comparison":{"percentile":76.2,"rank":104303,"peer_count":437672,"better_than":76.2,"risk_distribution":{"medium":109460,"minimal":44934,"high":174187,"low":71665,"critical":37426}},"executive_summary":null,"vulnerabilities":[],"recommendations":[{"category":"A03","name":"Injection","severity":"critical","findings_count":8,"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 $_SERVER on echo","phpcs_security: Easy XSS detected because of direct user input with $_SERVER on echo","phpcs_security: Easy XSS detected because of direct user input with $_SERVER on echo","phpcs_security: Easy XSS detected because of direct user input with $_SERVER on echo","phpcs_security: Easy XSS detected because of direct user input with $_REQUEST on echo"]},{"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' x1 - Nopriv AJAX handler without nonce verification (1 occurrence(s))"]},{"category":"A04","name":"Insecure Design","severity":"low","findings_count":1,"description":"Missing or ineffective control design — e.g. plugin files that perform work when requested directly, bypassing the WordPress bootstrap","recommendations":["Add a `defined('ABSPATH') || exit;` guard to every PHP file so it cannot be requested directly","Move logic out of directly-reachable files into hook callbacks loaded by WordPress","Threat-model unauthenticated entry points during design, not after release"],"findings_summary":["Direct file access: 10 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"]}],"owasp_findings":{"A01":[{"type":"pattern_match","pattern":"nopriv_no_nonce","count":1,"severity":"high","examples":["ajax.php:74"],"risk":"Nopriv AJAX handler without nonce verification (1 occurrence(s))"}],"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/geoip-detect/tags/5.6.4/views/client-ip.php","line":40},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/geoip-detect/tags/5.6.4/views/client-ip.php","line":40},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/geoip-detect/tags/5.6.4/views/client-ip.php","line":42},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/geoip-detect/tags/5.6.4/views/client-ip.php","line":42},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/geoip-detect/tags/5.6.4/views/lookup.php","line":88},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/geoip-detect/tags/5.6.4/views/plugin_page.php","line":50},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_REQUEST on echo","file":"/plugins/geoip-detect/tags/5.6.4/views/plugin_page.php","line":50},{"type":"reachability_sink","sink":"file_include","count":9,"risk":"9 attacker-reachable 'file_include' sink(s) found by the reachability analyzer"}],"A04":[{"type":"direct_file_access","count":10,"risk":"10 plugin file(s) reachable by direct HTTP request, bypassing the WordPress bootstrap — insecure design"}]}}