CyberRota Analysis
AI-GeneratedThe Grav API plugin prior to version 1.0.14 is vulnerable to an open redirect flaw in the SsoController::sanitizeReturnTo() function, which fails to properly validate returnTo parameters, allowing attackers to redirect authenticated users to malicious sites. This vulnerability poses a medium risk, as it could facilitate phishing attacks following legitimate OAuth login flows. Administrators using the Grav platform should prioritize patching this issue to protect against potential exploitation.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
The Grav API plugin (getgrav/grav-plugin-api, bundled with Grav 2.0's admin-next/API stack) before version 1.0.14 contains an open redirect weakness in SsoController::sanitizeReturnTo(). The function rejects a literal '//' prefix but does not account for browsers normalizing backslashes to slashes in special (http/https) schemes, so a returnTo value such as '/\evil.com' passes the guard and is later resolved by the browser as the protocol-relative URL '//evil.com'. Following a legitimate OAuth login flow, an attacker-supplied returnTo parameter could redirect an authenticated victim to an attacker-controlled site for post-login phishing. Full browser-side exploitability depends on the admin-next SPA's client-side oauth-callback handler and was not independently verified by the reporter.