Vulnerabilities

7 via 10 paths

Dependencies

27

Source

GitHub

Commit

a72cc93a

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 7
  • 2
Severity
  • 1
  • 5
  • 3
Status
  • 9
  • 0
  • 0

high severity

GPL-3.0 license

  • Module: pcodedmp
  • Introduced through: mmbot@1.0.10

Detailed paths

  • Introduced through: dhondta/malicious-macro-tester@dhondta/malicious-macro-tester#a72cc93a59a27b9f63bd784c90d7089069080984 mmbot@1.0.10 oletools@0.60.2 pcodedmp@1.2.6

GPL-3.0 license

medium severity

Infinite loop

  • Vulnerable module: zipp
  • Introduced through: elasticsearch@8.14.0

Detailed paths

  • Introduced through: dhondta/malicious-macro-tester@dhondta/malicious-macro-tester#a72cc93a59a27b9f63bd784c90d7089069080984 elasticsearch@8.14.0 elastic-transport@8.13.1 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to elasticsearch@8.14.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

Improper Removal of Sensitive Information Before Storage or Transfer

  • Vulnerable module: urllib3
  • Introduced through: elasticsearch@8.14.0

Detailed paths

  • Introduced through: dhondta/malicious-macro-tester@dhondta/malicious-macro-tester#a72cc93a59a27b9f63bd784c90d7089069080984 elasticsearch@8.14.0 elastic-transport@8.13.1 urllib3@2.0.7
    Remediation: Upgrade to elasticsearch@8.14.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: elasticsearch@8.14.0

Detailed paths

  • Introduced through: dhondta/malicious-macro-tester@dhondta/malicious-macro-tester#a72cc93a59a27b9f63bd784c90d7089069080984 elasticsearch@8.14.0 elastic-transport@8.13.1 urllib3@2.0.7
    Remediation: Upgrade to elasticsearch@8.14.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

Storage of Sensitive Data in a Mechanism without Access Control

  • Vulnerable module: scikit-learn
  • Introduced through: mmbot@1.0.10

Detailed paths

  • Introduced through: dhondta/malicious-macro-tester@dhondta/malicious-macro-tester#a72cc93a59a27b9f63bd784c90d7089069080984 mmbot@1.0.10 scikit-learn@1.0.2
    Remediation: Upgrade to mmbot@1.0.10.

Overview

scikit-learn is a Python module for machine learning built on top of SciPy and is distributed under the 3-Clause BSD license.

Affected versions of this package are vulnerable to Storage of Sensitive Data in a Mechanism without Access Control due to the unexpected storage of all tokens present in the training data within the stop_words_ attribute. An attacker can access sensitive information, such as passwords or keys, by exploiting this behavior.

PoC

Limiting vocabulary is a very common setting hence provided by the library. The expected behaviour is that the object stores the frequent tokens, and discards the rest after the fitting process. In theory and practice, the vectorizer only needs the vocabulary and the rest of the possible tokens will be simply non needed, hence should be discarded.

While the object correctly forms the required vocabulary, it stores the rest of the tokens in the `stop_words_ attribute. Therefore stores the entire unique tokens that have been passed in the fitting operation. Below it's demonstrated this:

# ╰─$ pip freeze | grep pandas
# pandas==2.2.1
import pandas as pd
# ╰─$ pip freeze | grep scikit-learn
# scikit-learn==1.4.1.post1
from sklearn.feature_extraction.text import TfidfVectorizer

if __name__ == '__main__':
    # Fitting the vectorizer will save every token presented
    vectorizer = TfidfVectorizer(
        max_features=2,
        # min_df=2/6  # Same results occur with different ways of limiting the vocabulary
    ).fit(
        pd.Series([
            "hello", "world", "hello", "world", "secretkey", "password123"
        ])
    )
    # Expected storage for frequent tokens
    print(vectorizer.vocabulary_)  # {'hello': 0, 'server': 1}
    # Unexpected data leak
    print(vectorizer.stop_words_)  # {'password123', 'secretkey'}

It is demonstrated below that the storage in the stop_words_ attribute is unnecessary. Nullifying the attribute will give the same results:

# ╰─$ pip freeze | grep pandas
# pandas==2.2.1
import pandas as pd
# ╰─$ pip freeze | grep scikit-learn
# scikit-learn==1.4.1.post1
from sklearn.feature_extraction.text import TfidfVectorizer

if __name__ == '__main__':
    # Fitting the vectorizer will save every token presented
    vectorizer = TfidfVectorizer(
        max_features=2,
        # min_df=2/6  # Same results occur with different ways of limiting the vocabulary
    ).fit(
        pd.Series([
            "hello", "world", "hello", "world", "secretkey", "password123"
        ])
    )
    # Expected storage for frequent tokens
    print(vectorizer.vocabulary_)  # {'hello': 0, 'server': 1}
    # Unexpected data leak
    print(vectorizer.stop_words_)  # {'password123', 'secretkey'}

    # Wiping-out the stop_words_ attribute does not change the behaviour
    print(vectorizer.transform(["hello world"]).toarray())  # [[0.70710678 0.70710678]]
    vectorizer.stop_words_ = None
    assert vectorizer.stop_words_ is None
    print(vectorizer.transform(["hello world"]).toarray())  # [[0.70710678 0.70710678]]

Remediation

Upgrade scikit-learn to version 1.5.0 or higher.

References

medium severity

MPL-2.0 license

  • Module: certifi
  • Introduced through: elasticsearch@8.14.0

Detailed paths

  • Introduced through: dhondta/malicious-macro-tester@dhondta/malicious-macro-tester#a72cc93a59a27b9f63bd784c90d7089069080984 elasticsearch@8.14.0 elastic-transport@8.13.1 certifi@2025.11.12

MPL-2.0 license

low severity

Buffer Overflow

  • Vulnerable module: numpy
  • Introduced through: mmbot@1.0.10

Detailed paths

  • Introduced through: dhondta/malicious-macro-tester@dhondta/malicious-macro-tester#a72cc93a59a27b9f63bd784c90d7089069080984 mmbot@1.0.10 pandas@1.3.5 numpy@1.21.3
    Remediation: Upgrade to mmbot@1.0.10.
  • Introduced through: dhondta/malicious-macro-tester@dhondta/malicious-macro-tester#a72cc93a59a27b9f63bd784c90d7089069080984 mmbot@1.0.10 scikit-learn@1.0.2 numpy@1.21.3
    Remediation: Upgrade to mmbot@1.0.10.

Overview

numpy is a fundamental package needed for scientific computing with Python.

Affected versions of this package are vulnerable to Buffer Overflow due to missing boundary checks in the array_from_pyobj function of fortranobject.c. This may allow an attacker to conduct Denial of Service by carefully constructing an array with negative values.

Remediation

Upgrade numpy to version 1.22.0 or higher.

References

low severity

Denial of Service (DoS)

  • Vulnerable module: numpy
  • Introduced through: mmbot@1.0.10

Detailed paths

  • Introduced through: dhondta/malicious-macro-tester@dhondta/malicious-macro-tester#a72cc93a59a27b9f63bd784c90d7089069080984 mmbot@1.0.10 pandas@1.3.5 numpy@1.21.3
    Remediation: Upgrade to mmbot@1.0.10.
  • Introduced through: dhondta/malicious-macro-tester@dhondta/malicious-macro-tester#a72cc93a59a27b9f63bd784c90d7089069080984 mmbot@1.0.10 scikit-learn@1.0.2 numpy@1.21.3
    Remediation: Upgrade to mmbot@1.0.10.

Overview

numpy is a fundamental package needed for scientific computing with Python.

Affected versions of this package are vulnerable to Denial of Service (DoS) due to an incomplete string comparison in the numpy.core component, which may allow attackers to fail the APIs via constructing specific string objects.

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 numpy to version 1.22.0rc1 or higher.

References

low severity

NULL Pointer Dereference

  • Vulnerable module: numpy
  • Introduced through: mmbot@1.0.10

Detailed paths

  • Introduced through: dhondta/malicious-macro-tester@dhondta/malicious-macro-tester#a72cc93a59a27b9f63bd784c90d7089069080984 mmbot@1.0.10 pandas@1.3.5 numpy@1.21.3
    Remediation: Upgrade to mmbot@1.0.10.
  • Introduced through: dhondta/malicious-macro-tester@dhondta/malicious-macro-tester#a72cc93a59a27b9f63bd784c90d7089069080984 mmbot@1.0.10 scikit-learn@1.0.2 numpy@1.21.3
    Remediation: Upgrade to mmbot@1.0.10.

Overview

numpy is a fundamental package needed for scientific computing with Python.

Affected versions of this package are vulnerable to NULL Pointer Dereference due to missing return-value validation in the PyArray_DescrNew function, which may allow attackers to conduct Denial of Service attacks by repetitively creating and sort arrays.

Note: This may likely only happen if application memory is already exhausted, as it requires the newdescr object of the PyArray_DescrNew to evaluate to NULL.

Remediation

Upgrade numpy to version 1.22.2 or higher.

References