CVE-2024-53272
JSON

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 packageVersionsReported by
HabitRPG habatica< 5.28.5CVE List
habitica habiticabefore 5.28.5NVD

All scores

GitHub_M5.0medium CVSS:4.0CVSS: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
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

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

SourceRecordLicence
CVE ListCVE-2024-53272 changed 2024-12-12CVE Terms of Use
NVDCVE-2024-53272 changed 2026-06-17Public domain