CVE-2023-45128

CSRF Token Reuse Vulnerability in fiber

State
Published
Severity
10.0 Critical
Published
Oct 16, 2023
Updated
Sep 16, 2024
Reserved
Oct 4, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.110.0 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:LGitHub_M

Weaknesses

  • CWE-20 Improper Input Validation
  • CWE-352 Cross-Site Request Forgery (CSRF)
  • CWE-565 Reliance on Cookies without Validation and Integrity Checking
  • CWE-807 Reliance on Untrusted Inputs in a Security Decision

Affected Products

ProductVersions
fibergofiber
  • < 2.50.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.