CVE-2021-25994 Userfrosting - Host-Header Injection Leads to Account Takeover
An attacker can hijack user accounts via Host Header Injection in the password reset flow by tricking users into clicking a malicious link.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-25994?
CVE-2021-25994 is a high-severity vulnerability in userfrosting, published on 3 Jan 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
In Userfrosting, versions v0.3.1 to v4.6.2 are vulnerable to Host Header Injection. By luring a victim application user to click on a link, an unauthenticated attacker can use the “forgot password” functionality to reset the victim’s password and successfully take over their account.
Weakness: CWE-74
Which versions are affected by CVE-2021-25994?
2 open source packages ship an affected version, including userfrosting/userfrosting. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
userfrosting/userfrosting Packagist | From 0.3.1 | 4.6.3 |
userfrosting/userfrosting Packagist | From 0.3.1 | 4.6.3 |
Products include Userfrosting Userfrosting.
How do I fix CVE-2021-25994?
Upgrade userfrosting/userfrosting to 4.6.3 or later.
Is CVE-2021-25994 being exploited?
There is no known exploitation of CVE-2021-25994 in the wild and no public exploit code.
Sources
Also known as GHSA-cv25-3gmg-c6m8.