جزئیات آسیبپذیری
CVE-2024-52598
2FAuth vulnerable to Server Side Request Forgery + URI validation bypass in 2fauth /api/v1/twofaccounts/preview
شرح رسمی (انگلیسی)
2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Two interconnected vulnerabilities exist in version 5.4.1 a SSRF and URI validation bypass issue. The endpoint at POST /api/v1/twofaccounts/preview allows setting a remote URI to retrieve the image of a 2fa site. By abusing this functionality, it is possible to force the application to make a GET request to an arbitrary URL, whose content will be stored in an image file in the server if it looks like an image. Additionally, the library does some basic validation on the URI, attempting to filter our URIs which do not have an image extension. However, this can be easily bypassed by appending the string `#.svg` to the URI. The combination of these two issues allows an attacker to retrieve URIs accessible from the application, as long as their content type is text based. If not, the request is still sent, but the response is not reflected to the attacker. Version 5.4.1 fixes the issues.
امتیازهای CVSS
| امتیاز | نسخه | منبع | بردار |
|---|---|---|---|
| 7.5بالا | 3.1 | CVEProject cvelistV5 (CNA) (GitHub_M) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
محصولات آسیبپذیر
| فروشنده | محصول | نسخهها | منبع |
|---|---|---|---|
| Bubka | 2FAuth | v < 5.4.1 | CISA ADP / Vulnrichment |
| Bubka | 2FAuth | < 5.4.1 | CVEProject cvelistV5 (CNA) |
منابع و راهنماها
۱- https://github.com/Bubka/2FAuth/security/advisories/GHSA-xwxc-w7v3-2p4j x_refsource_CONFIRM
اطلاعات
- تاریخ انتشار
- ۱۴۰۳/۰۸/۳۰
- آخرین بهروزرسانی
- ۱۴۰۳/۰۸/۳۰
- وضعیت
- منتشرشده
- صادرکننده (CNA)
- GitHub_M
پیشبینی بهرهبرداری (EPSS)
ارزیابی SSVC (CISA)
- قابل خودکارسازی
- بله
- وضعیت بهرهبرداری
- اثبات مفهوم
- اثر فنی
- جزئی
ضعفها (CWE)
- CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-80Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
- CWE-918Server-Side Request Forgery (SSRF)