diff options
| author | Ben Fuhrmannek | 2014-11-18 20:49:30 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2014-11-18 20:49:30 +0100 |
| commit | cc9ccec7297ebb1853e0fbca6ba9a686583e5a45 (patch) | |
| tree | fa8112e1d79d535715b82358492beb2ca173edf2 | |
| parent | 4f9e54ecca76a8fcfc0bb1bd5151c75103890b7a (diff) | |
Set default array index blacklist to '"+-<>;()
| -rw-r--r-- | Changelog | 1 | ||||
| -rw-r--r-- | suhosin.c | 2 | ||||
| -rw-r--r-- | suhosin.ini | 15 |
3 files changed, 14 insertions, 4 deletions
| @@ -15,6 +15,7 @@ | |||
| 15 | - Fixed potential NULL-pointer dereference with func.blacklist and logging | 15 | - Fixed potential NULL-pointer dereference with func.blacklist and logging |
| 16 | - Logging timestamps are localtime instead of gmt now (thanks to mkrokos) | 16 | - Logging timestamps are localtime instead of gmt now (thanks to mkrokos) |
| 17 | - Added new array index filter (character whitelist/blacklist) | 17 | - Added new array index filter (character whitelist/blacklist) |
| 18 | - Set default array index blacklist to '"+-<>;() | ||
| 18 | - Added option to suppress date/time for suhosin file logging (suhosin.log.file.time=0) | 19 | - Added option to suppress date/time for suhosin file logging (suhosin.log.file.time=0) |
| 19 | - Added simple script to create binary Debian package | 20 | - Added simple script to create binary Debian package |
| 20 | - Fixed additional recursion problems with session handler | 21 | - Fixed additional recursion problems with session handler |
| @@ -822,7 +822,7 @@ PHP_INI_BEGIN() | |||
| 822 | STD_PHP_INI_ENTRY("suhosin.request.max_totalname_length", "256", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateRequestLong, max_totalname_length, zend_suhosin_globals, suhosin_globals) | 822 | STD_PHP_INI_ENTRY("suhosin.request.max_totalname_length", "256", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateRequestLong, max_totalname_length, zend_suhosin_globals, suhosin_globals) |
| 823 | STD_PHP_INI_ENTRY("suhosin.request.max_array_index_length", "64", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateRequestLong, max_array_index_length, zend_suhosin_globals, suhosin_globals) | 823 | STD_PHP_INI_ENTRY("suhosin.request.max_array_index_length", "64", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateRequestLong, max_array_index_length, zend_suhosin_globals, suhosin_globals) |
| 824 | STD_PHP_INI_ENTRY("suhosin.request.array_index_whitelist", "", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateString, array_index_whitelist, zend_suhosin_globals, suhosin_globals) | 824 | STD_PHP_INI_ENTRY("suhosin.request.array_index_whitelist", "", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateString, array_index_whitelist, zend_suhosin_globals, suhosin_globals) |
| 825 | STD_PHP_INI_ENTRY("suhosin.request.array_index_blacklist", "", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateString, array_index_blacklist, zend_suhosin_globals, suhosin_globals) | 825 | STD_PHP_INI_ENTRY("suhosin.request.array_index_blacklist", "'\"+-<>;()", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateString, array_index_blacklist, zend_suhosin_globals, suhosin_globals) |
| 826 | STD_PHP_INI_ENTRY("suhosin.request.disallow_nul", "1", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateRequestBool, disallow_nul, zend_suhosin_globals, suhosin_globals) | 826 | STD_PHP_INI_ENTRY("suhosin.request.disallow_nul", "1", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateRequestBool, disallow_nul, zend_suhosin_globals, suhosin_globals) |
| 827 | STD_PHP_INI_ENTRY("suhosin.request.disallow_ws", "0", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateRequestBool, disallow_ws, zend_suhosin_globals, suhosin_globals) | 827 | STD_PHP_INI_ENTRY("suhosin.request.disallow_ws", "0", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateRequestBool, disallow_ws, zend_suhosin_globals, suhosin_globals) |
| 828 | 828 | ||
diff --git a/suhosin.ini b/suhosin.ini index 6887c09..f844b9e 100644 --- a/suhosin.ini +++ b/suhosin.ini | |||
| @@ -338,6 +338,8 @@ | |||
| 338 | ; specify the beginning of allowed URLs. (f.e.: php://stdin) If no whitelist is | 338 | ; specify the beginning of allowed URLs. (f.e.: php://stdin) If no whitelist is |
| 339 | ; specified, then the blacklist is evaluated. | 339 | ; specified, then the blacklist is evaluated. |
| 340 | ; | 340 | ; |
| 341 | ; Note: This setting deactivates suhosin.executor.include.blacklist. | ||
| 342 | ; | ||
| 341 | ;suhosin.executor.include.whitelist = | 343 | ;suhosin.executor.include.whitelist = |
| 342 | ; | 344 | ; |
| 343 | 345 | ||
| @@ -377,6 +379,8 @@ | |||
| 377 | ; whitelist is empty the blacklist is evaluated, otherwise calling a function not | 379 | ; whitelist is empty the blacklist is evaluated, otherwise calling a function not |
| 378 | ; in the whitelist will terminate the script and get logged. | 380 | ; in the whitelist will terminate the script and get logged. |
| 379 | ; | 381 | ; |
| 382 | ; Note: This setting deactivates suhosin.executor.func.blacklist. | ||
| 383 | ; | ||
| 380 | ;suhosin.executor.func.whitelist = | 384 | ;suhosin.executor.func.whitelist = |
| 381 | ; | 385 | ; |
| 382 | 386 | ||
| @@ -402,6 +406,8 @@ | |||
| 402 | ; calling a function not in the whitelist will terminate the script and get | 406 | ; calling a function not in the whitelist will terminate the script and get |
| 403 | ; logged. Please read the instructions carefully. | 407 | ; logged. Please read the instructions carefully. |
| 404 | ; | 408 | ; |
| 409 | ; Note: This setting deactivates suhosin.executor.eval.blacklist. | ||
| 410 | ; | ||
| 405 | ;suhosin.executor.eval.whitelist = | 411 | ;suhosin.executor.eval.whitelist = |
| 406 | ; | 412 | ; |
| 407 | 413 | ||
| @@ -901,6 +907,8 @@ | |||
| 901 | ; In case some cookies should not be encrypted this is a comma separated list of | 907 | ; In case some cookies should not be encrypted this is a comma separated list of |
| 902 | ; cookies that do not get encrypted. All other cookies will be encrypted. | 908 | ; cookies that do not get encrypted. All other cookies will be encrypted. |
| 903 | ; | 909 | ; |
| 910 | ; Note: This setting deactivates suhosin.cookie.cryptlist. | ||
| 911 | ; | ||
| 904 | ;suhosin.cookie.plainlist = | 912 | ;suhosin.cookie.plainlist = |
| 905 | ; | 913 | ; |
| 906 | 914 | ||
| @@ -1197,12 +1205,11 @@ | |||
| 1197 | ; suhosin.request.array_index_blacklist | 1205 | ; suhosin.request.array_index_blacklist |
| 1198 | ; ------------------------------------- | 1206 | ; ------------------------------------- |
| 1199 | ; * Type: String | 1207 | ; * Type: String |
| 1200 | ; * Default: | 1208 | ; * Default: "'\"+-<>;()" |
| 1201 | ; * Example: ";-+" | ||
| 1202 | ; | 1209 | ; |
| 1203 | ; Defines a character blacklist for array indices not allowed in user input. | 1210 | ; Defines a character blacklist for array indices not allowed in user input. |
| 1204 | ; | 1211 | ; |
| 1205 | ;suhosin.request.array_index_blacklist = | 1212 | ;suhosin.request.array_index_blacklist = "'\"+-<>;()" |
| 1206 | ; | 1213 | ; |
| 1207 | 1214 | ||
| 1208 | ; suhosin.request.array_index_whitelist | 1215 | ; suhosin.request.array_index_whitelist |
| @@ -1213,6 +1220,8 @@ | |||
| 1213 | ; | 1220 | ; |
| 1214 | ; Defines a character whitelist for array indices allowed in user input. | 1221 | ; Defines a character whitelist for array indices allowed in user input. |
| 1215 | ; | 1222 | ; |
| 1223 | ; Note: This setting deactivates suhosin.request.array_index_blacklist. | ||
| 1224 | ; | ||
| 1216 | ;suhosin.request.array_index_whitelist = | 1225 | ;suhosin.request.array_index_whitelist = |
| 1217 | ; | 1226 | ; |
| 1218 | 1227 | ||
