From: markt
Date: Thu, 14 Oct 2010 09:22:54 +0000 (+0000)
Subject: Add some more info on CSRF protection for the manager and host manager applications
X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=92e2397a6d31ca41e909fc944e30dc135bb229e8;p=tomcat7.0
Add some more info on CSRF protection for the manager and host manager applications
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1022441 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/webapps/docs/manager-howto.xml b/webapps/docs/manager-howto.xml
index cd0806484..3bc29b6f0 100644
--- a/webapps/docs/manager-howto.xml
+++ b/webapps/docs/manager-howto.xml
@@ -169,6 +169,18 @@ an example of restricting access to the localhost by IP address:
allow="127\.0\.0\.1"/>
</Context>
+
+The HTML interface is protected against CSRF but the text and JMX interfaces
+are not. To maintain the CSRF protection:
+
+
+ - users with the manager-gui role should not be granted either the
+ manager-script or manager-jmx roles.
+ - if the text or jmx interfaces are accessed through a browser (e.g. for
+ testing since these interfaces are intended for tools not humans) then the
+ browser must be closed afterwards to terminate the session.
+
+
diff --git a/webapps/host-manager/401.jsp b/webapps/host-manager/401.jsp
index b2d9deb96..ce37e3e8e 100644
--- a/webapps/host-manager/401.jsp
+++ b/webapps/host-manager/401.jsp
@@ -54,9 +54,20 @@
the functionality you wish to access.
- - admin - allows access to the HTML GUI
+ - admin-gui - allows access to the HTML GUI
- admin-script - allows access to the text interface
+
+ The HTML interface is protected against CSRF but the text interface is not.
+ To maintain the CSRF protection:
+
+
+ - users with the admin-gui role should not be granted the
+ manager-script role.
+ - if the text interface is accessed through a browser (e.g. for testing
+ since this interfaces is intended for tools not humans) then the browser
+ must be closed afterwards to terminate the session.
+