Skip to content
This repository was archived by the owner on Aug 6, 2021. It is now read-only.

Commit b11fc4f

Browse files
author
Michael Schams
committed
[TASK] Explain 'trustedHostsPattern' configuration option
This patch adds a section to the Security Guide which explains the configuration option 'trustedHostsPattern'. See security bulletin TYPO3-CORE-SA-2014-001. Chapter: Guidelines for Integrators -> Global TYPO3 configuration options Resolves: #59030 Reviewed-by: Helmut Hummel
1 parent b5f2150 commit b11fc4f

File tree

1 file changed

+29
-0
lines changed
  • Documentation/GuidelinesIntegrators/GlobalTypo3Options

1 file changed

+29
-0
lines changed

Documentation/GuidelinesIntegrators/GlobalTypo3Options/Index.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,35 @@ default value is an empty value which reflects "0".
268268
The PHP variable reads: $TYPO3\_CONF\_VARS['FE']['noPHPscriptInclude']
269269

270270

271+
.. _trustedHostsPattern:
272+
273+
trustedHostsPattern
274+
"""""""""""""""""""
275+
276+
TYPO3 uses the HTTP header "Host:" to generate absolute URLs in several
277+
places such as 404 handling, http(s) enforcement, password reset links
278+
and many more. Since the host header itself is provided by the client,
279+
it can be forged to any value, even in a name based virtual hosts
280+
environment.
281+
282+
The "trustedHostsPattern" configuration option can contain either the
283+
value *SERVER_NAME* or a regular expression pattern that matches all
284+
host names that are considered trustworthy for the particular TYPO3
285+
installation. "SERVER_NAME" is the default value and with this option
286+
value in effect, TYPO3 checks the currently submitted host-header
287+
against the SERVER_NAME variable. Please see security bulletin
288+
`TYPO3-CORE-SA-2014-001 <http://typo3.org/teams/security/security-bulletins/typo3-core/typo3-core-sa-2014-001/>`_
289+
for further details about specific setups.
290+
291+
If the "Host:" header also contains a non-standard port, the
292+
configuration must include this value, too. This is especially important
293+
for the default value "SERVER_NAME" as provided ports are checked
294+
against SERVER_PORT which fails in some more complex load balancing
295+
or SSL termination scenarios.
296+
297+
The PHP variable reads: $TYPO3\_CONF\_VARS['SYS']['trustedHostsPattern']
298+
299+
271300
.. _warningemailaddr:
272301

273302
warning_email_addr

0 commit comments

Comments
 (0)