CVE-2024-52597 MEDIUM

CVE-2024-52597: 2FAuth vulnerable to stored cross-site scripting via SVG upload and direct access render

Vendor Bubka
Product 2FAuth
Weakness CWE-79 · XSS
Published November 20, 2024
Last update November 20, 2024

CVSS base score

6.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Versions prior to 5.4.1 are vulnerable to stored cross-site scripting due to improper headers in direct access to uploaded SVGs. The application allows uploading images in several places. One of the accepted types of image is SVG, which allows JS scripting. Therefore, by uploading a malicious SVG which contains JS code, an attacker which is able to drive a victim to the uploaded image could compromise that victim's session and access to their tokens. Version 5.4.1 contains a patch for the issue.

Key dates

02Disclosure timeline

November 20, 2024 CVE published
November 20, 2024 Record updated