Access Restriction Bypass Affecting notebook package, versions [,6.4.12)


0.0
medium

Snyk CVSS

    Attack Complexity High
    Confidentiality High

    Threat Intelligence

    EPSS 0.06% (23rd percentile)
Expand this section
NVD
4.3 medium

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-PYTHON-NOTEBOOK-2928995
  • published 17 Jun 2022
  • disclosed 16 Jun 2022
  • credit rashley-iqt

How to fix?

Upgrade notebook to version 6.4.12 or higher.

Overview

notebook is a web application that allows you to create and share documents that contain live code, equations, visualizations, and explanatory text.

Affected versions of this package are vulnerable to Access Restriction Bypass. When a fully authenticated request is sent to the notebook server which is configured with ContentsManager.allow_hidden = False, it is possible to access arbitrary hidden files or arbitrary files in hidden directories.

Workarounds:

  1. Do not run the notebook server in a directory with hidden files, use subdirectories.

  2. Use a custom ContentsManager with additional checks for self.is_hidden(path) prior to completing actions.