漏洞描述
WordPress before 5.5 derives the password-reset email's From/Return-Path address from $_SERVER['SERVER_NAME'] in wp_mail() (wp-includes/pluggable.php). On servers where SERVER_NAME follows the client Host header (e.g. Apache with UseCanonicalName Off, or a default/IP-based vhost), an unauthenticated attacker can POST to wp-login.php?action=lostpassword with a crafted Host header so the reset email's From/Return-Path points at an attacker-controlled domain. If that message bounces or is auto-replied, the secret reset link is delivered to the attacker, enabling account takeover. The injected host is never reflected in the HTTP response and triggers no out-of-band callback, so this detection is version-based (the SERVER_NAME sender was replaced with network_home_url() in 5.5).
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。