Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA), Login Protection, Vuln...
Sets custom headers for WP notification emails. Also fixes a security issue with WP versions < 5.5.
Host Header Injection Fix is a WordPress plugin designed to address specific email header issues and security vulnerabilities in versions of WordPress prior to 5.5. It allows you to set custom 'From', 'Name', and 'Return-Path' headers for notification emails, which can help prevent the generation of invalid email addresses.
The plugin is particularly relevant for users running older versions of WordPress, as it fixes a known security issue related to host-header injection. For those using WordPress 5.5 or later, the primary function of this plugin may no longer be necessary.
Best for: This plugin suits users of older WordPress versions concerned about email security and header configurations.
What it does well
Where it falls short
Host Header Injection Fix provides a targeted solution for email header issues in older WordPress installations, but its relevance diminishes for users on newer versions.
Jeff Starr's own description of Host Header Injection Fix, lightly tidied.
Important
As of WordPress 5.5, this plugin no longer is necessary to fix the host-header security issue reported in Ticket #25239 finally is fixed, and mentioned in this post WordPress 5.5 Beta 4. Thank You WordPress devs!
Is this plugin still useful?
Yes, it enables you to choose the “From”, “Name”, and “Return-Path” headers for all WP notification emails. And for versions of WordPress less than 5.5, this plugin continues to fix the host-header injection security issue.
Features
This simple plugin does three things:
Choose from the following options:
Plus there is an option to use the specified From address as the Return-Path header.
Why?
The security issue fixed by this plugin has been known about since way back in WordPress version 2.3. There has been some talk about fixing, but nothing has been implemented. While the issue does not affect all sites, it does affect a good percentage of them, including some of my own projects. So, not wanting to get hacked, I decided to write my own solution. Hopefully this issue gets fixed in a future version of WordPress, and this plugin will become unnecessary.
As a bonus, setting an explicit From address resolves a long-standing bug whereby an invalid email address is generated under the following conditions:
$_SERVER['SERVER_NAME'] is emptySo by explicitly setting a “From” address, we prevent this bug from happening.
Security Issue
Other plugins for securing a site.
Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA), Login Protection, Vuln...
Firewall, Malware Scanner, Two Factor Auth, and Comprehensive Security Features, powered by our 24-hour team....
The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam sol...
Loginizer is a WordPress security plugin which helps you fight against bruteforce attacks.
Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.
Protect your website investment with All-In-One Security (AIOS) – a comprehensive and easy to use security plu...