Skip to content

Commit 5b30f70

Browse files
committed
add XQuery submission
1 parent 28dc26a commit 5b30f70

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/main/xar-resources/data/production_good_practice.xml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,23 @@ $ pfexec chown -R exist:exist /opt/eXist
163163
<term>REST server</term>
164164
<listitem><para>We recommend to prevent eXist's REST server from directly recieving web requests, and use URL Rewriting to control code execution via URL instead. This feature is enabled by default in <filename>$EXIST_HOME/webapp/WEB-INF/web.xml</filename>. Changing the param-value to true, allows you to filter request via your own XQuery controller.</para>
165165
<programlisting language="xml">&lt;init-param&gt;
166-
&lt;param-name>hidden&lt;/param-name&gt;
167-
&lt;param-value>true&lt;/param-value&gt;
166+
&lt;param-name&gt;hidden&lt;/param-name&gt;
167+
&lt;param-value&gt;true&lt;/param-value&gt;
168+
&lt;/init-param&gt;</programlisting>
169+
<para>The following options allow a more fine-grained control over aspects of remote code execution:</para>
170+
</listitem>
171+
</varlistentry>
172+
<varlistentry>
173+
<term>XQuery submissions</term> <listitem><para>We recommend to restrict the REST servers ability to execute XQuery code to authenticated users, by modifying:<filename>$EXIST_HOME/webapp/WEB-INF/web.xml</filename>.</para>
174+
<programlisting language="xml">&lt;init-param&gt;
175+
&lt;param-name&gt;xquery-submission&lt;/param-name&gt; &lt;param-value&gt;authenticated&lt;/param-value&gt;
168176
&lt;/init-param&gt;</programlisting></listitem>
169177
</varlistentry>
170178
<varlistentry>
171179
<term>XUpdate statements</term>
172-
<listitem><para>In addtion, we recommend to retrict the REST servers ability to execute XUpdate statements, because of the sensitive nature of update operation. Simply modify <filename>$EXIST_HOME/webapp/WEB-INF/web.xml</filename>by changing the para-value from enabled to disabled.</para>
180+
<listitem><para>In addtion, we recommend to restrict the REST servers ability to execute XUpdate statements, because of the sensitive nature of update operation. Simply modify <filename>$EXIST_HOME/webapp/WEB-INF/web.xml</filename>by changing the param-value from enabled to disabled.</para>
173181
<programlisting language="xml">&lt;init-param&gt;
174-
&lt;param-name>xupdate-submission&lt;/param-name&gt; &lt;param-value>disabled&lt;/param-value&gt;
182+
&lt;param-name&gt;xupdate-submission&lt;/param-name&gt; &lt;param-value&gt;disabled&lt;/param-value&gt;
175183
&lt;/init-param&gt;</programlisting></listitem>
176184
</varlistentry>
177185
</variablelist>

0 commit comments

Comments
 (0)