from using specially crafted vhost names to write to any .log file on
the system.
PR: 7848
Obtained from:
Submitted by: Daniel Matuschek <daniel.matuschek@swisscom.com> and Marc Slemko
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@89771
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 1.3.21
+ *) SECURITY: Make support/split-logfile use the default log file if
+ "/" or "\" are present in the virtual host name. This prevents
+ the possible use of specially crafted virtual host names in
+ some configurations to allow writing to any .log file on the
+ system. [Daniel Matuschek <daniel.matuschek@swisscom.com>,
+ Marc Slemko] PR#7848
+
*) Added a directive: "AcceptFilter <on|off>". To control BSD
acccept filters when at compile time SO_ACCEPT_FILTER is
detected. The default is still 'on' except when, at compile
#
$vhost = lc ($vhost) or "access";
#
+ # if the vhost contains a "/" or "\", it is illegal so just use
+ # the default log to avoid any security issues due if it is interprted
+ # as a directory separator.
+ if ($vhost =~ m#[/\\]#) { $vhost = "access" }
+ #
# If the log file for this virtual host isn't opened
# yet, do it now.
#