CVE-2024-52597

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:2fauth:2fauth:*:*:*:*:*:*:*:*

History

04 Aug 2025, 16:57

Type Values Removed Values Added
First Time 2fauth 2fauth
2fauth
CPE cpe:2.3:a:2fauth:2fauth:*:*:*:*:*:*:*:*
References () https://github.com/Bubka/2FAuth/commit/93c508e118f483f3c93ac36e1f91face95af642d - () https://github.com/Bubka/2FAuth/commit/93c508e118f483f3c93ac36e1f91face95af642d - Patch
References () https://github.com/Bubka/2FAuth/security/advisories/GHSA-q5p4-6q4v-gqg3 - () https://github.com/Bubka/2FAuth/security/advisories/GHSA-q5p4-6q4v-gqg3 - Exploit, Vendor Advisory

Information

Published : 2024-11-20 14:15

Updated : 2025-08-04 16:57


NVD link : CVE-2024-52597

Mitre link : CVE-2024-52597

CVE.ORG link : CVE-2024-52597


JSON object : View

Products Affected

2fauth

  • 2fauth
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CWE-80

Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)