github.com/gofiber/fiber/v2
Affected
- introduced
0, fixed2.50.0(semver)
Fixed versions
2.50.0
Fix
- Fixed version
2.50.0go get github.com/gofiber/fiber/[email protected]
Advisory
Also known as: CVE-2023-45128, GO-2023-2115
CSRF Token Reuse Vulnerability
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.
Vulnerability Details
The vulnerability is caused by improper validation and enforcement of CSRF tokens within the application. The following issues were identified:
Specific Go Packages Affected
github.com/gofiber/fiber/v2/middleware/csrf
Remediation
To remediate this vulnerability, it is recommended to take the following actions:
Defence-in-depth
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.
Critical Basis: The source's own band: CRITICAL
0, fixed 2.50.0 (semver)2.50.0
2.50.0go get github.com/gofiber/fiber/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0