User redirection via backslash-prefixed next parameter
Published Sep 11, 2022 · Updated Sep 16, 2024
Open redirect in Gophish before 0.12.0 allows remote attackers to redirect users to an attacker-controlled site through the login flow. In nextOrIndex, url.Parse accepts the attacker-supplied next value, and url.Path preserves leading backslashes that browsers treat as a network-path redirect. A user must open the crafted login or password-reset URL and complete the relevant flow; the redirect can deliver the user to a phishing site but does not alter the server.
Summary
What happened
Open redirect in Gophish before 0.12.0 allows remote attackers to redirect users to an attacker-controlled site through the login flow. In nextOrIndex, url.Parse accepts the attacker-supplied next value, and url.Path preserves leading backslashes that browsers treat as a network-path redirect. A user must open the crafted login or password-reset URL and complete the relevant flow; the redirect can deliver the user to a phishing site but does not alter the server.
The record
- CVE
- CVE-2022-25295
- Published
- Sep 11, 2022
- Updated
- Sep 16, 2024
- Vendor
- Gophish
- Product
- Gophish
- Classifications
- CWE-601, T1566.002
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Sep 11, 2022CVE publishedPublication date reported by the CVE source.
- Sep 16, 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=unspecified <0.12.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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
- Upstream login redirect reproductionproof of concept · demonstrated
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