Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108522 Overview
CVE-2026-108522 is an improper authentication vulnerability [CWE-287] in Studio-Saelix Sencho up to version 0.94.1. The flaw resides in the /api/auth/login endpoint, where the login rate limiter trusts the client-supplied X-Forwarded-For header without validating a trusted-proxy boundary. Attackers can rotate the apparent client IP address to bypass failed-login throttling and conduct remote credential brute-force attacks. The vendor has published a patch under commit 79b86ddcd4aefdd6941f098e35990ab397b13c72, and a public proof-of-concept exists.
Critical Impact
Remote attackers can bypass the login attempt limiter by spoofing forwarding headers, enabling unthrottled credential brute-force against the Sencho authentication endpoint.
Affected Products
- Studio-Saelix Sencho versions up to and including 0.94.1
- Component: Login Endpoint (/api/auth/login)
- Deployments relying on default forwarding-header trust behavior
Discovery Timeline
- 2026-10-11 - CVE-2026-108522 published to NVD
- 2026-10-14 - Last updated in NVD database
Technical Details for CVE-2026-108522
Vulnerability Analysis
The vulnerability affects the login rate limiter in Studio-Saelix Sencho. The limiter keys failed authentication attempts to the client IP address derived from the X-Forwarded-For HTTP header. Because Sencho previously accepted this header from any upstream peer without validating a trusted-proxy boundary, attackers can inject arbitrary values. Rotating the header on each request produces a new apparent source address, defeating per-IP throttling. The attack is unauthenticated and executed remotely over the network against the exposed login endpoint.
Root Cause
The root cause is improper authentication control stemming from implicit trust of client-supplied forwarding metadata [CWE-287]. The login limiter consumed X-Forwarded-For values without first confirming the request originated from an explicitly configured reverse proxy. No separate failed-attempt counter was keyed to the account identity, so an attacker rotating header values effectively faced no rate limit against a specific username.
Attack Vector
An unauthenticated remote attacker sends repeated POST requests to /api/auth/login with varying X-Forwarded-For values. Each request appears to originate from a distinct client IP from the limiter's perspective, bypassing failed-attempt counting. This enables credential stuffing and password spraying against valid accounts without triggering lockouts.
# Patch excerpt from .env.example introducing trusted-proxy CIDRs
# trailing slash. When unset, enrollment falls back to the request Host.
SENCHO_PUBLIC_URL=
+# Comma-separated CIDRs of reverse proxies trusted to set forwarding headers.
+# Set a single IPv4 proxy as a /32, a single IPv6 proxy as a /128, or use the
+# proxy network CIDR when Sencho is behind one (for example, 192.168.1.50/32).
+# Unset or invalid values make Sencho ignore forwarded client and scheme data.
+SENCHO_TRUSTED_PROXY_CIDRS=
Source: GitHub Sencho Commit 79b86dd
The TypeScript backend adds a isTrustedProxyPeer helper to validate the upstream peer before honoring forwarding headers:
import { globalApiLimiter, pollingLimiter } from './middleware/rateLimiters';
import { conditionalJsonParser } from './middleware/jsonParser';
import { nodeContextMiddleware } from './middleware/nodeContext';
import { isTrustedProxyPeer } from './helpers/trustedProxyCidrs';
import { normalizeAcceptEncoding } from './middleware/normalizeAcceptEncoding';
Source: GitHub Sencho Commit 79b86dd
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-108522
Indicators of Compromise
- High volumes of POST /api/auth/login requests with rapidly changing X-Forwarded-For values from the same TCP peer address.
- Repeated authentication failures against a single username while originating IP addresses appear uniformly distributed or sequential.
- Login traffic containing malformed, private-range, or reserved-range X-Forwarded-For entries arriving from untrusted upstream hosts.
Detection Strategies
- Correlate transport-layer source IP (socket peer) with the X-Forwarded-For header value and alert on mismatches when the peer is not a declared proxy.
- Baseline per-account login failure rates independent of IP, and alert when a single account exceeds a failure threshold regardless of apparent source.
- Deploy web application firewall rules that strip or normalize forwarding headers at the perimeter before they reach the Sencho backend.
Monitoring Recommendations
- Enable verbose logging on the /api/auth/login endpoint capturing both the socket peer address and all forwarding headers.
- Forward authentication logs to a centralized analytics platform and build dashboards for failed-login velocity per account identity.
- Monitor for the public proof-of-concept patterns referenced in the GitHub Gist PoC Repository.
How to Mitigate CVE-2026-108522
Immediate Actions Required
- Upgrade Studio-Saelix Sencho beyond version 0.94.1 to a release containing commit 79b86ddcd4aefdd6941f098e35990ab397b13c72.
- Configure the SENCHO_TRUSTED_PROXY_CIDRS environment variable with the explicit CIDR ranges of your reverse proxies.
- If Sencho is directly exposed without a reverse proxy, leave SENCHO_TRUSTED_PROXY_CIDRS unset so forwarding headers are ignored.
- Review authentication logs for prior brute-force attempts and reset credentials of any accounts that show anomalous failure patterns.
Patch Information
The fix is delivered in commit 79b86ddcd4aefdd6941f098e35990ab397b13c72 via GitHub Sencho Pull Request 1877. The remediation ignores forwarding headers by default, accepts them only from explicitly configured proxy CIDRs, and adds a separate failed-attempt limit keyed by normalized account identity. See the GitHub Sencho Project and VulDB CVE-2026-108522 advisory for additional context.
Workarounds
- Place Sencho behind a reverse proxy that strips inbound X-Forwarded-For headers and rewrites them from the authenticated peer address.
- Enforce account-level lockout policies at an upstream identity provider or WAF to limit per-username failed attempts regardless of source IP.
- Restrict network exposure of /api/auth/login to known client ranges using firewall ACLs until the patch is applied.
# Configuration example: restrict trusted proxies in Sencho environment file
# Replace with the actual CIDR of your reverse proxy or load balancer
SENCHO_TRUSTED_PROXY_CIDRS=192.168.1.50/32,10.0.0.0/24
# If Sencho is not behind a reverse proxy, leave unset to ignore forwarding headers
# SENCHO_TRUSTED_PROXY_CIDRS=
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

