CVE-2024-52597 2FAuth vulnerable to stored cross-site scripting via SVG upload and direct access render
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 2fauth | < 5.4.1 | 5.4.1 | Fixed |
| Bubka 2FAuth | < 5.4.1; = < 5.4.1 | 5.4.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Bubka 2FAuth | = < 5.4.1 | No fix listed |
| Bubka 2FAuth | < 5.4.1 | 5.4.1 |
| 2fauth | < 5.4.1 | 5.4.1 |