summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/default_php8.rules2
-rw-r--r--doc/source/config.rst2
-rw-r--r--doc/source/features.rst6
3 files changed, 6 insertions, 4 deletions
diff --git a/config/default_php8.rules b/config/default_php8.rules
index 096f033..a6edfbe 100644
--- a/config/default_php8.rules
+++ b/config/default_php8.rules
@@ -26,7 +26,7 @@ sp.xxe_protection.enable();
26# PHP has a lot of wrappers, most of them aren't usually useful, you should 26# PHP has a lot of wrappers, most of them aren't usually useful, you should
27# only enable the ones you're using. 27# only enable the ones you're using.
28# sp.wrappers_whitelist.list("file,php,phar"); 28# sp.wrappers_whitelist.list("file,php,phar");
29# The "php" wrapper can be further filtered 29# The "php" wrapper can be further filtered, e.g. to only allow `php://stdout`, `php://stdin` and `php://stderr`:
30# sp.wrappers_whitelist.php_list("stdout,stdin,stderr"); 30# sp.wrappers_whitelist.php_list("stdout,stdin,stderr");
31 31
32# Prevent sloppy comparisons. 32# Prevent sloppy comparisons.
diff --git a/doc/source/config.rst b/doc/source/config.rst
index 75392d7..525885f 100644
--- a/doc/source/config.rst
+++ b/doc/source/config.rst
@@ -399,7 +399,7 @@ Allowlist of the php stream-wrapper
399^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 399^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
400 400
401:ref:`The php-stream-wrapper allowlist <php-stream-wrapper-allowlist-feature>` 401:ref:`The php-stream-wrapper allowlist <php-stream-wrapper-allowlist-feature>`
402allows to explicitly allow the builtin `php streams <https://www.php.net/manual/en/wrappers.php.php>`__. 402allows to explicitly restrict the permitted builtin `php streams <https://www.php.net/manual/en/wrappers.php.php>`__.
403 403
404:: 404::
405 405
diff --git a/doc/source/features.rst b/doc/source/features.rst
index 3855f2a..32a535b 100644
--- a/doc/source/features.rst
+++ b/doc/source/features.rst
@@ -406,10 +406,12 @@ The builtin `"php" stream wrapper <https://www.php.net/manual/en/wrappers.php.ph
406has support for common streams, like ``stdin``, ``stdout`` or ``stderr``, but 406has support for common streams, like ``stdin``, ``stdout`` or ``stderr``, but
407also for the dangerous ``filter`` one. 407also for the dangerous ``filter`` one.
408 408
409Examples of related vulnerability 409Examples of related vulnerabilities
410""""""""""""""""""""""""""""""""" 410"""""""""""""""""""""""""""""""""""
411 411
412- `CNEXT exploits <https://github.com/ambionics/cnext-exploits/>`__ 412- `CNEXT exploits <https://github.com/ambionics/cnext-exploits/>`__
413- Synacktiv's `php_filter_chain_generator <https://github.com/synacktiv/php_filter_chain_generator>`__ tool
414- Ambionic's `wrapwrap <https://github.com/ambionics/wrapwrap>`__ tool
413 415
414.. _eval-feature: 416.. _eval-feature:
415 417