GO-2023-2115

    Dashboard / Vulnerabilities / GO-2023-2115

    GO-2023-2115

    Published: 24 Oct 2023Last Modified: 20 May 2024

    Summary: CSRF token reuse vulnerability in github.com/gofiber/fiber/v2

    Details: A cross-site request forgery vulnerability in this package can allow an attacker to inject arbitrary values and forge malicious requests on behalf of a user. The attacker may 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. For 'safe' methods, the token is extracted from the cookie and saved to storage without further validation or sanitization. In addition, the CSRF token is validated against tokens in storage but not associated with a session, nor by using a Double Submit Cookie Method, allowing for token reuse.

    Affected packages

    Package

    Name: github.com/gofiber/fiber/v2

    Purl: pkg:golang/github.com/gofiber/fiber/v2

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -2.50.0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GO-2023-2115 | CVE-DB