CVE-2024-53273 GHSL-2024-110: Reflected XSS in /register in habitica
Reflected XSS in Habitica allows attackers to hijack user accounts via malicious registration links.
- 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
- None listed
What is CVE-2024-53273?
CVE-2024-53273 is a medium-severity cross-site scripting vulnerability in HabitRPG habatica, published on 11 Dec 2024. 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
Habitica is an open-source habit-building program. Versions prior to 5.28.5 are vulnerable to reflected cross-site scripting. The `register` function in `RegisterLoginReset.vue` contains a reflected XSS vulnerability due to an incorrect sanitization function. An attacker can specify a malicious `redirectTo` parameter to trigger the vulnerability, giving the attacker control of the victim’s account when a victim registers or logins with a specially crafted link. Version 5.28.5 contains a patch.
Weakness: CWE-79
Which versions are affected by CVE-2024-53273?
It affects 1 product.
Products include Habitica Habitica.
How do I fix CVE-2024-53273?
No fix has been published for CVE-2024-53273 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-53273 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53273 exists.