CVE-2026-123816 Authentication Bypass Through Improper API-Key Cache Validation
A cached authentication decision in pyLoad could attach an existing user’s privileges to a request carrying an invalid credential.
Independent vulnerability research into authentication, authorization and the handling of untrusted content.
A cached authentication decision in pyLoad could attach an existing user’s privileges to a request carrying an invalid credential.
Repeated password-recovery requests could consume mail resources and flood a user’s inbox in phpMyFAQ.
Delegated administrators could grant access to phpMyFAQ categories beyond their own permission scope.
Stored HTML could retain unsafe embedded content when phpMyFAQ rendered a contribution for another reader.
A Microsoft Entra sign-in could resolve to the wrong local phpMyFAQ account when identity claims collided.
A local course-access review identified an inconsistency in how question-bank category metadata was protected across courses.
A client-controlled X-Forwarded-For header becomes the identity used for throttling and security attribution.
NIRTEM / SECURITY REVIEW
GHSA-9q47-3cm2-2rp8
Draft security advisory · Reporter: nirtem · Package: pyload-ng (pip)
Attack path
01 / Summary
pyLoad reads the client-controlled X-Forwarded-For header and takes its leftmost value for rate-limit bucketing and security logging. There is no trusted-proxy configuration or ProxyFix, while Cheroot serves clients directly.
02 / Impact
Rotating the header creates a fresh bucket on every request, so limits never accumulate. Login and API authentication failures are also stamped with arbitrary or innocent third-party addresses, defeating IP blocking and misdirecting incident response.
Technical report
Header → identity → security decision → bypass → remediationsrc/pyload/webui/app/helpers.py:446rate_limit() per-IP bucket keysrc/pyload/webui/app/helpers.py:357API-key authentication loggingsrc/pyload/webui/app/blueprints/app_blueprint.py:81Web login success and failure loggingsrc/pyload/webui/webserver_thread.pyCheroot serves Flask directly without ProxyFixsrc/pyload/webui/app/blueprints/api_blueprint.py:25Applies 100 requests / 60 seconds to /api/<func>All affected paths derive the address with:
client_ip = flask.request.headers.get(
"X-Forwarded-For", ""
).split(",")[0].strip() or flask.request.remote_addr
The leftmost XFF token is supplied by the original client. Only an absent header falls back to the real TCP peer. With no configured trusted-proxy count, there is no basis for trusting the forwarded value.
The code is internally inconsistent: is_loopback_request() treats forwarded headers as a reason to distrust loopback, while the rate-limit and logging paths trust the same input.
CWE-807 Reliance on Untrusted Inputs in a Security Decision · CWE-290 Authentication Bypass by Spoofing · CWE-348 Use of Less Trusted Source.
X-Forwarded-For on every request.429 Too Many Requests response occurs.FIXED XFF:
[200, 200, 200, 200, 200, 429, 429, 429]
ROTATING XFF:
[200, 200, 200, 200, 200, 200, 200, 200]
# forged audit attribution
curl -H "X-Forwarded-For: 8.8.8.8" \
--data "username=admin&password=wrong" \
http://127.0.0.1:8000/login
# log result
Login failed for user 'admin' using Web Client
[CLIENT: 8.8.8.8]
Control: with a fixed XFF value, the counter reaches its threshold and returns 429. Changing only the header value prevents accumulation. A request whose real peer is 127.0.0.1 but whose XFF is 8.8.8.8 is attributed to the spoofed address.
Moderate — CVSS 3.1 score approximately 5.3:
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
The flaw enables resource abuse, removes effective throttling, poisons audit attribution, evades fail2ban-style blocking, and amplifies other authentication weaknesses.
Default to request.remote_addr. Trust XFF only when an operator explicitly configures a proxy count, then apply ProxyFix(app.wsgi_app, x_for=N) and select the trusted hop from the right—not the client-controlled leftmost token.
Derive the address once in a shared helper for rate limiting, logging, and loopback checks. As defense in depth, cap distinct buckets and additionally limit by the TCP peer.
Security decisions and audit attribution must use a connection-level or trusted-proxy-validated address, never a raw client-supplied header.
Opened by nirtem 29 days before this report snapshot. The advisory remains a draft, affects pyload-ng >= 0.5.0b3.dev101, and currently lists no patched version.
WEP to WPA3 · IEEE 802.11 · Research paper
NIRTEM / TECHNICAL RESEARCH
Technical Report · Wireless Security
Abstract
The unbounded nature of wireless transmission exposes IEEE 802.11 networks to interception and manipulation. This report follows the evolution from the deeply flawed WEP to WPA3, examines TKIP, CCMP/AES, SAE, IEEE 802.1X and RADIUS, analyzes KRACK and contemporary attack paths, and concludes with a defense-in-depth roadmap for modern wireless architecture.
Protocol evolution
RC4 stream cipher · CRC-32 integrity · 24-bit IV
BrokenIV collisions, XOR keystream reuse and FMS weak-IV leakage make recovery of the root key practical within minutes.RC4 · 48-bit IV · per-packet mixing · Michael MIC
DeprecatedA firmware-compatible bridge from WEP, later weakened by RC4 limitations and Beck–Tews / Ohigashi–Morii attacks.AES-CTR confidentiality · CBC-MAC integrity
Strong cipherAuthenticated encryption and replay protection; PSK deployments remain exposed to offline password guessing and handshake state flaws.Dragonfly · elliptic curves · forward secrecy
CurrentEach password guess requires active interaction, preventing capture-once offline dictionary attacks and protecting past traffic after future compromise.Cryptographic foundation
Stream ciphers encrypt one unit at a time by XORing plaintext with a pseudorandom keystream. Block ciphers process fixed-size blocks through substitution and permutation. WPA2 uses AES Counter Mode to obtain stream-like confidentiality while CBC-MAC authenticates headers and payload.
The handshake proves possession of the same master secret without sending it. Its state management is as important as the cipher: a sound primitive can still fail when keys or nonces are installed incorrectly.
Enterprise architecture
Mutual X.509 certificate authentication backed by trusted PKI. It removes password-based weaknesses and causes clients to reject untrusted infrastructure cryptographically.
A server-authenticated TLS tunnel carrying a legacy inner method such as MSCHAPv2. After success, RADIUS supplies an MSK and the 4-way handshake derives per-session keys.
Attack analysis
A MitM blocks and retransmits handshake message 3, forcing vulnerable clients to reinstall the PTK and reset nonces and replay counters. Nonce reuse enables decryption, replay and—on some implementations—packet injection. The fix is to install each negotiated key exactly once.
Deauthentication forces reconnection and exposes a WPA2 4-way handshake. Hashcat or Aircrack-ng can then test candidate passwords offline at hardware speed by deriving a PTK and comparing the MIC.
A stronger rogue AP copies the legitimate SSID and BSSID, coerces association, and establishes a MitM position for interception, downgrade attempts or captive-portal credential theft.
Research toolbench
airodump-ng capture, aireplay-ng injection and deauthentication, and aircrack-ng offline WEP/WPA analysis.
Deep inspection of 802.11 headers, RADIUS exchanges, EAPOL frames and handshake anomalies through targeted display filters.
Passive detection, wardriving, hidden-network discovery, rogue-AP monitoring and wireless IDS without active probes.
Controlled Evil Twin research, enterprise EAP emulation, downgrade testing and credential-exposure assessment.
Defense-in-depth roadmap
Use SAE where hardware permits to resist offline dictionary attacks. For retained WPA2-PSK networks, require high-entropy passphrases longer than 16 alphanumeric characters.
Use WPA3-Enterprise or WPA2-Enterprise with EAP-TLS and internal PKI for mutual authentication, individual accountability and rapid revocation.
Enable 802.11w PMF to authenticate deauthentication and disassociation frames, reducing forced handshakes and common denial-of-service paths.
Deploy WIPS to identify rogue BSSIDs, abnormal signal patterns, injection attempts and malicious clients.
Future direction
AES-256 remains comparatively resilient to known quantum attacks, while RSA and conventional elliptic-curve authentication used by EAP-TLS require post-quantum alternatives. Wi-Fi 7 Multi-Link Operation expands state across 2.4, 5 and 6 GHz, increasing the surface for KRACK-like state manipulation. Defensive systems are consequently moving toward edge-based behavioral analysis and RF fingerprinting rather than simple MAC filtering.
Conclusion
The journey from WEP to WPA3 is a shift from merely scrambling frames to zero-knowledge proofs, mutual authentication and disciplined state management. Secure ciphers remain vulnerable when the protocol logic around them fails.
Section I · Published Research