]> granicus.if.org Git - php/commitdiff
Added max_input_vars directive to prevent attacks based on hash collisions
authorDmitry Stogov <dmitry@php.net>
Thu, 15 Dec 2011 10:31:02 +0000 (10:31 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 15 Dec 2011 10:31:02 +0000 (10:31 +0000)
UPGRADING
php.ini-development
php.ini-production

index f4b56b1c2a714eded8804e61209b78752eba47fb..f8bfa829e71b8b4ed1667f58550242a3de7cd906 100755 (executable)
--- a/UPGRADING
+++ b/UPGRADING
@@ -82,6 +82,11 @@ UPGRADE NOTES - PHP X.Y
   - safe_mode_protected_env_vars
   - zend.ze1_compatibility_mode
 
+- the following new directives were added
+
+  - max_input_vars - specifies how many GET/POST/COOKIE input variables may be
+    accepted. default value 1000. 
+
 =============================
 2. Reserved words and classes
 =============================
index e970570460657b8b756ebc0ed01a0fdf81a62cfe..e6a0f6dcc113ea2c1ef836ff4eb860948acd73f3 100644 (file)
@@ -397,6 +397,9 @@ max_input_time = 60
 ; http://php.net/max-input-nesting-level
 ;max_input_nesting_level = 64
 
+; How many GET/POST/COOKIE input variables may be accepted
+; max_input_vars = 1000
+
 ; Maximum amount of memory a script may consume (128MB)
 ; http://php.net/memory-limit
 memory_limit = 128M
index 11cb31c437b775d42f388487f225a9e79c6e2f19..5a1052fcfea9479bfe4cc28ae4d3be7efc96f02d 100644 (file)
@@ -397,6 +397,9 @@ max_input_time = 60
 ; http://php.net/max-input-nesting-level
 ;max_input_nesting_level = 64
 
+; How many GET/POST/COOKIE input variables may be accepted
+; max_input_vars = 1000
+
 ; Maximum amount of memory a script may consume (128MB)
 ; http://php.net/memory-limit
 memory_limit = 128M