Account takeover via Host header injection
Published Jul 7, 2025 · Updated Jul 7, 2025
Host header injection in Natours 0.0.1 allows remote attackers to take over accounts through the unauthenticated password-reset endpoint. The forgetPassword handler builds the emailed reset URL by concatenating req.protocol with the untrusted Host header, sending the victim's reset token to an attacker-controlled domain. Exploitation requires the victim to follow that emailed link; the exposed token lets the attacker set a replacement password and assume the victim's account.
Summary
What happened
Host header injection in Natours 0.0.1 allows remote attackers to take over accounts through the unauthenticated password-reset endpoint. The forgetPassword handler builds the emailed reset URL by concatenating req.protocol with the untrusted Host header, sending the victim's reset token to an attacker-controlled domain. Exploitation requires the victim to follow that emailed link; the exposed token lets the attacker set a replacement password and assume the victim's account.
The record
- CVE
- CVE-2025-53373
- Published
- Jul 7, 2025
- Updated
- Jul 7, 2025
- Vendor
- ahmed-elgaml11
- Product
- Natours
- Classifications
- CWE-640, T1566.002
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 7, 2025CVE publishedPublication date reported by the CVE source.
- Jul 7, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 7401793a8d9ed0f0c250c4e0ee2815d685d7a70b
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA password-reset Host injection proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo