Résumé
Tinyauth: Nginx authentication bypass via spoofed X-Original-URL header
Détails de l’avis
Summary
Tinyauth's Nginx forward-auth endpoint trusts the client-supplied X-Original-URL header when determining which application's access controls to enforce. This allows an attacker to bypass authentication by referencing another application's public path or bypass application-specific access restrictions by referencing an application they are authorized to access.
Who is impacted
Instances using Tinyauth's /api/auth/nginx endpoint with Nginx or Nginx Proxy Manager configurations that do not explicitly overwrite or remove the X-Original-URL header. Both unauthenticated users and authenticated users with restricted application access may exploit this vulnerability.
Temporary mitigation
Administrators should configure Nginx to remove the client-supplied X-Original-URL header before forwarding authorization requests to Tinyauth.
Add the following directive inside the Nginx location handling Tinyauth authentication requests:
proxy_set_header X-Original-URL "";
Ensure that the reverse proxy continues to supply the correct X-Forwarded-Host, X-Forwarded-Proto, and X-Forwarded-Uri headers. This mitigation applies to configurations using these forwarded headers rather than those that require a proxy-generated X-Original-URL.
Références
- https://github.com/advisories/GHSA-vx8c-f5hh-c8pf
- https://github.com/tinyauthapp/tinyauth/security/advisories/GHSA-vx8c-f5hh-c8pf
- https://github.com/tinyauthapp/tinyauth/pull/1089
- https://github.com/tinyauthapp/tinyauth/commit/847d8325c70b64775fdeaf61343c75fdac855009
- https://github.com/tinyauthapp/tinyauth/releases/tag/v5.2.0
Vulnérabilités liées
Tout Supply chain →- MEDIUMCVE-2026-77463
Remark42: Rate limit bypass via unconditional trust of X-Forwarded-For/X-Real-IP headers in direct-internet deployment
- MEDIUMCVE-2026-114617
Authlib: ID token can disable its own nonce validation via the nonce_supported claim
- MEDIUMCVE-2026-111748
AIOHTTP: Absolute-form request targets can spoof Request.scheme
- HIGHCVE-2026-69217
http4s: Ember Server Accepts Duplicate Content-Length Headers
- MEDIUMCVE-2026-69212
http4s: FollowRedirect exposes sensitive headers on same-authority HTTPS-to-HTTP redirects
- MEDIUMCVE-2026-69211
http4s: Set-Cookie rendering does not escape attribute delimiters