svn: /phpdoc/en/trunk/language/predefined/variables/ server.xml
| From: | Christoph Michael Becker | Date: | Mon, 20 Jun 2016 15:27:16 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/predefined/variables/ server.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-14217@lists.php.net to get a copy of this message | ||
cmb Mon, 20 Jun 2016 15:27:16 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=339426
Log:
Fix #64457: HTTP_HOST, SERVER_NAME, SERVER_PORT spoofing
Bug: https://bugs.php.net/64457 (Analyzed) HTTP_HOST,
SERVER_NAME, SERVER_PORT spoofing
Changed paths:
U phpdoc/en/trunk/language/predefined/variables/server.xml
Modified: phpdoc/en/trunk/language/predefined/variables/server.xml
===================================================================
--- phpdoc/en/trunk/language/predefined/variables/server.xml 2016-06-20 02:44:55 UTC (rev 339425)
+++ phpdoc/en/trunk/language/predefined/variables/server.xml 2016-06-20 15:27:16 UTC (rev 339426)
@@ -112,6 +112,14 @@
executing. If the script is running on a virtual host, this
will be the value defined for that virtual host.
</simpara>
+ <note>
+ <simpara>
+ Under Apache 2, you must set <literal>UseCanonicalName = On</literal>
+ and <literal>ServerName</literal>. Otherwise, this value reflects the
+ hostname supplied by the client, which can be spoofed.
+ It is not safe to rely on this value in security-dependent contexts.
+ </simpara>
+ </note>
</listitem>
</varlistentry>