This patch came directly from upstream, so I have reported it there too: https://bz.apache.org/bugzilla/show_bug.cgi?id=70376
** Bug watch added: bz.apache.org/bugzilla/ #70376 https://bz.apache.org/bugzilla/show_bug.cgi?id=70376 ** Description changed: Running apache2 as a reverse proxy with mod_auth_form and mod_session (so that users have to authenticate before being able to access a back- end server). Original config: ``` Session On SessionCookieRemove On SessionCryptoPassphraseFile /data/session-passphrase ... - AuthFormProvider file - AuthUserFile "/data/nsrc-passwd" - AuthGroupFile "/data/nsrc-group" - AuthType form - AuthName "Workshop-lab" - AuthFormLoginRequiredLocation "https://%{SERVER_NAME}/auth/login.html" - AuthFormLoginSuccessLocation "https://%{SERVER_NAME}/auth/login-success.html" - AuthFormLogoutLocation "https://%{SERVER_NAME}/auth/logout-success.html" - </IfFile> + AuthFormProvider file + AuthUserFile "/data/nsrc-passwd" + AuthGroupFile "/data/nsrc-group" + AuthType form + AuthName "Workshop-lab" + AuthFormLoginRequiredLocation "https://%{SERVER_NAME}/auth/login.html" + AuthFormLoginSuccessLocation "https://%{SERVER_NAME}/auth/login-success.html" + AuthFormLogoutLocation "https://%{SERVER_NAME}/auth/logout-success.html" ```` The backend servers do not need to see the mod_auth_form session cookie, so I always ran this with "SessionCookieRemove On" as shown to optimize the traffic and reduce the risk of the cookie leaking. This used to work fine. However, this has recently broken, and I believe it was the fix for CVE-2026-47360. What is supposed to happen is: 1. The user lands on the authentication page, and fills in the form 2. If the form auth is successful, mod_auth_form sets the session cookie and issues a redirect to AuthFormLoginSuccessLocation But as far as I can tell, the patch prevents the Set-Cookie: from being returned during the redirect. WORKAROUND: Change to "SessionCookieRemove Off". This introduces extra traffic to the back-end servers, and exposes the session cookie more than necessary. (Can be seen with tcpdump) ALTERNATE WORKAROUND: downgrade. apt-get install apache2=2.4.66-2ubuntu2 apache2-bin=2.4.66-2ubuntu2 apache2-data=2.4.66-2ubuntu2 apache2-utils=2.4.66-2ubuntu2 (not recommended, but does demonstrate the problem is due to changes in the apache2 package) ProblemType: Bug DistroRelease: Ubuntu 26.04 Package: apache2 2.4.66-2ubuntu2.8 ProcVersionSignature: Ubuntu 6.8.0-149.149~22.04.1-generic 6.8.12 Uname: Linux 6.8.0-149-generic x86_64 Apache2ConfdDirListing: False Apache2Modules: - AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message - httpd (pid 894) already running + AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message + httpd (pid 894) already running ApportVersion: 2.34.1-0ubuntu0.1 Architecture: amd64 CasperMD5CheckResult: unknown CloudArchitecture: x86_64 CloudID: nocloud CloudName: unknown CloudPlatform: nocloud CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud-net) Date: Tue Nov 24 09:32:18 2026 ProcEnviron: - LANG=en_US.UTF-8 - PATH=(custom, no user) - SHELL=/bin/bash - TERM=xterm-256color - XDG_RUNTIME_DIR=<set> + LANG=en_US.UTF-8 + PATH=(custom, no user) + SHELL=/bin/bash + TERM=xterm-256color + XDG_RUNTIME_DIR=<set> SourcePackage: apache2 UpgradeStatus: No upgrade log present (probably fresh install) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2175709 Title: Fix for CVE-2026-47360 breaks mod_auth_form with SessionCookieRemove on To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/2175709/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
