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-45141, GO-2023-2116
Go Fiber CSRF Token Validation Vulnerability
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.
Vulnerability Details
The vulnerability is caused by improper validation and enforcement of CSRF tokens within the application. The following issues were identified:
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=Strict, and the Secure and HttpOnly attributes.
High Basis: The source's own band: HIGH
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