{"summary":{"plugin_name":"iq-block-country","display_name":"iQ Block Country","version":"1.2.29","risk_level":"low","risk_score":10.0,"risk_factors":{"static_analysis":5,"owasp":5},"last_analyzed":"2026-11-23T13:46:28.357031","removed_from_directory":false,"closed_reason":null,"closed_date":null,"commercial":false,"free_counterpart":null,"active_installs":20000,"rating":78,"num_ratings":166,"tested":"7.1.4","requires":"3.5.2","requires_php":"7.4","author":"Pascal","short_description":"Allow or disallow visitors from certain countries accessing (parts of) your website","tags":["ban countries","block","Block countries","block spam","Geoblocking"],"added":"2010-03-16","last_updated":"2026-11-13 7:08pm GMT","metadata_fetched_at":"2026-09-06T08:20:21.578169+00:00","modules_missing":null,"modules_failed":null,"latest_release":"1.2.29"},"security_metrics":{"total_issues":31,"parameters_found":9,"unknown_parameters":0,"headers_accessed":16,"cookies_accessed":0,"wp_hooks":2,"rest_routes":0,"query_vars":0,"shortcode_atts":0,"rest_routes_with_access_patterns":0,"file_upload_parameters":2,"owasp_findings":{"A03":12},"attack_surface_level":"medium","attack_surface_score":21,"tainted_sinks":0,"tainted_sql":0,"tainted_ssrf":0,"tainted_file_ops":0,"auth_bypass_sinks":0,"dangerous_patterns":0},"comparison":{"percentile":88.7,"rank":52679,"peer_count":465884,"better_than":88.7,"risk_distribution":{"medium":114355,"minimal":52678,"high":175772,"low":85105,"critical":37974}},"executive_summary":null,"vulnerabilities":[{"id":"8113a201-9318-4d8b-ae7e-ac23ed87b1de","title":"iQ Block Country < 1.1.20 - Reflected Cross-Site Scripting (XSS)","created_at":"2015-11-24T11:46:21.000Z","updated_at":"2021-03-03T12:04:04.000Z","published_date":"2015-08-24T00:00:00.000Z","description":null,"poc":null,"vuln_type":"XSS","references":{"url":["http://cinu.pl/research/wp-plugins/mail_9853820e07651f94256abcd75e8f7e9b.html","http://blog.cinu.pl/2015/11/php-static-code-analysis-vs-top-1000-wordpress-plugins.html"]},"cvss":null,"fixed_in":"1.1.20","introduced_in":null},{"id":"ba93f085-2153-439b-9cda-7c5b09d3ed58","title":"iQ Block Country < 1.2.12 - Admin+ Stored Cross-Site Scripting","created_at":"2021-09-23T16:01:46.000Z","updated_at":"2022-04-09T07:03:25.000Z","published_date":"2021-07-17T00:00:00.000Z","description":null,"poc":null,"vuln_type":"XSS","references":{"cve":["2021-36873"]},"cvss":null,"fixed_in":"1.2.12","introduced_in":null},{"id":"892802b1-26e2-4ce1-be6f-71ce29687776","title":"iQ Block Country < 1.2.13 - Admin+ Arbitrary File Deletion via Zip Slip","created_at":"2022-03-16T09:50:18.000Z","updated_at":"2022-04-09T07:12:12.000Z","published_date":"2022-03-16T00:00:00.000Z","description":null,"poc":null,"vuln_type":"FILE DELETION","references":{"cve":["2022-0246"]},"cvss":null,"fixed_in":"1.2.13","introduced_in":null},{"id":"03254977-37cc-4365-979b-326f9637be85","title":"iQ Block Country <= 1.2.19 - Protection Bypass due to IP Spoofing","created_at":"2022-05-17T12:50:41.000Z","updated_at":"2022-10-18T14:37:11.000Z","published_date":"2022-05-17T00:00:00.000Z","description":null,"poc":null,"vuln_type":"BYPASS","references":{"cve":["2022-1762"]},"cvss":null,"fixed_in":"1.2.20","introduced_in":null}],"recommendations":[{"category":"A03","name":"Injection","severity":"critical","findings_count":12,"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 $_SERVER on echo"]}],"owasp_findings":{"A03":[{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/iq-block-country/tags/1.2.29/libs/blockcountry-settings.php","line":484},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/iq-block-country/tags/1.2.29/libs/blockcountry-settings.php","line":511},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/iq-block-country/tags/1.2.29/libs/blockcountry-settings.php","line":514},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/iq-block-country/tags/1.2.29/libs/blockcountry-settings.php","line":685},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/iq-block-country/tags/1.2.29/libs/blockcountry-settings.php","line":691},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/iq-block-country/tags/1.2.29/libs/blockcountry-settings.php","line":697},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/iq-block-country/tags/1.2.29/libs/blockcountry-settings.php","line":703},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/iq-block-country/tags/1.2.29/libs/blockcountry-settings.php","line":709},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/iq-block-country/tags/1.2.29/libs/blockcountry-settings.php","line":715},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/iq-block-country/tags/1.2.29/libs/blockcountry-settings.php","line":721},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/iq-block-country/tags/1.2.29/libs/blockcountry-settings.php","line":727},{"type":"phpcs_security","message":"Easy XSS detected because of direct user input with $_SERVER on echo","file":"/plugins/iq-block-country/tags/1.2.29/libs/blockcountry-settings.php","line":733}]}}