1
0
Fork 0
mirror of https://github.com/apache/httpd.git synced 2026-12-03 15:14:37 +00:00
Mirror of Apache HTTP Server. Issues: http://issues.apache.org https://httpd.apache.org
  • C 78.7%
  • Python 16.8%
  • Shell 1.2%
  • M4 0.9%
  • CMake 0.4%
  • Other 1.7%
Find a file
Paul 01aaa16344
proxy test: Cover hcexpr, 100-continue, XSS escaping, wstunnel, AJP TE and CRLF smuggling (#1152)
* proxy test: Cover hcexpr, 100-continue, XSS escaping, wstunnel, AJP TE and CRLF smuggling

Adding various tests ProxyHCExpri condition test in test_09,
an Expect: 100-continue test in test_06, balancer-manager
and (moved to the generators module) server-info

Host-header escaping, an AJP Transfer-Encoding smuggling test in
test_04, and encoded-CRLF no-smuggling through RewriteRule [P],
ProxyPassMatch nocanon and LocationMatch in test_11.

* proxy test: Address review of 011 CRLF and 13 wstunnel tests

test_proxy_011_04 asserted no-smuggling on an empty backend capture:
RewriteRule [P] matches the decoded URI, so the rewritten query string
holds decoded control characters, which mod_rewrite rejects with 403
(AH10410) before the request is forwarded. Assertng the 403 and that
nothing reaches the backend, and made the 011_05/011_06 asserts more
meaningful by asserting the backend received exactly one request
with the CRLFs still percent-encoded.

test_proxy_13_01 never reached mod_proxy_wstunnel: with proxy_http
loaded, ProxyWebsocketFallbackToProxyHttp defaults to On so
mod_proxy_wstunnel declines, and mod_proxy_http only tunnels after a
101 response, which the fake backend never sends. Test rewritten to
test what it actually exercised -- both pipelined requests answer
when the backend does not upgrade, with the Upgrade headers forwarded.

Add a new test: test_proxy_13_02 with the fallback Off to pin
mod_proxy_wstunnel behavior: with  a verbatim relay, no response for a
pipelined request behind the tunnel, and the client connection closed
once the backend hangs up.

* proxy test: Follow-up review fixes for 011 CRLF and 13 wstunnel tests

011_05/011_06: the percent-encoded CRLF check is now
case-insensitive; curl re-encodes the URI with upper-case hex on some
platforms, so the lower-case assert never matched there.

011_04: assert the AH10410 rejection is actually logged, so the 403
is pinned to the query-string check and not just to any 403.

13_02: the tunnel backend now keeps reading after answering, until
the pipelined request arrives (or the connection ends), and asserts
it was forwarded into the tunnel to the same backend -- proving the
swallow instead of only checking the client saw no second response.
Draining before the close also keeps the FIN clean; closing with
unread data can surface as a reset and lose the response in flight.
TCPFaker grows an overridable _handle_connection() hook for this.


Co-authored-by: Claude Code <noreply@anthropic.com>
2026-12-03 14:39:54 +01:00
.github * .github/workflows/linux.yml: Update to OpenSSL 3.5.10, 4.0.4 and 2026-12-01 21:38:06 +00:00
build build: Run check-pytest inside the uv-managed test venv: (#968) 2026-11-08 11:39:41 +00:00
changes-entries mod_http3: Select an IP-based virtual host by the destination address (#1070) 2026-12-02 10:23:47 +01:00
docs * docs/log-message-tags/next-number: Steal two numbers. 2026-12-02 07:53:21 +00:00
include Document that destroying a suspended connection's c->pool keeps its ptrans 2026-11-30 09:04:15 -05:00
modules Fix a minor leak in the failure cases where certificates could 2026-12-02 12:05:35 +00:00
os * os/unix/config.m4: Move check for rlim_t here and use AC_CHECK_TYPE. 2026-08-28 13:33:07 +00:00
server core: Fix ListenCoresBucketsRatio losing IPv6 on duplicated listeners (#1042) 2026-11-30 18:14:33 +01:00
srclib remove leftovers from initial libapreq import 2011-11-13 00:21:15 +00:00
support htdbm: Fix NULL pointer dereferences on conflicting options (#912) 2026-11-17 14:55:33 +01:00
test proxy test: Cover hcexpr, 100-continue, XSS escaping, wstunnel, AJP TE and CRLF smuggling (#1152) 2026-12-03 14:39:54 +01:00
.asf.yaml stage docs publishing change (#886) 2026-11-23 15:22:47 +01:00
.gdbinit * .gdbinit (dump_bucket_ex): Use a string comparison with the bucket 2023-01-09 10:09:46 +00:00
.gitignore ignore /dist/ 2026-10-17 17:54:18 +00:00
.gitleaks.toml * .gitleaks.toml: Add gitleaks allowlist to prevent false 2026-08-26 07:01:21 +00:00
ABOUT_APACHE Trigger ci. 2024-01-16 17:10:31 +00:00
acinclude.m4 * acinclude.m4, configure.in, include/ap_config.h: Remove traces 2026-11-04 22:35:52 +00:00
AGENTS.md test: load mod_proxy_ajp, mod_proxy_uwsgi and mod_proxy_fcgi as optional modules (#1101) 2026-11-27 14:44:14 -05:00
ap.d Import the core parts of the DTrace patch. This is a modified and updated 2008-12-05 03:34:52 +00:00
Apache-apr2.dsw Remove mod_dav_lock, which was useful only to provide drop-in 2026-05-15 10:31:10 +00:00
Apache.dsw Remove mod_dav_lock, which was useful only to provide drop-in 2026-05-15 10:31:10 +00:00
apache_probes.d catch up on recently-added hooks 2009-12-18 15:29:55 +00:00
BuildAll.dsp Add modules/examples/, and a new BuildAll dummy stub. 2007-08-24 02:07:46 +00:00
BuildBin.dsp Windows bits for mod_log_json.dsp 2020-05-13 10:43:05 +00:00
buildconf * buildconf: Remove the autoconf version check, which warned about 2026-08-28 13:34:31 +00:00
CHANGES mpm_motorz: account for extra connections accepted outside the MPM 2026-10-23 17:03:22 +00:00
CMakeLists.txt mod_http3: run the QUIC transport on ngtcp2 (#951) 2026-11-14 09:26:37 +01:00
config.layout A server layout for NetBSD's pkgsrc default settings 2023-03-02 14:37:20 +00:00
configure.in * configure.in: Require APR 1.6 in the compile-time version check, 2026-11-17 08:18:51 +00:00
emacs-style Don't use tabs. 2003-12-29 12:59:02 +00:00
httpd-trunk.md Align w/ subversion references rather than using the git ro versions 2026-06-08 19:11:31 +00:00
httpd.dsp Windows manifests are ;1 for .exe, ;2 for .dll and .so - ref: http://msdn.microsoft.com/en-us/library/ms235591.aspx 2008-06-11 16:34:20 +00:00
INSTALL Add git commands for apr checkout to INSTALL 2025-02-14 16:03:33 +00:00
InstallBin.dsp Mirror r483555, for GUI environment. Reason for the duplication is to make 2006-12-07 17:47:43 +00:00
LAYOUT Fix obvious errors. Probably the rest of the 2014-07-23 20:00:50 +00:00
libhttpd.dsp *) core/mod_http/mod_http2: 2022-04-04 08:24:09 +00:00
LICENSE Synch with trunk. 2021-07-28 09:00:44 +00:00
Makefile.in build: Run check-pytest inside the uv-managed test venv: (#968) 2026-11-08 11:39:41 +00:00
Makefile.win Remove apreq from trunk per PMC vote: 2026-04-23 16:08:21 +00:00
NOTICE Happy New Year 2026 - part 2 2026-01-04 15:14:52 +00:00
NWGNUmakefile Remove apreq from trunk per PMC vote: 2026-04-23 16:08:21 +00:00
README Remove the outdated "most popular" language. 2026-06-17 21:04:18 +00:00
README.CHANGES * README.CHANGES: Emphasize conciseness, avoid LLM verbiage. 2026-10-18 09:28:44 +00:00
README.cmake Remove awk dependency when building using CMake. Before this awk was required 2024-07-20 16:18:18 +00:00
README.md * Create README.md as symlink to README for better Github rendering [skip ci] 2024-01-25 07:09:28 +00:00
README.platforms Make up-to-date 2014-08-27 16:37:24 +00:00
ROADMAP Fix spelling errors found by codespell. [skip ci] 2020-02-13 18:15:57 +00:00
SECURITY.md * SECURITY.md: Note non-linear costs of XML processing in mod_dav; 2026-11-17 19:18:29 +00:00
STATUS * STATUS: note that mod_autht_jwt is ifdef'ed away to nothing since 2026-11-16 21:31:59 +00:00
VERSIONING Fix spelling errors found by codespell. [skip ci] 2020-02-13 18:15:57 +00:00

Apache HTTP Server

What is it?

The Apache HTTP Server is a powerful, flexible, HTTP/1.1 and HTTP/2 compliant, and widely deployed web server. Originally designed as a replacement for the NCSA HTTP Server, it has been in continuous development since 1995 and remains one of the foundational projects of the Apache Software Foundation. The developers aim to collaboratively develop and maintain a robust, commercial-grade, standards-based server with freely available source code.

The Latest Version

Details of the latest version can be found on the Apache HTTP server project page.

Documentation

The documentation available as of the date of this release is included in HTML format in the docs/manual/ directory. The most up-to-date documentation can be found at https://httpd.apache.org/docs/trunk/.

Installation

Please see the file called INSTALL. Platform specific notes can be found in README.platforms.

Licensing

Please see the file called LICENSE.

Cryptographic Software Notice

This distribution may include software that has been designed for use with cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See https://www.wassenaar.org/ for more information.

The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.

The following provides more details on the included files that may be subject to export controls on cryptographic software:

Apache httpd 2.0 and later versions include the mod_ssl module under modules/ssl/ for configuring and listening to connections over SSL encrypted network sockets by performing calls to a general-purpose encryption library, such as OpenSSL or the operating system's platform-specific SSL facilities.

In addition, some versions of apr-util provide an abstract interface for symmetrical cryptographic functions that make use of a general-purpose encryption library, such as OpenSSL, NSS, or the operating system's platform-specific facilities. This interface is known as the apr_crypto interface, with implementation beneath the /crypto directory. The apr_crypto interface is used by the mod_session_crypto module available under modules/session for optional encryption of session information.

Some object code distributions of Apache httpd, indicated with the word "crypto" in the package name, may include object code for the OpenSSL encryption library as distributed in open source form from https://www.openssl.org/source/.

The above files are optional and may be removed if the cryptographic functionality is not desired or needs to be excluded from redistribution. Distribution packages of Apache httpd that include the word "nossl" in the package name have been created without the above files and are therefore not subject to this notice.

Contacts