country-redirect Security & Risk Analysis

wordpress.org/plugins/country-redirect

Simple to use free WordPress plugin for redirection depending visitor's country

400 active installs v1.3.3 PHP 7.0+ WP 4.7+ Updated Dec 25, 2021
countrygeoipredirectredirect-by-country
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Safety Verdict

Is country-redirect Safe to Use in 2026?

Generally Safe

Score 85/100

country-redirect has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 4yr ago
Risk Assessment

The "country-redirect" plugin v1.3.3 exhibits a generally good security posture regarding its attack surface, with zero identified entry points like AJAX handlers, REST API routes, or shortcodes. This significantly limits direct avenues for external attacks. However, the code analysis reveals notable areas of concern. A significant portion of SQL queries are not using prepared statements, which is a critical vulnerability that can lead to SQL injection if the data is not properly sanitized before being used in the query. Furthermore, only 23% of output is properly escaped, indicating a risk of Cross-Site Scripting (XSS) vulnerabilities where untrusted data could be injected into the page content. The taint analysis also identified one flow with an unsanitized path, which could potentially lead to unintended file access or manipulation, though it was not classified as critical or high severity. The plugin's history of zero recorded CVEs is a positive indicator, suggesting a generally stable and well-maintained codebase. However, this should not be taken as a guarantee of future security, especially given the identified coding practices that introduce inherent risks.

In conclusion, while the plugin has a minimal attack surface and no known vulnerabilities in its history, the static analysis highlights specific, high-impact coding weaknesses. The lack of prepared statements in SQL queries and the low rate of output escaping represent tangible risks that should be addressed. The single unsanitized path in the taint analysis, while not critically severe, also warrants attention. Users should be aware that these identified weaknesses could be exploited, despite the absence of past CVEs.

Key Concerns

  • Raw SQL queries without prepared statements
  • Low rate of output escaping
  • Flow with unsanitized path (taint analysis)
Vulnerabilities
None known

country-redirect Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

country-redirect Code Analysis

Dangerous Functions
0
Raw SQL Queries
1
0 prepared
Unescaped Output
10
3 escaped
Nonce Checks
0
Capability Checks
1
File Operations
10
External Requests
1
Bundled Libraries
0

SQL Query Safety

0% prepared1 total queries

Output Escaping

23% escaped13 total outputs
Data Flows
1 unsanitized

Data Flow Analysis

1 flows1 with unsanitized paths
<country-redirect> (country-redirect.php:0)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

country-redirect Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 5
actionadmin_noticescountry-redirect.php:51
actionplugins_loadedcountry-redirect.php:57
actionadmin_menucountry-redirect.php:65
actionadmin_initcountry-redirect.php:187
actiontemplate_redirectcountry-redirect.php:290
Maintenance & Trust

country-redirect Maintenance & Trust

Maintenance Signals

WordPress version tested5.8.13
Last updatedDec 25, 2021
PHP min version7.0
Downloads13K

Community Trust

Rating84/100
Number of ratings6
Active installs400
Developer Profile

country-redirect Developer Profile

Andrii

1 plugin · 400 total installs

84
trust score
Avg Security Score
85/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect country-redirect

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/country-redirect/css/style.css/wp-content/plugins/country-redirect/js/redirect.js
Script Paths
/wp-content/plugins/country-redirect/js/redirect.js
Version Parameters
country-redirect/style.css?ver=country-redirect/js/redirect.js?ver=

HTML / DOM Fingerprints

CSS Classes
cntrd_settings_wrap
HTML Comments
<!-- Country Redirect Settings --><!-- Country Redirect Engine Settings --><!-- Country Redirect Redirect Settings --><!-- Country Redirect Whitelist Settings -->
Data Attributes
data-cntrd-redirect-urls
JS Globals
window.cntrd_redirect_urlsvar cntrd_redirect_urls
FAQ

Frequently Asked Questions about country-redirect