CSRF Token Reuse Vulnerability in fiber (gofiber fiber)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.36 % Β· percentile 30 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Modified
Description
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 inject arbitrary values and forge malicious requests on behalf of a user. This vulnerability can allow an attacker to inject arbitrary values without any authentication, or perform various malicious actions on behalf of an authenticated user, 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 issue 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 as defense in depth measures. There are no known workarounds for this vulnerability.
Weaknesses (CWE)
- CWE-20 β Improper Input Validation
- CWE-352 β Cross-Site Request Forgery
- CWE-565 β Reliance on Cookies without Validation and Integrity Checking
- CWE-807 β Reliance on Untrusted Inputs in a Security Decision
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L | GitHub_M |
| CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L | NVD Β· security-advisories@github.com (Secondary) |
| CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD Β· nvd@nist.gov (Primary) |
Advisories
- GHSA-94w9-97p3-p368 β CSRF Token Reuse Vulnerability
- GO-2023-2115 β CSRF token reuse vulnerability in github.com/gofiber/fiber/v2
European references
- ENISA EUVD Β· EUVD-2023-2708
- GCVE Β· GCVE-0-2023-45128
Affected configurations (NVD CPE)
cpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:*< 2.50.0
Affected products
| Product | Versions |
|---|---|
| gofiber Β· fiber | affected < 2.50.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |