CVE-2023-45141
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 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.
How to fix
- gofiber fiber2.50.0 or later
- github.com/gofiber/fiber/v22.50.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gofiber fiber | v < 2.50.0 | 2.50.0 |
| github.com/gofiber/fiber/v2Go | v < 2.50.0 | 2.50.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.