diff options
| author | Chris McDonough <chrism@plope.com> | 2012-11-02 13:13:26 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-11-02 13:13:26 -0400 |
| commit | 76430b07f199cdbdbd19f463367c72eda1b537c3 (patch) | |
| tree | 7154935dfd62bfb985c4f00128778a64a8cba5ab | |
| parent | 316f37e2301cc777780cc5587591ba8e8778b7e0 (diff) | |
| download | pyramid-76430b07f199cdbdbd19f463367c72eda1b537c3.tar.gz pyramid-76430b07f199cdbdbd19f463367c72eda1b537c3.tar.bz2 pyramid-76430b07f199cdbdbd19f463367c72eda1b537c3.zip | |
explain csrf token stealing potentiality
| -rw-r--r-- | docs/narr/sessions.rst | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/narr/sessions.rst b/docs/narr/sessions.rst index 1aa1b6341..f7da7838e 100644 --- a/docs/narr/sessions.rst +++ b/docs/narr/sessions.rst @@ -63,10 +63,15 @@ application by using the ``session_factory`` argument to the this implementation is, by default, *unencrypted*. You should not use it when you keep sensitive information in the session object, as the information can be easily read by both users of your application and third - parties who have access to your users' network traffic. Use a different - session factory implementation (preferably one which keeps session data on - the server) for anything but the most basic of applications where "session - security doesn't matter". + parties who have access to your users' network traffic. And if you use this + sessioning implementation, and you inadvertently create a cross-site + scripting vulnerability in your application, because the session data is + stored unencrypted in a cookie, it will also be easier for evildoers to + obtain the current user's cross-site scripting token. In short, use a + different session factory implementation (preferably one which keeps session + data on the server) for anything but the most basic of applications where + "session security doesn't matter", and you are sure your application has no + cross-site scripting vulnerabilities. .. index:: single: session object |
