CVE-2024-52597CWE-79CWE-80

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

Medium · published November 20, 2024

CVSS v3.1
6.1
EPSS
0%
Percentile
30.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.1 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00373 · 30.1th percentile
Weaknesses
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)
Published
2024-11-20T14:01Z
EPSS history
Timeline
  • 20 NOV 14:01Z
    2FAuth vulnerable to stored cross-site scripting via SVG upload and direct access render
    cvelistv5