PT-2026-60145 · Grav · Grav-Plugin-Api
CVSS v3.1
9.6
Critical
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
grav-plugin-api versions prior to 1.0.4
Description
An unauthenticated attacker can cause a password reset email to contain a link pointing to a server under their control. This occurs because the
sanitizeHttpUrl() function fails to verify the host against the server's own origin, checking only that the URL scheme is http or https. The issue exists in the 'POST /api/v1/auth/forgot-password' endpoint via the admin base url field, and can also be influenced by the Referer or Origin headers. If a victim follows the malicious link, the valid reset token is disclosed to the attacker, allowing for full account takeover.Recommendations
Update to version 1.0.4 or later.
Exploit
Fix
Open Redirect
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Grav-Plugin-Api