Incorrect Implementation of Authentication Algorithm Affecting github.com/pocketbase/pocketbase/apis package, versions <0.22.14


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMPOCKETBASEPOCKETBASEAPIS-7361669
  • published 23 Jun 2024
  • disclosed 18 Jun 2024
  • credit dalurness

How to fix?

Upgrade github.com/pocketbase/pocketbase/apis to version 0.22.14 or higher.

Overview

github.com/pocketbase/pocketbase/apis is a realtime backend in 1 file

Affected versions of this package are vulnerable to Incorrect Implementation of Authentication Algorithm when both OAuth2 and Password authentication methods are in use. An attacker in possession of a legitimate user's unverified email address who can convince that user to sign up with OAuth2 can continue to use the credentials they possess to access the user's account after OAuth2 is enabled.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
5.1 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Active
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    Low
  • Availability (VA)
    None
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None