5.0medium
GHSL-2024-109: Reflected XSS in /login in habitica
- Severity
- 5.0medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.48% (higher than 42% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Habitica is an open-source habit-building program. Versions prior to 5.28.5 are vulnerable to reflected cross-site scripting. The `login` and `social media` function in `RegisterLoginReset.vue` contains two reflected XSS vulnerabilities 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| HabitRPG habatica | < 5.28.5 | CVE List |
| habitica habitica | before 5.28.5 | NVD |
All scores
| GitHub_M | 5.0medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:H/SA:N/E:P |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
Habitica is an open-source habit-building program. Versions prior to 5.28.5 are vulnerable to reflected cross-site scripting. The `login` and `social media` function in `RegisterLoginReset.vue` contains two reflected XSS vulnerabilities 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.
NVD (es)
Habitica es un programa de código abierto para generar hábitos. Las versiones anteriores a la 5.28.5 son vulnerables a ataques de Cross-Site Scripting reflejado. Las funciones `login` y `social media` en `RegisterLoginReset.vue` contienen dos vulnerabilidades de XSS reflejado debido a una función de desinfección incorrecta. Un atacante puede especificar un parámetro `redirectTo` malicioso para activar la vulnerabilidad, lo que le otorga al atacante el control de la cuenta de la víctima cuando esta se registra o inicia sesión con un enlace especialmente manipulado. La versión 5.28.5 contiene un parche.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-53272 changed 2024-12-12 | CVE Terms of Use |
| NVD | CVE-2024-53272 changed 2026-06-17 | Public domain |