Access Restriction Bypass Affecting github.com/nats-io/nats-server/v2/server package, versions <2.2.0


0.0
medium
  • Attack Complexity

    High

  • Confidentiality

    High

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-GITHUBCOMNATSIONATSSERVERV2SERVER-1086586

  • published

    18 Mar 2021

  • disclosed

    17 Mar 2021

  • credit

    Unknown

How to fix?

Upgrade github.com/nats-io/nats-server/v2/server to version 2.2.0 or higher.

Overview

github.com/nats-io/nats-server/v2/server is an A simple, secure and performant communications system for digital systems, services and devices.

Affected versions of this package are vulnerable to Access Restriction Bypass. This is due to mishandling of Import Token bindings.

As a result, any account can take an Import Token used by any other account and re-use it for themselves because the binding to the importing account is not rejected, and use it to import any Subject from the Exporting account.