A flaw was found in httpd before version 2.4.24. When proxying using modremoteip and modrewrite its possible to spoof IP addresses.
Upstream patch:
https://svn.apache.org/viewvc?view=revision&revision=1767483
Apache httpd before versions 2.2.32 and 2.4.25 are vulnerable to possible CRLF injection allowing HTTP response splitting attacks for sites which use moduserdir. This issue was mitigated by changes made in 2.4.25 and 2.2.32 which prohibit CR or LF injection into the "Location" or other outbound header key or value.
Below is the upstream report about a security issue in Subversion:
Summary =======
Subversion's modauthzsvn does not properly restrict anonymous access in some mixed anonymous/authenticated environments when using Apache httpd 2.4. The result is that anonymous access may be possible to files for which only authenticated access should be possible.
Known vulnerable ================
CVE-2015-3185 Apache httpd 2.4.0 to 2.4.12 CVE-2015-3184 Apache Subversion 1.8.0 to 1.8.13 CVE-2015-3184 Apache Subversion 1.7.0 to 1.7.20
Servers are vulnerable if either httpd or Subversion is as listed.
Subversion 1.6 does not build with httpd 2.4 and servers using httpd 2.2 are not vulnerable. Servers that are configured to deny anonymous access are not vulnerable.
Known fixed ===========
Apache httpd 2.4.13 Apache Subversion 1.8.14 and 1.7.21
Both httpd and Subversion need to be updated.
Details =======
If you have a Subversion repository configured for anonymous read that has modauthzsvn configured such that some portion of the repository is hidden from an anonymous user, then in certain cases when Subversion is used with Apache httpd 2.4.x the file contents of the repository may be exposed to someone who knows the path name within the repository. The protected files and directories will not show on directory listings. Protected directories that do not show in their parent will return an empty directory listing rather than a 403 error. Protected files will return the full content of the file. Specifically the conditions required for this to happen is that there needs to be a <Directory> block for the DocumentRoot allowing access to everyone (e.g. Require all granted) and "Satisfy any" must not be set. This sort of configuration is included in the default httpd.conf that make install provides and is fairly standard.
Severity ========
CVSSv2 Base Score: 4.3 CVSSv2 Base Vector: AV:N/AC:M/Au:N/C:P/I:N/A:N
The repository needs to be configured with mixed anonymous and authenticated path-based authz and the the attacker needs to know the paths to files in the repository that require authentication.
Acknowledgements:
Red Hat would like to thank Apache Software Foundation for reporting this issue. Upstream acknowledges C. Michael Pilato, CollabNet, as the original reporter.
Statement:
This issue did not affect versions of subversion as shipped with Red Hat Enterprise Linux 5 and 6.
If an authorization script for LuaAuthzProvider were provided in the configuration multiple times, only the arguments of the last specification were used when invoking the script. This could lead to scripts being invoked with unexpected arguments.
Further details are available in the thread of the original report and bug:
http://www.openwall.com/lists/oss-security/2014/11/28/5
https://issues.apache.org/bugzilla/showbug.cgi?id=57204
Upstream fix:
https://github.com/apache/httpd/commit/3f1693d558d0758f829c8b53993f1749ddf6ffcb
This affects Apache HTTP Server versions 2.3 and later (such as what is shipped in Red Hat Enterprise Linux 7), as modlua is not available in earlier releases. Note that support for LuaAuthzProvider is experimental.
It was reported that if Content-Type header value is empty, httpd with modcache enabled will segfault: https://issues.apache.org/bugzilla/showbug.cgi?id=56924
Upstream patch: http://svn.apache.org/viewvc?view=revision&revision=1624234
Memory leak in the winntaccept function in server/mpm/winnt/child.c in the WinNT MPM in the Apache HTTP Server 2.4.x before 2.4.10 on Windows, when the default AcceptFilter is enabled, allows remote attackers to cause a denial of service (memory consumption) via crafted requests.
Race condition in the modstatus module in the Apache HTTP Server before 2.4.10 allows remote attackers to cause a denial of service (heap-based buffer overflow), or possibly obtain sensitive credential information or execute arbitrary code, via a crafted request that triggers improper scoreboard handling within the statushandler function in modules/generators/modstatus.c and the luaapscoreboardworker function in modules/lua/luarequest.c.
The deflateinfilter function in moddeflate.c in the moddeflate module in the Apache HTTP Server before 2.4.10, when request body decompression is enabled, allows remote attackers to cause a denial of service (resource consumption) via crafted request data that decompresses to a much larger size.
The following flaw has been fixed in the Apache HTTP Server:
"A flaw was found in modcgid. If a server using modcgid hosted CGI scripts which did not consume standard input, a remote attacker could cause child processes to hang indefinitely, leading to denial of service."
External References:
http://httpd.apache.org/security/vulnerabilities24.html
Martin Holst Swende discovered a flaw in the way modheaders handled chunked requests. A remote attacker could use this flaw to bypass intended modheaders restrictions, allowing them to send requests to applications that include headers that should have been removed by modheaders.
Discussion and a possible patch is available from the following thread:
http://marc.info/?t=138219209900002&r=1&w=2
References:
http://martin.swende.se/blog/HTTPChunked.html
Common Vulnerabilities and Exposures assigned an identifier CVE-2013-6438 to the following vulnerability:
Name: CVE-2013-6438 URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-6438 Assigned: 20131104 Reference: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/dav/main/util.c Reference: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/dav/main/util.c?r1=1528718&r2=1556428&diffformat=h Reference: http://www.apache.org/dist/httpd/CHANGES2.4.9
The davxmlgetcdata function in main/util.c in the moddav module in the Apache HTTP Server before 2.4.8 does not properly remove whitespace characters from CDATA sections, which allows remote attackers to cause a denial of service (daemon crash) via a crafted DAV WRITE request.
Common Vulnerabilities and Exposures assigned an identifier CVE-2014-0098 to the following vulnerability:
Name: CVE-2014-0098 URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-0098 Assigned: 20131203 Reference: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/loggers/modlogconfig.c Reference: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/loggers/modlogconfig.c?r1=1575394&r2=1575400&diffformat=h Reference: http://www.apache.org/dist/httpd/CHANGES2.4.9
The logcookie function in modlogconfig.c in the modlogconfig module in the Apache HTTP Server before 2.4.8 allows remote attackers to cause a denial of service (segmentation fault and daemon crash) via a crafted cookie that is not properly handled during truncation.
Common Vulnerabilities and Exposures assigned an identifier CVE-2013-1896 to the following vulnerability:
moddav.c in the Apache HTTP Server before 2.2.25 does not properly determine whether DAV is enabled for a URI, which allows remote attackers to cause a denial of service (segmentation fault) via a MERGE request in which the URI is configured for handling by the moddavsvn module, but a certain href attribute in XML data refers to a non-DAV URI.
References: http://www.apache.org/dist/httpd/Announcement2.2.html http://svn.apache.org/viewvc?view=revision&revision=1485668
Common Vulnerabilities and Exposures assigned an identifier CVE-2012-4558 tothe following vulnerability:
Name: CVE-2012-4558 URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-4558 Assigned: 20120821 Reference: http://httpd.apache.org/security/vulnerabilities22.html Reference: http://httpd.apache.org/security/vulnerabilities24.html Reference: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/modproxybalancer.c?r1=1404653&r2=1413732&diffformat=h
Multiple cross-site scripting (XSS) vulnerabilities in the balancerhandler function in the manager interface in modproxybalancer.c in the modproxybalancer module in the Apache HTTP Server 2.2.x before 2.2.24-dev and 2.4.x before 2.4.4 allow remote attackers to inject arbitrary web script or HTML via a crafted string.
Common Vulnerabilities and Exposures assigned an identifier CVE-2012-3499 to the following vulnerability:
Name: CVE-2012-3499 URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-3499 Assigned: 20120614 Reference: http://httpd.apache.org/security/vulnerabilities22.html Reference: http://httpd.apache.org/security/vulnerabilities24.html Reference: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/generators/modinfo.c?r1=1225799&r2=1413732&diffformat=h Reference: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/generators/modstatus.c?r1=1389564&r2=1413732&diffformat=h Reference: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/utilldapcachemgr.c?r1=1209766&r2=1418752&diffformat=h Reference: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/modimagemap.c?r1=1398480&r2=1413732&diffformat=h Reference: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/modproxyftp.c?r1=1404625&r2=1413732&diffformat=h
Multiple cross-site scripting (XSS) vulnerabilities in the Apache HTTP Server 2.2.x before 2.2.24-dev and 2.4.x before 2.4.4 allow remote attackers to inject arbitrary web script or HTML via vectors involving hostnames and URIs in the (1) modimagemap, (2) modinfo, (3) modldap, (4) modproxyftp, and (5) modstatus modules.
The proxy functionality in (1) modproxyajp.c in the modproxyajp module and (2) modproxyhttp.c in the modproxyhttp module in the Apache HTTP Server 2.4.x before 2.4.3 does not properly determine the situations that require closing a back-end connection, which allows remote attackers to obtain sensitive information in opportunistic circumstances by reading a response that was intended for a different client.
envvars (aka envvars-std) in the Apache HTTP Server before 2.4.2 places a zero-length directory name in the LDLIBRARYPATH, which allows local users to gain privileges via a Trojan horse DSO in the current working directory during execution of apachectl.
Cross-site scripting (XSS) vulnerability in the modnegotiation module in the Apache HTTP Server 2.2.6 and earlier in the 2.2.x series, 2.0.61 and earlier in the 2.0.x series, and 1.3.39 and earlier in the 1.3.x series allows remote authenticated users to inject arbitrary web script or HTML by uploading a file with a name containing XSS sequences and a file extension, which leads to injection within a (1) "406 Not Acceptable" or (2) "300 Multiple Choices" HTTP response when the extension is omitted in a request for the file.