CVE-2024-52597

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-52597
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-52597.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-52597
Aliases
  • GHSA-q5p4-6q4v-gqg3
Published
2024-11-20T14:15:17Z
Modified
2024-11-21T00:57:22.847316Z
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/bubka/2fauth

Affected ranges

Type
GIT
Repo
https://github.com/bubka/2fauth
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v1.*

v1.0.0
v1.1.0
v1.2.0
v1.3.0
v1.3.1

v2.*

v2.0.0
v2.0.1
v2.0.2
v2.1.0

v3.*

v3.0.0
v3.0.1
v3.0.2
v3.1.0
v3.1.1
v3.2.0
v3.3.0
v3.3.1
v3.3.2
v3.3.3
v3.4.0
v3.4.1
v3.4.2

v4.*

v4.0.0
v4.0.0-beta.1
v4.0.1
v4.0.2
v4.0.3
v4.1.0
v4.2.0
v4.2.1
v4.2.2
v4.2.3
v4.2.4

v5.*

v5.0.0
v5.0.1
v5.0.2
v5.0.3
v5.0.4
v5.1.0
v5.1.1
v5.2.0
v5.3.0
v5.3.1
v5.3.2
v5.4.0