Oct 9, 2026·4 min read·14 visits
Administrative changes via the pyLoad REST API (such as password changes or permission downgrades) do not invalidate active filesystem-based Flask sessions. Affected users retain their original high-privilege permissions for the entire session lifetime (up to 31 days) unless sessions are manually purged.
An insufficient session invalidation vulnerability exists in pyLoad (pyload-ng) versions 0.5.0b3.dev98 through 0.5.0b3.dev101. When administrative actions like privilege revocation or password changes are executed via the public REST API, active user sessions on disk are not updated or invalidated. Consequently, affected sessions remain fully authenticated with stale permissions for up to 31 days.
pyLoad utilizes a Flask-based web interface to expose configuration, download management, and user controls. To reduce database overhead during client requests, pyLoad caches security credentials—such as the user's role identifier and permission bitmask—directly inside the filesystem-backed Flask session when a user first authenticates.
This design introduces a critical trust-boundary problem. The cached session data acts as the absolute source of truth for subsequent authorization decisions, bypassing real-time database validation. The primary security vulnerability, tracked under GHSA-JQ7H-WRVP-3RGX, stems from a complete lack of synchronization between administrative updates performed via the backend REST API/RPC layer and these cached session structures.
The root cause of this flaw is insufficient session invalidation (CWE-613). When administrators interact with pyLoad's Web UI administration panel, the application explicitly coordinates state changes, calling helper functions like clear_all_user_sessions(username) to force deletion of associated filesystem cookies.
However, pyLoad also exposes a direct REST API and RPC dispatcher (/api/) handled by the module src/pyload/core/api/__init__.py. When administrative tasks are executed via these RPC endpoints—including user deletion, privilege modification, or password alterations—the system directly updates the backend SQLite database but has no logical awareness of the active Flask session manager layer.
Consequently, database records reflect the updated privileges, but the corresponding .sess files stored inside SESSION_FILE_DIR remain active, unexpired, and intact. Because parse_permissions() continues reading authorization bits directly from the stale cookie session, affected clients preserve high-privilege access for the duration of the session's active lifespan, which defaults to 31 days.
The sequence below illustrates the communication breakdown between the Core API layer, SQLite database, and Web UI Session Files, culminating in unauthorized persistent access:
This architectural separation prevents the database-level modifications from propagating to active transport-layer sessions, creating a vulnerability window of up to 31 days.
Before the patch, core user configuration methods had no references to Flask-layer sessions. To resolve this, the patch introduces a callback registration mechanism allowing the core API to request session invalidation safely.
# File: src/pyload/core/api/__init__.py (Post-patch)
def __init__(self, core):
# ...
self._session_invalidator = None
def set_session_invalidator(self, invalidator: Optional[Callable[[str], int]]) -> None:
self._session_invalidator = invalidator
def _invalidate_user_sessions(self, user: str) -> None:
if self._session_invalidator is not None:
# Invokes the lambda registered by the Web UI layer
self._session_invalidator(user)The Web UI initializes this callback during web application configuration:
# File: src/pyload/webui/app/__init__.py
api = app.config["PYLOAD_API"]
api.set_session_invalidator(lambda user: clear_all_user_sessions(user))Any critical user updates within the Core API are then wrapped to trigger the callback upon successful database execution:
# File: src/pyload/core/api/__init__.py
@legacy("setUserPermission")
@post
def set_user_permission(self, user: str, permission: int, role: int) -> None:
# Database change operation returned boolean status
changed = self.pyload.db.set_user_permission(user, permission, role)
if changed:
self._invalidate_user_sessions(user)An attacker must establish or compromise a valid cookie-authenticated session before privilege changes or password changes are made.
Once an administrative action is taken via the RPC API—for example, resetting a compromised user's password or reducing their user level to 1—the attacker can test persistence by making direct API calls targeting administrative features, such as get_userdir or get_config.
Because the underlying Flask framework authorizes the request using the existing filesystem session token, the client session is deemed authentic. No request middleware cross-references the session's cached values with the current DB table, maintaining administrative privileges for the lifetime of the session.
While the registered callback mechanism successfully fixes the structural bypass, security engineers should monitor two specific implementation aspects.
First, inside clear_all_user_sessions in src/pyload/webui/app/helpers.py, the removal of the general try-except structure during directory parsing introduces a minor robustness issue. If a concurrent request removes a session file, or if a zero-byte session file exists on disk, _read_session_file or os.remove will raise an unhandled exception. This will abort execution mid-loop, resulting in a server error (HTTP 500) and leaving other target user sessions still active.
Second, the synchronization is wholly dependent on the runtime environment registering the Flask configuration callback. If the application is launched in an embedded context without executing _configure_session(), the callback pointer remains None, leaving the API-level methods without any functional session invalidation capabilities.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
pyload-ng pyload | >= 0.5.0b3.dev98, <= 0.5.0b3.dev101 | Commit 3e726ba271a6b1015e3a0ea6dc7e46a8f71a62ad |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-613 |
| Attack Vector | Network |
| CVSS Score | 7.5 |
| Exploit Status | Proof of Concept available |
| Impact | Privilege Escalation / Persistent Session Hijack |
The application does not invalidate a session when the user's password or privilege level is modified via the API dispatcher.
CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.
CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.
CVE-2026-133469 is an improper authentication and input type validation vulnerability in the xo-server component of Vates Xen Orchestra and Xen Orchestra Appliance (XOA). Due to Express cookie-parser JSON deserialization combined with loose truthiness validation and unvalidated Redis query construction, an unauthenticated attacker can supply an empty JSON object cookie (authenticationToken=j:{}) to bypass authentication and hijack the first valid active session token stored in the database. This flaw is actively exploited in the wild to gain administrative control over Xen Orchestra deployments and execute root-level commands on underlying XCP-ng and XenServer hypervisors.
CVE-2026-22816 (GHSA-w78c-w6vf-rw82) is a high-severity flaw in Gradle's dependency resolution engine affecting versions prior to 8.14.4 and versions 9.0.0 through 9.2.1. Due to improper error handling when transient network errors or connection failures exhaust their retry limits, Gradle fails to mark unreachable repositories as disabled and does not abort the resolution queue. Instead, it silently falls through to subsequent repositories configured in the build script. This behavior enables dependency confusion and supply chain attacks when an internal or primary repository experiences connectivity issues, unresolvable DNS, or domain registration lapses.
Gradle versions prior to 8.14.4 and 9.3.0 fail to classify certain fatal network transport exceptions, such as UnknownHostException and NoHttpResponseException, as critical failures during dependency resolution. When these exceptions occur and retry thresholds are exhausted, Gradle fails to disable the unreachable primary repository and instead falls through to subsequent repositories configured in the build script. An attacker capable of disrupting connectivity to an upstream repository can force the build tool to fetch malicious artifacts with matching coordinates from a downstream, untrusted repository.
NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.