summaryrefslogtreecommitdiff
path: root/doc/source/features.rst
diff options
context:
space:
mode:
authorkkadosh2018-05-29 19:34:16 +0000
committerjvoisin2018-05-29 19:34:16 +0000
commit7832438b7abedf567ce6376f99949f419abcdff1 (patch)
tree560e43918d1dc36ce4cf760a5b27aed0c563bc1c /doc/source/features.rst
parent9eebe8c67e03e3041d454ea28e93996f7a67740b (diff)
Support session encryption
Implement session encryption.
Diffstat (limited to 'doc/source/features.rst')
-rw-r--r--doc/source/features.rst9
1 files changed, 3 insertions, 6 deletions
diff --git a/doc/source/features.rst b/doc/source/features.rst
index 24c5074..08ad3d4 100644
--- a/doc/source/features.rst
+++ b/doc/source/features.rst
@@ -63,8 +63,8 @@ Examples of related vulnerabilities
63 63
64.. _cookie-encryption-feature: 64.. _cookie-encryption-feature:
65 65
66Session-cookie stealing via XSS 66Cookie stealing via XSS
67^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 67^^^^^^^^^^^^^^^^^^^^^^^
68 68
69The goto payload for XSS is often to steal cookies. 69The goto payload for XSS is often to steal cookies.
70Like *Suhosin*, we are encrypting the cookies with a secret key, 70Like *Suhosin*, we are encrypting the cookies with a secret key,
@@ -79,10 +79,7 @@ This feature is roughly the same than the `Suhosin one <https://suhosin.org/stor
79Having a secret server-side key will prevent anyone (even the user himself) 79Having a secret server-side key will prevent anyone (even the user himself)
80from reading the content of the cookie, reducing the impact of an application storing sensitive data client-side. 80from reading the content of the cookie, reducing the impact of an application storing sensitive data client-side.
81 81
82The encryption is done via the `tweetnacl library <https://tweetnacl.cr.yp.to/>`_, 82
83thus using curve25519, xsalsa20 and poly1305 for the encryption. We chose this
84library because of its portability, simplicity and reduced size (a single `.h` and
85`.c` file.).
86 83
87 84
88.. _fileupload-feature: 85.. _fileupload-feature: