Oct 9, 2026·6 min read·12 visits
Unconditional trust of X-Forwarded-For headers in pyLoad allows remote attackers to bypass login rate limits and forge source IP addresses in audit logs.
A critical security vulnerability has been identified and patched in the WebUI component of pyLoad, a popular Python-based open-source download manager. This vulnerability allows attackers to completely bypass API rate limits and spoof client IP addresses in audit logs due to unsafe parsing of the X-Forwarded-For HTTP header.
The webui component of pyLoad exposes an attack surface through HTTP endpoints that require authentication, rate limiting, and origin verification. The application is designed to act as an open-source download manager, frequently deployed on localized servers, network-attached storage (NAS) devices, or within containerized environments. In default configurations, pyLoad may run directly on standard WSGI servers or behind unconfigured reverse proxies.\n\nThe flaw lies in the incorrect handling of client-supplied network headers within the backend server logic. Specifically, the application parses the X-Forwarded-For HTTP header without verifying if the request originated from a trusted upstream reverse proxy. This behavior falls under CWE-348, where an application utilizes a less trusted source to determine IP addresses. This allows remote attackers to spoof their client IP address and bypass security controls.\n\nThe primary impacts of this vulnerability include the complete evasion of API rate limits and the manipulation of audit logs. Rate limiting is applied to critical endpoints such as the login panel to prevent automated credential guessing. By forging the source IP, an attacker can allocate a fresh rate-limiting bucket for every authentication request. Furthermore, the logging mechanism registers the spoofed IP address, which hampers security monitoring and post-incident forensic investigations.
The root cause of GHSA-9Q47-3CM2-2RP8 is the unconditional trust placed in the X-Forwarded-For (XFF) HTTP header. The XFF header is a standard mechanism used by reverse proxies to pass the original client IP address to backend servers. However, since HTTP headers can be easily manipulated by any client, a backend application must only trust this header if it is explicitly configured to do so and if the request arrives from a known, trusted proxy server.\n\nIn pyLoad, the custom IP extraction logic was implemented across multiple blueprints and helpers. The code extracted the first IP address from the comma-separated list in the X-Forwarded-For header. If the header was present, its value was immediately used as the authoritative client IP. If the header was absent, the code fell back to the socket's peer address, represented by flask.request.remote_addr.\n\nBecause the application lacked any mechanism to verify the identity of the proxy sending the request, direct client connections could include an arbitrary X-Forwarded-For header. The application would process this header, split the values, and accept the leftmost IP address. This design flaw violates the trust boundary between the external untrusted network and the internal application security context.
The vulnerability was present in several locations where the client IP was determined. In the administrative login logic (app_blueprint.py) and the rate-limiting decorator (helpers.py), the IP address was extracted using manual string parsing:\n\npython\n# Vulnerable manual extraction\nclient_ip = flask.request.headers.get("X-Forwarded-For", "").split(',')[0].strip() or flask.request.remote_addr\n\n\nThe remediation replaced this manual parsing with a structured helper function and Werkzeug's native middleware. The patch introduced a trusted_proxies configuration parameter, defaulting to 0. When this parameter is set to a value greater than 0, the application wraps its WSGI layers using Werkzeug's ProxyFix middleware:\n\npython\n# Patched middleware initialization\nif trusted_proxy_count:\n app.wsgi_app = ProxyFix(app.wsgi_app, x_for=trusted_proxy_count)\n\n\nThe centralized helper function get_client_ip was introduced to enforce this boundary. If ignore_proxyfix is set to True, the function retrieves the original socket address, ensuring that security-critical loopback validations cannot be bypassed via headers:\n\npython\n# Patched helper in helpers.py\ndef get_client_ip(request=flask.request, ignore_proxyfix=False):\n remote_addr = request.remote_addr or "unknown"\n if ignore_proxyfix:\n proxy_fix_original = request.environ.get("werkzeug.proxy_fix.orig", {})\n return proxy_fix_original.get("REMOTE_ADDR", remote_addr)\n return remote_addr\n
Exploitation of this vulnerability requires no special privileges and can be performed remotely. To bypass rate limits on the login panel, an attacker generates a sequence of HTTP POST requests targeting the /api/login endpoint. Each request is constructed with a unique IP address placed in the X-Forwarded-For header.\n\npython\n# Conceptual rate-limit evasion script\nimport requests\nimport random\n\ntarget_url = "http://localhost:8000/api/login"\nfor attempt in range(10):\n fake_ip = f"192.0.2.{random.randint(1, 254)}"\n headers = {"X-Forwarded-For": fake_ip}\n payload = {"username": "admin", "password": f"attempt_{attempt}"}\n response = requests.post(target_url, headers=headers, data=payload)\n\n\nThe server processes each request as if it originated from a distinct client. Consequently, the sliding-window counter used by the @rate_limit decorator is reset for each iteration, allowing an infinite number of login attempts.\n\nAn attacker can also inject a static IP address to frame an arbitrary system in the server logs. For example, sending a request with X-Forwarded-For: 8.8.8.8 forces pyLoad to write "8.8.8.8" as the source of the authentication failure in the security log. This technique obscures the actual location of the attacker during active scanning or brute-force operations.
The primary security impact is the negation of brute-force protection mechanisms. Rate limiting is a crucial control used to throttle high-frequency automated attacks against authentication gateways. By rendering this control ineffective, the vulnerability permits attackers to perform high-velocity dictionary attacks against administrative accounts.\n\nThe secondary impact is the degradation of audit trail integrity. Security teams rely on application logs to trace malicious actions and perform incident response. By allowing arbitrary IP injection, an attacker can misdirect investigators, evade geolocation-based detection, and complicate log correlation efforts.\n\nThe vulnerability also poses a risk of access control bypass on localized interfaces such as Click'N'Load. This component restricts interactions to local loopback addresses. If the proxy-fix middleware is applied globally without safety checks, an external attacker could spoof a loopback IP (127.0.0.1) and access administrative loopback endpoints.
The primary remediation is to upgrade pyLoad to a version containing the commit 5dc6b628e2d8b9f42dde82f396e5b7a2b513f6d1. This update ensures that the application no longer parses the X-Forwarded-For header by default.\n\nAdministrators must configure the trusted_proxies option in the webui configuration file. If pyLoad is deployed directly to the internet, this value must remain at 0. This forces the application to utilize only the socket's peer address, ignoring any incoming X-Forwarded-For headers.\n\nIf the application is deployed behind a reverse proxy, the trusted_proxies value must be set to match the exact number of proxy hops. For example, a standard deployment behind a single Nginx reverse proxy requires a configuration value of 1. Over-provisioning this value will recreate the vulnerability by trusting client-forged headers from the untrusted network.
| Attribute | Detail |
|---|---|
| CWE ID | CWE-348 |
| Attack Vector | Network |
| CVSS | 6.5 |
| Impact | Rate-Limit Bypass & Log Spoofing |
| Exploit Status | Proof of Concept |
| KEV Status | Not Listed |
CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.
CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.
CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.
CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.
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.