🔍 CVE-2017-8295

5.9
CVSS Score
MEDIUM
2017-05-04
2026-05-13 00:24
✅ 완료

🇰🇷 한글 설명

WordPress 4.7.4 이하 버전이 Host HTTP 헤더를 신뢰하여 비밀번호 재설정 이메일 생성 시 공격자가 조작한 주소로 재설정 링크를 전송할 수 있는 취약점입니다. 특정 조건(이메일 미수신, 자동응답, 수동 회신) 하에서만 성공 가능합니다.

💡 쉬운 설명

WordPress 비밀번호 찾기 기능이 공격자가 변조한 이메일 주소를 신뢰하여, 재설정 링크를 공격자에게 보낼 수 있습니다. 이를 통해 다른 사용자의 계정 접근이 가능합니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

WordPress 4.7.4 및 그 이전 버전

⚔️ 공격 벡터

Host HTTP 헤더 스푸핑을 이용한 wp-login.php?action=lostpassword 요청

🛡️ 대응 방법

WordPress를 4.7.5 이상으로 업그레이드하고 Host 헤더 검증 설정 활성화

🔧 검증 코드

Vulnerable 출력 시 4.7.4 이하 버전으로 취약함. 아무것도 출력되지 않으면 WordPress가 없거나 4.7.5 이상으로 안전함.

Shell / Script
grep -oP 'wp_version.*?\K[0-9]+\.[0-9]+\.[0-9]+' wp-includes/version.php 2>/dev/null | awk -F. '{if($1==4&&$2<7||($2==7&&$3<=4))print "Vulnerable"}'

📊 CVSS Vector String

CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

💻 영향받는 소프트웨어

PHP