CVE-2026-136916 in HortusFox Web
Summary
by MITRE • 11/25/2026
HortusFox (hortusfox-web) through 6.4 contains a password reset poisoning vulnerability in UserModel::restorePassword that builds reset links from the client-controlled Host header. Unauthenticated attackers can request a reset with a forged Host header to capture the victim's reset token and take over accounts including administrators.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified in HortusFox, specifically within versions through 6.4, represents a critical server-side request forgery flaw rooted in improper validation of user-supplied input during password recovery operations. The core technical deficiency lies in the UserModel::restorePassword function, which constructs password reset URLs by directly incorporating the value from the HTTP Host header without performing adequate sanitization or verification against an allowlist of trusted domains. In standard web application architecture, the Host header is a fundamental part of every HTTP request that indicates the target domain and port for the server to process the response correctly. However, when this untrusted input is blindly concatenated into absolute URLs generated by the backend logic, it creates a classic insecure direct object reference scenario where the attacker can manipulate the destination of sensitive tokens.
From an operational perspective, this flaw allows any unauthenticated actor on the internet to exploit the password reset mechanism for account takeover purposes. The attack vector involves sending a specially crafted HTTP request with a forged Host header pointing to a domain controlled by the attacker while simultaneously triggering the password reset function for a target user's email address or username. When the application processes this request, it generates a unique, time-sensitive token intended for legitimate recovery and embeds it within a URL that includes the maliciously injected host value. The system then sends an email to the victim containing this compromised link. Because the link points to the attacker's server rather than the legitimate HortusFox instance, any interaction with the reset page or submission of new credentials is intercepted by the adversary.
The impact of this vulnerability extends beyond individual user compromise to encompass administrative accounts due to the lack of privilege separation in the exploitation path. An attacker can target high-privilege users such as system administrators, thereby gaining full control over the application's configuration, data integrity, and availability. This leads to a complete breach of confidentiality for sensitive organizational data stored within the platform, potential manipulation or deletion of critical records, and the establishment of persistent backdoors that facilitate further lateral movement within an organization's network infrastructure if integrated with other systems. The severity is amplified by the fact that no authentication is required to initiate this attack sequence, making it scalable against large user bases without detection through standard login monitoring tools.
This vulnerability aligns closely with CWE-613, which describes insufficient session expiration or invalidation, but more accurately maps to CWE-508, specifically involving the use of a host header for security-critical decisions without proper validation. In terms of offensive cybersecurity frameworks, this technique is categorized under MITRE ATT&CK Tactic TA0001 (Initial Access) and Technique T1078, Valid Accounts, as it allows an attacker to assume the identity of legitimate users through social engineering via email manipulation rather than direct credential theft. The exploitation relies heavily on the victim's trust in the email content and their subsequent action to click the link or submit new credentials, which constitutes a form of phishing facilitated by server-side logic errors.
To mitigate this vulnerability, immediate remediation is required at both the application code level and infrastructure configuration layers. Developers must refactor the UserModel::restorePassword function to ensure that password reset URLs are generated using only trusted domain names defined in a secure configuration file or environment variable, rather than deriving them from incoming request headers. Implementing an allowlist of approved domains for URL generation is essential to prevent host header injection attacks. Additionally, applications should validate and normalize the Host header against this whitelist before any use in logic that affects security outcomes. Infrastructure-level mitigations include configuring reverse proxies such as Nginx or Apache to strip or override potentially malicious Host headers with a trusted value before passing requests to the backend application server. This ensures that even if an attacker attempts to inject a forged host, the internal service receives only valid domain information for generating secure links. Regular security audits and static code analysis focused on input validation practices are also recommended to prevent similar flaws in other parts of the application lifecycle.