]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1445] disable referrer check by default
authorBrett Porter <brett@apache.org>
Wed, 15 Dec 2010 03:58:25 +0000 (03:58 +0000)
committerBrett Porter <brett@apache.org>
Wed, 15 Dec 2010 03:58:25 +0000 (03:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-1.3.x@1049409 13f79535-47bb-0310-9956-ffa450edef68

archiva-docs/src/site/apt/adminguide/customising-security.apt
archiva-modules/archiva-web/archiva-webapp/src/main/resources/struts.xml

index ffc7ed41e3487a44f45aa624d468acc873366dbc..98ce6d51f0a2739aa385f34b37a308d8c6e7071e 100644 (file)
@@ -48,3 +48,19 @@ security.policy.password.rule.nowhitespace.enabled=true
  can be found in:
  <<<apps/archiva/WEB-INF/classes/META-INF/plexus/application.xml>>>
 
+* Additional CSRF Prevention
+
+  To help prevent cross-site request forgery, it is possible to enable a basic check that the referrer is the current
+  site.
+
+  <Note:> This is only a generic solution that may prevent some types of attacks but not others. It may cause problems
+  with certain user agents. By default, the check is off.
+
+  To enable the check, change the following configuration value in the <<<struts.xml>>> file in the <<<WEB-INF/classes>>>
+  directory of the web application (2 locations):
+
+----
+<interceptor-ref name="redbackSecureActions">
+  <param name="enableReferrerCheck">false</param>
+</interceptor-ref>
+----
\ No newline at end of file
index ce7d090b9d53e8df1ee4219ffc68958f22ab6c3a..7c5c09ffde182978adcdb096e06f4ed7d577a948 100644 (file)
@@ -42,7 +42,7 @@
           <param name="blocked">externalResult</param>
         </interceptor-ref>
         <interceptor-ref name="redbackSecureActions">
-          <param name="enableReferrerCheck">true</param>
+          <param name="enableReferrerCheck">false</param>
         </interceptor-ref>
         <interceptor-ref name="redbackPolicyEnforcement"/>
         <interceptor-ref name="configuration"/>
@@ -60,7 +60,7 @@
         <interceptor-ref name="defaultStack"/>
         <interceptor-ref name="redbackPolicyEnforcement"/>
         <interceptor-ref name="redbackSecureActions">
-          <param name="enableReferrerCheck">true</param>
+          <param name="enableReferrerCheck">false</param>
         </interceptor-ref>
         <interceptor-ref name="validation">
           <param name="excludeMethods">input,back,cancel,browse</param>