Password-reset token theft via Host header poisoning
Published Oct 29, 2023 · Updated Sep 6, 2024
Weak password recovery in LinkStack before 4.2.9 allows remote attackers to steal reset tokens through HTTP Host header poisoning. The global HTTP middleware leaves Laravel's TrustHosts control disabled, so the reset flow incorporates an attacker-supplied host into emailed links. Exploitation requires a victim to follow the poisoned recovery link; the stolen token permits the victim's account password to be reset.
Summary
What happened
Weak password recovery in LinkStack before 4.2.9 allows remote attackers to steal reset tokens through HTTP Host header poisoning. The global HTTP middleware leaves Laravel's TrustHosts control disabled, so the reset flow incorporates an attacker-supplied host into emailed links. Exploitation requires a victim to follow the poisoned recovery link; the stolen token permits the victim's account password to be reset.
The record
- CVE
- CVE-2023-5840
- Published
- Oct 29, 2023
- Updated
- Sep 6, 2024
- Vendor
- LinkStack
- Product
- LinkStack
- Classifications
- CWE-640, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 29, 2023CVE publishedPublication date reported by the CVE source.
- Sep 6, 2024Record 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=0 <4.2.9
- Affected versionversion=unspecified <v4.2.9
What conditions does exploitation require?
What is affected?
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
- Password-reset link hijacking proof of conceptproof of concept · unverified
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