summaryrefslogtreecommitdiff
path: root/doc/source/features.rst
diff options
context:
space:
mode:
authorxXx-caillou-xXx2017-11-24 14:03:37 +0100
committerjvoisin2017-11-24 14:03:37 +0100
commit5a224ee0c92d1639395d6a0c629316ae64226125 (patch)
tree8925d27e2bbfa877e9fb1fc20868fbef3d009b04 /doc/source/features.rst
parent79304a29661476dc75bba07c5a83133122bbcb5c (diff)
Implement anti csrf measures
This is done by using the "samesite" cookie attribute.
Diffstat (limited to 'doc/source/features.rst')
-rw-r--r--doc/source/features.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/source/features.rst b/doc/source/features.rst
index 3643326..c4239e9 100644
--- a/doc/source/features.rst
+++ b/doc/source/features.rst
@@ -321,6 +321,20 @@ would be to use a different user to run PHP than for administrating the website,
321and using this feature to lock this up. 321and using this feature to lock this up.
322 322
323 323
324Protection against cross site request forgery
325^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
326
327Cross-site request forgery, sometimes abbreviated as *CSRF*,
328is when unauthorised commands are issued from a user that the application trusts.
329For example, if a user is authenticated on a banking website,
330an other site might present something like
331``<img src="http://mybank.com/transfer?from=user&to=attack&amount=1337EUR">``,
332effectivement transfering money from the user's account to the attacker one.
333
334Snuffleupagus can prevent this (in `supported browsers <https://caniuse.com/#search=samesite>`__)
335by setting the `samesite <https://tools.ietf.org/html/draft-west-first-party-cookies-07>`__
336attribute on cookies.
337
324 338
325Dumping capabilities 339Dumping capabilities
326^^^^^^^^^^^^^^^^^^^^ 340^^^^^^^^^^^^^^^^^^^^