CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-9Q47-3CM2-2RP8

GHSA-9Q47-3CM2-2RP8: Rate-Limit Bypass and Audit Log Spoofing in pyLoad WebUI

Amit Schendel
Amit Schendel
Senior Security Researcher

Oct 9, 2026·6 min read·11 visits

Executive Summary (TL;DR)

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.

Vulnerability Overview

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.

Root Cause Analysis

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.

Code Analysis

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 Methodology

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.

Impact Assessment

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.

Remediation and Guidance

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.

Technical Appendix

CVSS Score
6.5/ 10

Affected Systems

pyLoad WebUI
AttributeDetail
CWE IDCWE-348
Attack VectorNetwork
CVSS6.5
ImpactRate-Limit Bypass & Log Spoofing
Exploit StatusProof of Concept
KEV StatusNot Listed

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•18 minutes ago•CVE-2026-128077
6.5

CVE-2026-128077: Authorization Bypass via Request Path Desynchronization in Nuxt and @nuxt/nitro-server

CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.

Amit Schendel
Amit Schendel
2 views•10 min read
•about 1 hour ago•CVE-2026-128084
4.8

CVE-2026-128084: Integer Truncation and SQL Query Truncation in sqlite3-ruby

Prior to version 2.10.2, the sqlite3-ruby gem explicitly cast 64-bit Ruby string lengths (long) to 32-bit signed integers (int) when invoking the underlying SQLite C API. On 64-bit platforms, providing a string of 4 GiB (2^32 bytes) or larger causes integer truncation, instructing SQLite to process only a prefix of the string. This flaw affects SQL query preparation, bound parameter values, and return values from custom Ruby-defined SQL functions and aggregates, allowing trailing SQL clauses such as WHERE restrictions to be silently dropped under specific conditions.

Alon Barad
Alon Barad
4 views•11 min read
•about 2 hours ago•CVE-2026-128068
5.3

CVE-2026-128068: Regular Expression Denial of Service in rails-html-sanitizer

CVE-2026-128068 (GHSA-cpgf-5mjf-73p7) is a Regular Expression Denial of Service (ReDoS) vulnerability in the rails-html-sanitizer Ruby gem affecting versions 1.0.3 through 1.7.1. The flaw resides in the Rails::HTML::PermitScrubber#scrub_attribute method, which uses the multiline regular expression /^\s*[^#\s].*/m to enforce local-only URI fragment references on SVG elements. On Ruby runtimes prior to version 3.2 (CRuby <= 3.1 and JRuby), evaluating an attribute value composed of repeated newline and whitespace characters without a hash character triggers quadratic backtracking O(n^2). Applications are only vulnerable if their sanitization allowlist is explicitly configured to permit SVG reference elements such as <use> alongside href or xlink:href attributes.

Alon Barad
Alon Barad
4 views•9 min read
•about 3 hours ago•CVE-2026-126360
5.3

CVE-2026-126360: Regular Expression Denial of Service in OpenTelemetry Python opentelemetry-api

CVE-2026-126360 (GHSA-mf5v-w3w3-f6cg) is an algorithmic complexity vulnerability (Regular Expression Denial of Service) in the trace context propagation logic of the opentelemetry-api package within the OpenTelemetry Python ecosystem. In versions prior to 1.45.2, the TraceContextTextMapPropagator.extract() method utilizes a regular expression susceptible to quadratic-time backtracking when parsing malformed W3C traceparent headers containing long sequences of whitespace followed by an embedded newline character. In Python applications—particularly those using single-threaded asynchronous event loops—an unauthenticated remote attacker transmitting payloads over newline-preserving carriers can monopolize CPU execution and induce application-level Denial of Service.

Alon Barad
Alon Barad
4 views•10 min read
•about 4 hours ago•CVE-2026-126359
3.4

CVE-2026-126359: Cross-Site Scripting via Split Closing Style Tag in Hono CSS Helper

CVE-2026-126359 (GHSA-3gg2-335m-rxc6) is an improper input neutralization vulnerability (CWE-79) in the Hono web framework (`honojs/hono`). Versions from 3.12.0 prior to 4.13.16 evaluate and escape interpolated strings in the `hono/css` helper individually before concatenating template chunks and stripping CSS comments. When a `<` character and a `/style>` sequence are split across template boundaries, adjacent interpolations, or separated by a CSS comment, the sanitizer fails to escape the closing tag sequence. During Server-Side Rendering (SSR), the `<Style />` component outputs an unescaped `</style>` delimiter, permitting an attacker to break out of the CSS raw text context and execute arbitrary HTML and JavaScript in the victim's browser.

Alon Barad
Alon Barad
5 views•10 min read
•about 5 hours ago•CVE-2026-126358
5.3

CVE-2026-126358: Authorization Bypass via Wildcard Middleware Omission in Hono RegExpRouter

An incorrect authorization vulnerability (CWE-863) exists in the Hono web application framework (npm package `hono`) from version 4.1.4 prior to 4.13.16. Flaws in the registration-time coverage calculation and regular expression compilation within `RegExpRouter` cause wildcard middleware to be omitted under three specific routing conditions: parameter pattern equivalence mismatches, wildcard boundary collisions, and request paths containing percent-encoded line terminators. Because Hono's default `SmartRouter` selects `RegExpRouter` for most standard web applications, unauthenticated remote clients can bypass authentication, authorization, or security middleware registered on wildcard paths to directly access protected route handlers or the application's not-found handler.

Alon Barad
Alon Barad
5 views•13 min read