Additional problems were discovered in the httpd fix for CVE-2011-3368 - a reverse proxy bypass flaw - tracked via bug #740045. Upstream mailing list post identifies following request forms, which are not handled correctly:
GET @localhost::8880 HTTP/1.0\r\n\r\n GET qualys:@qqq.qq.qualys.com HTTP/1.0\r\n\r\n
Reference: http://thread.gmane.org/gmane.comp.apache.devel/46440
SUSE reported that upstream patch for CVE-2011-3368 (bug #740045), when applied to httpd versions before 2.2.18, does not completely address the issue, when attacker sends HTTP 0.9 requests::
https://bugzilla.novell.com/showbug.cgi?id=722545#c15 http://thread.gmane.org/gmane.comp.apache.devel/45978 http://thread.gmane.org/gmane.comp.security.oss.general/6102
The fix has been created upstream and committed to trunk:
http://thread.gmane.org/gmane.comp.apache.devel/45978/focus=45979 http://svn.apache.org/viewvc?view=revision&revision=1188745
Upstream also confirmed this additional fix is not required for httpd versions 2.2.18 and later:
http://thread.gmane.org/gmane.comp.apache.devel/45978/focus=45983 http://thread.gmane.org/gmane.comp.apache.devel/45978/focus=45985
Integer overflow in the appregsub function in server/util.c in the Apache HTTP Server 2.0.x through 2.0.64 and 2.2.x through 2.2.21, when the modsetenvif module is enabled, allows local users to gain privileges via a .htaccess file with a crafted SetEnvIf directive, in conjunction with a crafted HTTP request header, leading to a heap-based buffer overflow.
RMDG partner and independent security consultancy, "Context Information Security" has made CPNI Response aware of a security vulnerability which could potentially allow an attacker to gain full internal access to a network from the internet.
The technique exploits insecurely configured reverse web proxies to gain access to internal/DMZ systems.
This attack is based on an Apache web server which is using "modrewrite" to proxy web requests internally. Other proxies may suffer from this issue.
The vulnerability occurs if the Apache configuration file is configured like this:
RewriteRule ^(.) http://internalserver:80$1 [P]
As opposed to:
RewriteRule ^(.) http://internalserver:80/$1 [P]
It is important for readers to review their reverse proxy configurations to ensure that the rewrite rules are securely configured and cannot be abused in such a way that they can be used to compromise internal systems.
Apache Portable Runtime (APR) is vulnerable to a denial of service, caused by an error in the aprfnmatch() function when processing specific patterns with the "" wildcard. A remote attacker could exploit this vulnerability to consume all available CPU and memory resources resulting in a denial of service.
Common Vulnerabilities and Exposures assigned an identifier CVE-2010-1623 to the following vulnerability:
The aprbrigadesplitline function in buckets/aprbrigade.c in the Apache Portable Runtime Utility library (aka APR-util) before 1.3.10, as used in the modreqtimeout module in the Apache HTTP Server and other software, allows remote attackers to cause a denial of service (memory consumption) via unspecified vectors.
References: [1] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-1623 [2] http://security-tracker.debian.org/tracker/CVE-2010-1623 [3] http://svn.apache.org/viewvc?view=revision&revision=1003492 [4] http://svn.apache.org/viewvc?view=revision&revision=1003493 [5] http://svn.apache.org/viewvc?view=revision&revision=1003494 [6] http://svn.apache.org/viewvc?view=revision&revision=1003495 [7] http://svn.apache.org/viewvc?view=revision&revision=1003626 [8] http://www.apache.org/dist/apr/CHANGES-APR-UTIL-1.3 [9] http://www.mandriva.com/security/advisories?name=MDVSA-2010:192 [10] http://www.securityfocus.com/bid/43673 [11] http://secunia.com/advisories/41701 [12] http://www.vupen.com/english/advisories/2010/2556 [13] http://www.vupen.com/english/advisories/2010/2557
Apache Software Foundation assigned an identifier CVE-2010-1452 to the following vulnerability:
A flaw was found in the handling of requests by modcache and moddav. A malicious remote attacker could send a carefully crafted request and cause a httpd child process to crash. This crash would only be a denial of service if using the worker MPM. This issue is further mitigated as moddav is only affected by requests that are most likely to be authenticated, and modcache is only affected if the uncommon CacheIgnoreURLSessionIdentifiers" directive, introduced in version 2.2.14, is used.
References: [1] http://httpd.apache.org/security/vulnerabilities22.html
Upstream bug report: [2] https://issues.apache.org/bugzilla/showbug.cgi?id=49246
Upstream patch: [3] http://svn.apache.org/viewvc?view=revision&revision=966349
Credit: Mark Drayton
More reproducer details from [2]: (https://issues.apache.org/bugzilla/showbug.cgi?id=49246#c0)
When configured with a virtual host, caching and a non-empty CacheIgnoreURLSessionIdentifiers parameter httpd segfaults on requests with no path. Configuration:
NameVirtualHost :80 <VirtualHost :80> ServerName www.example.com CacheEnable disk / CacheRoot /tmp/cache-root CacheDefaultExpire 86400 CacheIgnoreURLSessionIdentifiers cachebuster </VirtualHost>
Test:
host:~ tail -0f logs/errorlog & [1] 7637 host:~ (echo "GET http://www.example.com HTTP/1.0"; echo) | nc localhost 80 [Tue May 04 14:12:47 2010] [notice] child pid 7617 exit signal Segmentation fault (11)
Quoting httpd 2.2 security page: http://httpd.apache.org/security/vulnerabilities22.html#2.2.15
low: Request header information leak CVE-2010-0434
A bug in the handling of headers in subrequests could lead to a reuse of memory. In a multithreaded MPM this could possibly cause an information leak from other requests being handled by a different thread.
Affects: 2.2.0 - 2.2.14
Upstream bug: https://issues.apache.org/bugzilla/showbug.cgi?id=48359
Upstream commits (2.2.x branch): http://svn.apache.org/viewvc?view=revision&revision=917867 http://svn.apache.org/viewvc?view=revision&revision=918427
Expat is vulnerable to a denial of service, caused by the improper handling of XML data by the big2toUtf8 function within the libexpat library. A remote attacker could exploit this vulnerability using a specially-crafted XML document containing malformed UTF-8 sequences that trigger a buffer over-read to cause the application to crash.
The modproxyftp module in the Apache HTTP Server allows remote attackers to bypass intended access restrictions and send arbitrary commands to an FTP server via vectors related to the embedding of these commands in the Authorization HTTP header, as demonstrated by a certain module in VulnDisco Pack Professional 8.11. NOTE: as of 20090903, this disclosure has no actionable information. However, because the VulnDisco Pack author is a reliable researcher, the issue is being assigned a CVE identifier for tracking purposes.
References: http://intevydis.com/vd-list.shtml
Peter Valchev discovered a flaw in the way expat handled malformed UTF-8 sequences when processing XML files. Incorrect UTF-8 sequenced could cause expat to fail to properly detect end of input and continue reading behind the end of input buffer. This results in a crash once reading reaches unmapped memory.
Non-public upstream bug report: http://sourceforge.net/tracker/?func=detail&aid=1990430&groupid=10127&atid=110127
Contents of the report leaked via expat-bugs mailing list posts: http://mail.python.org/pipermail/expat-bugs/2009-January/002781.html
Upstream patch: http://expat.cvs.sourceforge.net/viewvc/expat/expat/lib/xmltokimpl.c?r1=1.13&r2=1.15
References: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551936 https://bugs.gentoo.org/showbug.cgi?id=280615
Common Vulnerabilities and Exposures assigned an identifier CVE-2008-2364 to the following vulnerability:
The approxyhttpprocessresponse function in modproxyhttp.c in the modproxy module in the Apache HTTP Server 2.0.63 and 2.2.8 does not limit the number of forwarded interim responses, which allows remote HTTP servers to cause a denial of service (memory consumption) via a large number of interim responses.
Fixed upstream in: 2.2.9 http://www.apache.org/dist/httpd/CHANGES2.2.9
Upsteam patch in 2.2.x branch: http://svn.apache.org/viewvc?view=rev&revision=666154
Other references: http://www.securityfocus.com/bid/29653 http://www.frsirt.com/english/advisories/2008/1798 http://secunia.com/advisories/30621 http://xforce.iss.net/xforce/xfdb/42987
Cross-site scripting (XSS) vulnerability in Apache 2.2.6 and earlier allows remote attackers to inject arbitrary web script or HTML via UTF-7 encoded URLs that are not properly handled when displaying the 403 Forbidden error page.
According to this Apache httpd commit: http://marc.info/?l=apache-cvs&m=119930222400965&w=2
+ ) Add explicit charset to the output of various modules to work around + possible cross-site scripting flaws affecting web browsers that do not + derive the response character set as required by RFC2616. One of these + reported by SecurityReason [Joe Orton]
Only modproxyftp seems to have security implications.
Common Vulnerabilities and Exposures assigned an identifier CVE-2007-6388 to the following vulnerability:
RESERVED This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.
References:
Cross-site scripting (XSS) vulnerability in the (1) modimap module in the Apache HTTP Server 1.3.0 through 1.3.39 and 2.0.35 through 2.0.61 and the (2) modimagemap module in the Apache HTTP Server 2.2.0 through 2.2.6 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors.
Cross-site scripting (XSS) vulnerability in modautoindex.c in the Apache HTTP Server before 2.2.6, when the charset on a server-generated page is not defined, allows remote attackers to inject arbitrary web script or HTML via the P parameter using the UTF-7 charset. NOTE: it could be argued that this issue is due to a design limitation of browsers that attempt to perform automatic content type detection.
A buffer "over-read" flaw was found in Apache httpd used for caching. This allows a malicious origin server to possibly cause a process crash on a caching forward proxy, which is a DoS for a threaded MPM on httpd 2.0+
On httpd 1.3 this would cause a client crash but this is not considered a security issue as httpd would continue to run and spawn new children as required.
http://marc.info/?l=apache-httpd-dev&m=118595556504202&w=2
Format string vulnerability in the modtcl module 1.0 for Apache 2.x allows context-dependent attackers to execute arbitrary code via format string specifiers that are not properly handled in a setvar function call in (1) tclcmds.c and (2) tclcore.c.
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.
Common Vulnerabilities and Exposures assigned an identifier CVE-2005-3352 to the following vulnerability:
Cross-site scripting (XSS) vulnerability in the modimap module of Apache httpd before 1.3.35-dev and Apache httpd 2.0.x before 2.0.56-dev allows remote attackers to inject arbitrary web script or HTML via the Referer when using image maps.
References:
http://issues.apache.org/bugzilla/showbug.cgi?id=37874 http://www-1.ibm.com/support/search.wss?rs=0&q=PK16139&apar=only http://www-1.ibm.com/support/search.wss?rs=0&q=PK25355&apar=only http://www.debian.org/security/2006/dsa-1167 http://www.redhat.com/archives/fedora-announce-list/2006-January/msg00060.html http://www.securityfocus.com/archive/1/archive/1/425399/100/0/threaded http://www.gentoo.org/security/en/glsa/glsa-200602-03.xml http://www.securityfocus.com/archive/1/archive/1/445206/100/0/threaded http://www.securityfocus.com/archive/1/archive/1/445206/100/0/threaded http://www.securityfocus.com/archive/1/archive/1/450321/100/0/threaded http://www.securityfocus.com/archive/1/archive/1/450315/100/0/threaded http://www.securityfocus.com/archive/1/archive/1/450321/100/0/threaded http://www.securityfocus.com/archive/1/archive/1/450315/100/0/threaded http://wwwnew.mandriva.com/security/advisories?name=MDKSA-2006:007 http://www.openpkg.org/security/OpenPKG-SA-2005.029-apache.txt http://rhn.redhat.com/errata/RHSA-2006-0159.html http://www.redhat.com/support/errata/RHSA-2006-0158.html http://rhn.redhat.com/errata/RHSA-2006-0692.html ftp://patches.sgi.com/support/free/security/advisories/20060101-01-U http://slackware.com/security/viewer.php?l=slackware-security&y=2006&m=slackware-security.685483 http://slackware.com/security/viewer.php?l=slackware-security&y=2006&m=slackware-security.470158 http://sunsolve.sun.com/search/document.do?assetkey=1-26-102662-1 http://sunsolve.sun.com/search/document.do?assetkey=1-26-102663-1 http://lists.suse.de/archive/suse-security-announce/2006-Feb/0008.html http://www.novell.com/linux/security/advisories/200643apache.html http://lists.suse.com/archive/suse-security-announce/2007-May/0005.html http://www.trustix.org/errata/2005/0074/ http://www.ubuntulinux.org/usn/usn-241-1 http://www.securityfocus.com/bid/15834 http://www.frsirt.com/english/advisories/2005/2870 http://www.frsirt.com/english/advisories/2006/2423 http://www.frsirt.com/english/advisories/2006/3995 http://www.frsirt.com/english/advisories/2006/4015 http://www.frsirt.com/english/advisories/2006/4300 http://www.frsirt.com/english/advisories/2006/4868 http://securitytracker.com/id?1015344 http://secunia.com/advisories/18008 http://secunia.com/advisories/18333 http://secunia.com/advisories/18339 http://secunia.com/advisories/18340 http://secunia.com/advisories/18429 http://secunia.com/advisories/18585 http://secunia.com/advisories/18517 http://secunia.com/advisories/18743 http://secunia.com/advisories/17319 http://secunia.com/advisories/18526 http://secunia.com/advisories/19012 http://secunia.com/advisories/20670 http://secunia.com/advisories/21744 http://secunia.com/advisories/22140 http://secunia.com/advisories/22368 http://secunia.com/advisories/22388 http://secunia.com/advisories/22669 http://secunia.com/advisories/23260 http://secunia.com/advisories/20046 http://secunia.com/advisories/25239
The byte-range filter in Apache 2.0 before 2.0.54 allows remote attackers to cause a denial of service (memory consumption) via an HTTP header with a large Range field.
Off-by-one error in the modssl Certificate Revocation List (CRL) verification callback in Apache, when configured to use a CRL, allows remote attackers to cause a denial of service (child process crash) via a CRL that causes a buffer overflow of one null byte.
The Apache HTTP server before 1.3.34, and 2.0.x before 2.0.55, when acting as an HTTP proxy, allows remote attackers to poison the web cache, bypass web application firewall protection, and conduct XSS attacks via an HTTP request with both a "Transfer-Encoding: chunked" header and a Content-Length header, which causes Apache to incorrectly handle and forward the body of the request in a way that causes the receiving server to process it as a separate HTTP request, aka "HTTP Request Smuggling."
The IPv6 URI parsing routines in the apr-util library for Apache 2.0.50 and earlier allow remote attackers to cause a denial of service (child process crash) via a certain URI, as demonstrated using the Codenomicon HTTP Test Tool.
The moddav module in Apache 2.0.50 and earlier allows remote attackers to cause a denial of service (child process crash) via a certain sequence of LOCK requests for a location that allows WebDAV authoring access.
modssl in Apache 2.0.50 and earlier allows remote attackers to cause a denial of service (CPU consumption) by aborting an SSL connection in a way that causes an Apache child process to enter an infinite loop.
PHP 4.3.4 and earlier in Apache 1.x and 2.x (modphp) can leak global variables between virtual hosts that are handled by the same Apache child process but have different settings, which could allow remote attackers to obtain sensitive information.
Memory leak in sslengineio.c for modssl in Apache 2 before 2.0.49 allows remote attackers to cause a denial of service (memory consumption) via plain HTTP requests to the SSL port of an SSL-enabled server.
DISPUTED The modphp module for the Apache HTTP Server allows local users with write access to PHP scripts to send signals to the server's process group and use the server's file descriptors, as demonstrated by sending a STOP signal, then intercepting incoming connections on the server's TCP port. NOTE: the PHP developer has disputed this vulnerability, saying "The opened file descriptors are opened by Apache. It is the job of Apache to protect them ... Not a bug in PHP."