summaryrefslogtreecommitdiff
path: root/doc/source/features.rst
diff options
context:
space:
mode:
authorjvoisin2018-01-04 15:59:59 +0100
committerGitHub2018-01-04 15:59:59 +0100
commit3b113be573cdbca20ce9ec9c0a6efb25ccf51db5 (patch)
tree5fabbd1da7cd740f26354ffbd2234eba71ffdead /doc/source/features.rst
parent84e423300c440e96c34ada2620e0f78f827592e8 (diff)
Eval blacklist
Add support for eval filtering, only blacklist for now
Diffstat (limited to 'doc/source/features.rst')
-rw-r--r--doc/source/features.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/source/features.rst b/doc/source/features.rst
index afe139a..8ecf57d 100644
--- a/doc/source/features.rst
+++ b/doc/source/features.rst
@@ -321,6 +321,19 @@ Snuffleupagus can prevent the execution of this kind of file. A good practice
321would be to use a different user to run PHP than for administrating the website, 321would be to use a different user to run PHP than for administrating the website,
322and using this feature to lock this up. 322and using this feature to lock this up.
323 323
324.. _eval-feature:
325
326White and blacklist in ``eval``
327^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
328
329While `eval <https://secure.php.net/manual/en/function.eval.php>`__ is a
330dangerous primitive, tricky to use right, with almost no legitimate usage
331besides templating and building mathematical expressions based on user input,
332it's broadly (mis)used all around the web.
333
334Snuffleupagus provides a white and blacklist mechanism, to explicitly allow
335and forbid specific functions call from being issued inside ``eval``.
336
324 337
325Protection against cross site request forgery 338Protection against cross site request forgery
326^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 339^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^