Skip to content

CVE-2017-8295 WordPress through 4.7.4 relies on the Host HTTP header for a password-reset e-mail message, which makes it easier for remote attackers to reset arbitrary passwords by making a crafted wp-login.php?act...

MediumCVSS 5.9 EPSS 26.7% Public exploit
Published
Updated
Exploit status
Public exploit available
Technology
PHPWordPressUbuntuDebian

Description

WordPress through 4.7.4 relies on the Host HTTP header for a password-reset e-mail message, which makes it easier for remote attackers to reset arbitrary passwords by making a crafted wp-login.php?action=lostpassword request and then arranging for this message to bounce or be resent, leading to transmission of the reset key to a mailbox on an attacker-controlled SMTP server. This is related to problematic use of the SERVER_NAME variable in wp-includes/pluggable.php in conjunction with the PHP mail function. Exploitation is not achievable in all cases because it requires at least one of the following: (1) the attacker can prevent the victim from receiving any e-mail messages for an extended period of time (such as 5 days), (2) the victim's e-mail system sends an autoresponse containing the original message, or (3) the victim manually composes a reply containing the original message.

Upgrade path

5 packages: 4 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/wordpress(Ubuntu 16.04) = 4.3+dfsg-1; = 4.3.1+dfsg-1; = 4.4+dfsg-1; = 4.4.1+dfsg-1 +3 more No fix listed No fix yet
debian/wordpress(Debian 12) < 4.7.5+dfsg-2 4.7.5+dfsg-2 Fixed
debian/wordpress(Debian 13) < 4.7.5+dfsg-2 4.7.5+dfsg-2 Fixed
debian/wordpress(Debian 14) < 4.7.5+dfsg-2 4.7.5+dfsg-2 Fixed
WordPress <= 4.7.4 after 4.7.4 Fixed

Affected products

ProductAffected versionsFixed in
debian/wordpress(Debian:12) < 4.7.5+dfsg-2 4.7.5+dfsg-2
debian/wordpress(Debian:13) < 4.7.5+dfsg-2 4.7.5+dfsg-2
debian/wordpress(Debian:14) < 4.7.5+dfsg-2 4.7.5+dfsg-2
WordPress <= 4.7.4 No fix listed
ubuntu/wordpress(Ubuntu:16.04) All versions No fix listed
ubuntu/wordpress(Ubuntu:16.04) = 4.3+dfsg-1 No fix listed
ubuntu/wordpress(Ubuntu:16.04) = 4.3.1+dfsg-1 No fix listed
ubuntu/wordpress(Ubuntu:16.04) = 4.4+dfsg-1 No fix listed
ubuntu/wordpress(Ubuntu:16.04) = 4.4.1+dfsg-1 No fix listed
ubuntu/wordpress(Ubuntu:16.04) = 4.4.2+dfsg-1 No fix listed
ubuntu/wordpress(Ubuntu:16.04) = 4.4.2+dfsg-1ubuntu1 No fix listed

References