CSRF in Gofiber Fiber
CVE-2023-45141
Fiber is an express inspired web framework written in Go. A Cross-Site Request Forgery (CSRF) vulnerability has been identified in the application, which allows an attacker to obtain tokens and forge malicious requests on behalf of a user. This can lead to unauthorized actions being taken on the user's behalf, potentially compromising the security and integrity of the application. The vulnerability is caused by improper validation and enforcement of CSRF tokens within the application. This vulnerability has been addressed in version 2.50.0 and users are advised to upgrade. Users should take additional security measures like captchas or Two-Factor Authentication (2FA) and set Session cookies with SameSite=Lax or SameSite=Secure, and the Secure and HttpOnly attributes.
Vulnerability class: CSRF (Cross-Site Request Forgery)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L.
EPSS exploit prediction
EPSS 0.003, 23.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Gofiber Fiber — versions < 2.50.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (sixcolors/fiber-csrf-cve-test). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/gofiber/fiber/security/advisories/GHSA-mv73-f69x-444p (Mitigation, Vendor Advisory)