Sonarr < 4.0.16.2942 - X-Forwarded-For Authentication Bypass
Sonarr before 4.0.16.2942 clears the trusted proxy lists of the ASP.NET forwarded headers middleware, so the client address is taken from any X-Forwarded-For header. When Authentication Required is set to Disabled for Local Addresses, the UI authorization handler treats a spoofed loopback or private address as a local client and serves the protected web interface without login. Version 4.0.16.2942 trusts forwarded headers only from loopback and private networks.