Host Header Injection Fix

Sets custom headers for WP notification emails. Also fixes a security issue with WP versions < 5.5.

v3.6Jeff StarrUpdated Added 400 installs100% rating
70
Score
9
Errors
8
Warnings
+0
Change

Category Scores

Security46
Repo100
Performance100
Maintainability96

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

17 findings

Security

13

4 issue groups

Maintainability

3

3 issue groups

I18n

1

1 issue group

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$checked'.9
Category
Security
Occurrences
9
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$checked'.

WARNINGSecurityNonce verification recommendedProcessing form data without nonce verification.2
Category
Security
Occurrences
2
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGI18nDiscouraged text-domain loadingload_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.1
Category
I18n
Occurrences
1
Severity
warning

Sample message

load_plugin_textdomain() has been discouraged since WordPress version 4.6. When your plugin is hosted on WordPress.org, you no longer need to manually include this function call for translations under your plugin slug. WordPress will automatically load the translations for you as needed.

WARNINGMaintainabilityNon-prefixed classClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: &quot;HostHeaderInjectionFix&quot;.1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: &quot;HostHeaderInjectionFix&quot;.

WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;wp_domain_email&quot;.1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: &quot;wp_domain_email&quot;.

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$host_header_injection_fix&quot;.1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: &quot;$host_header_injection_fix&quot;.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_SERVER[&#039;SERVER_NAME&#039;]1
Category
Security
Occurrences
1
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_SERVER[&#039;SERVER_NAME&#039;]

WARNINGSecurityRequest data is not unslashed$_SERVER[&#039;SERVER_NAME&#039;] not unslashed before sanitization. Use wp_unslash() or similar1
Category
Security
Occurrences
1
Severity
warning

Sample message

$_SERVER[&#039;SERVER_NAME&#039;] not unslashed before sanitization. Use wp_unslash() or similar

External Connections

Potential connections found in static code analysis.

5 domains

Outbound calls

10

External assets

0

Incoming endpoints

0

Notable Domains

perishablepress.com3 · outbound
monzillamedia.com2 · outbound
plugin-planet.com1 · outbound

Platform / Reference Domains

wordpress.org3 · platform/reference
gnu.org1 · platform/reference

External Asset Domains

No external asset domains detected.

Incoming Endpoints

No public endpoints detected.

Score History

First score snapshot

v3.6

70

Latest

Findings
17
Errors
9
Warnings
8
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

32 nodes

Related Plugins

Contact Form Query

1k+ active installs

100
Configure SMTP

6k+ active installs

99
Email Address Obfuscation

2k+ active installs

99
Stop WP Emails Going to Spam

10k+ active installs

99
Add Custom Header Images

400 active installs

98