summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--doc/source/features.rst12
2 files changed, 12 insertions, 1 deletions
diff --git a/README.md b/README.md
index 115cd20..899a289 100644
--- a/README.md
+++ b/README.md
@@ -69,6 +69,7 @@ without having to touch the PHP code.
69 * Whitelisting of [stream wrappers](https://secure.php.net/manual/en/intro.stream.php) 69 * Whitelisting of [stream wrappers](https://secure.php.net/manual/en/intro.stream.php)
70 * Preventing writeable files execution 70 * Preventing writeable files execution
71 * Whitelist/blacklist for `eval` 71 * Whitelist/blacklist for `eval`
72 * Enforcing TLS certificate validation when using [curl](https://secure.php.net/manual/en/book.curl.php)
72 * Request dumping capability 73 * Request dumping capability
73 74
74## Download 75## Download
diff --git a/doc/source/features.rst b/doc/source/features.rst
index dd35e2b..4f8edb9 100644
--- a/doc/source/features.rst
+++ b/doc/source/features.rst
@@ -439,9 +439,19 @@ Arbitrary file inclusion hardening
439"""""""""""""""""""""""""""""""""" 439""""""""""""""""""""""""""""""""""
440 440
441Arbitrary file inclusion is a common vulnerability, that might be detected 441Arbitrary file inclusion is a common vulnerability, that might be detected
442by preventing the inclusion of anything that doens't match a strict set 442by preventing the inclusion of anything that doesn't match a strict set
443of file extensions in calls to ``include`` or ``require``. 443of file extensions in calls to ``include`` or ``require``.
444 444
445
446Enforcing certificate validation when using curl
447""""""""""""""""""""""""""""""""""""""""""""""""
448
449While it might be convenient to disable certificate validation on preproduction
450or during tests, it's `common <https://twitter.com/CiPHPerCoder/status/1056974646363516928>`__
451to see that people are disabling it on production too.
452We're detecting/preventing this by not allowing the ``CURLOPT_SSL_VERIFYPEER`` and
453``CURLOPT_SSL_VERIFYHOST`` options from being set to ``0``.
454
445*Cheap* SQL injections detection 455*Cheap* SQL injections detection
446"""""""""""""""""""""""""""""""" 456""""""""""""""""""""""""""""""""
447 457