CVE-2024-52597

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

Published Nov 20, 2024 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-46025 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.
History
Type Values Removed Values Added
First Time appeared 2fauth
2fauth 2fauth
CPEs cpe:2.3:a:2fauth:2fauth:*:*:*:*:*:*:*:*
Vendors & Products 2fauth
2fauth 2fauth
Type Values Removed Values Added
First Time appeared Bubka
Bubka 2fauth
CPEs cpe:2.3:a:bubka:2fauth:*:*:*:*:*:*:*:*
Vendors & Products Bubka
Bubka 2fauth
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title 2FAuth vulnerable to stored cross-site scripting via SVG upload and direct access render
Weaknesses CWE-79
CWE-80
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 20, 2024, 2:31 PM
Reserved
Nov 14, 2024, 3:05 PM
Status
Analyzed
Published
Nov 20, 2024, 2:15 PM
Modified
Jun 17, 2026, 8:07 AM