CVE-2026-137306 in Admin Plugin
Summary
by MITRE • 11/26/2026
Grav Admin plugin before 1.10.65 contains a password reset poisoning vulnerability in LoginController::taskForgot() that ignores the Require Trusted Host setting when building reset links. Unauthenticated attackers who know an administrator's username can submit the forgot-password form with a forged Host header, capturing the reset token when clicked to take over accounts.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/26/2026
The Grav Admin plugin prior to version 1.10.65 contains a critical password reset poisoning vulnerability within the LoginController::taskForgot() method that stems from improper validation of HTTP host headers during the generation of account recovery links. This flaw allows unauthenticated attackers who possess knowledge of an administrator's username to manipulate the context in which the password reset token is created and delivered. The core technical issue lies in the application's failure to enforce the Require Trusted Host configuration setting when constructing the URL for the password reset email. In secure implementations, applications must validate that the host header received from the client matches a predefined list of trusted domains or use server-side environment variables to determine the correct base URL. By ignoring this safeguard, the plugin blindly accepts any Host header provided by the requester and incorporates it into the generated reset link without verification.
This architectural weakness enables an attacker to perform a password reset poisoning attack, also known as host header injection. When an administrator initiates a forgotten password request, the application generates a unique token associated with that user account and embeds it within a URL intended for email delivery. Because the Host header is not validated against trusted sources, an attacker can submit the form while specifying a malicious domain in the Host header. Consequently, the resulting reset link will point to the attacker's controlled server rather than the legitimate Grav installation. This manipulation occurs entirely on the backend during token generation and does not require any client-side exploitation or browser-based attacks such as cross-site scripting.
The operational impact of this vulnerability is severe, leading directly to full account takeover for targeted administrator accounts. Once the malicious reset link containing the poisoned host header is generated, it may be sent via email if the system proceeds with delivery based on the injected context, or more commonly in poisoning scenarios, the attacker can intercept the token by tricking the victim into clicking a crafted link that reveals the token to the attacker's server. In many implementations of this vulnerability class, the reset URL is often previewed or logged in ways that expose the constructed path and host. If an administrator clicks on a maliciously crafted link provided by the attacker, or if the system inadvertently sends the poisoned email due to misconfiguration, the attacker gains access to the password reset token. Possession of this valid token allows the attacker to authenticate as the administrator without knowing their current credentials, effectively bypassing all authentication controls and gaining full administrative privileges over the Grav instance.
From a classification perspective, this vulnerability aligns with CWE-641 Improper Restriction of Names for Files and Other Resources, specifically regarding the improper restriction of host names in URL construction. It also maps to MITRE ATT&CK technique T1534 Internal Spearphishing or more broadly to credential access techniques where an attacker manipulates authentication flows to steal credentials or tokens. The lack of input validation on critical security parameters like the Host header represents a fundamental failure in secure coding practices, particularly for web applications handling sensitive user data and administrative functions.
Mitigation strategies must focus on strict enforcement of trusted host configurations at both the application level and infrastructure level. Administrators should immediately upgrade to Grav Admin version 1.10.65 or later where this logic has been corrected to validate the Host header against a whitelist of allowed domains before generating any password reset links. Additionally, organizations should configure their web servers such as Nginx or Apache to reject requests with unexpected or malformed Host headers, adding an additional layer of defense in depth. It is also recommended to implement secure cookie flags and ensure that session management does not rely solely on URL parameters for sensitive operations like password resets, thereby reducing the attack surface associated with host header manipulation.