Skip to content

Commit 6f2df91

Browse files
committed
Revert "Safer defaults for trust-users and file uploads, plus install guide changes."
This reverts commit 308bcf8.
1 parent 308bcf8 commit 6f2df91

File tree

3 files changed

+25
-33
lines changed

3 files changed

+25
-33
lines changed

app/src/main/resources/org/apache/roller/weblogger/config/roller.properties

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,6 @@ authentication.method=db
342342
# Enables HTTPS for login page only
343343
securelogin.enabled=false
344344

345-
# With this settings, all users will have HTML posts sanitized.
346-
weblogAdminsUntrusted=true
347-
348345
# Empty value used for passphrase in roller_user table when LDAP or CMA used;
349346
# openid presently generates a random (long) password string instead.
350347
users.passwords.externalAuthValue=<externalAuth>

app/src/main/resources/org/apache/roller/weblogger/config/runtimeConfigDefs.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199

200200
<property-def name="uploads.enabled" key="configForm.enableFileUploads">
201201
<type>boolean</type>
202-
<default-value>false</default-value>
202+
<default-value>true</default-value>
203203
</property-def>
204204
<property-def name="uploads.types.allowed" key="configForm.allowedExtensions">
205205
<type>string</type>
@@ -230,7 +230,7 @@
230230
</property-def>
231231
<property-def name="themes.customtheme.allowed" key="configForm.allowCustomTheme">
232232
<type>boolean</type>
233-
<default-value>false</default-value>
233+
<default-value>true</default-value>
234234
</property-def>
235235

236236
</display-group>

docs/roller-install-guide.adoc

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,29 @@ some recommendations for keeping your Roller installation secure:
4242
* *Perform Roller installation on a secure network*. When you are
4343
installing Roller it is possible for other users to interfere with your
4444
installation. If other users have access to the server, one of them
45-
could attempt to access the Roller database or files while you are
46-
installing Roller. To prevent this, install Roller on a secure network
47-
or at a time when other users are not using the server.
48-
49-
* *Do not allow new user registrations*. By default, Roller allows new
50-
users to register themselves. This is convenient, but it also means that
51-
anyone can create an account on your Roller site. If you do not want
52-
this, go to the Server Administration page and disable the *Allow New
53-
Users* option.
54-
55-
* *Sanitize all HTML*. By default, Roller sanitizes all HTML published by the system to ensure that user posts are safe and free from malicious content. This is controlled by the _weblogAdminsUntrusted=true_ property in your _roller-custom.properties_ file.
56-
57-
* *Do not allow custom themes*. By default, Roller does not allow users to
58-
create custom themes. You can enable this via the Server Admin page, but
59-
don't do it unless you trust your users because it can allow users to
60-
create custom themes that can be used to compromise your site.
61-
62-
* *Do not allow File Uploads*. By default, Roller does not allow users to upload
63-
files for display on their blogs. If you trust your users, then you can enable
64-
file uploads via the Server Admin page.
65-
66-
* *Do not allow HTML in comments*. By default, Roller does not allow users to write
67-
comments in HTML due to security concerns. This setting helps prevent potential
68-
security issues related to HTML content in comments.
69-
70-
By following these recommendations, you can help ensure that your Roller
71-
installation remains secure and protected from common web vulnerabilities.
72-
45+
could create the admin account before you do. So, when you install
46+
Roller, do so on a server that cannot be accessed by others.
47+
* *Do not allow open registration of new users*. Roller can offer a
48+
registration link so that new users can register themselves, but this
49+
feature is turned off because it is not safe to allow just anybody to
50+
register for an account on your blog server. If you want to turn it on,
51+
login as an administrative user, go to Roller’s Server Administration
52+
page and enable the *Allow New Users* option.
53+
* *Enable HTML Sanitization*. If you cannot trust the webloggers who
54+
will use your Roller site to author HTML, then you should configure
55+
Roller to sanitize all HTML published by the system. Do this by setting
56+
the _weblogAdminsUntrusted=true_ property in your
57+
_roller-custom.properties_ file.
58+
* *Do not allow File Uploads*. By default Roller allows users to upload
59+
files for display on their blogs. If don't trust your users, this is unsafe
60+
and you should disable File Uploads via the Server Administration page.
61+
* *Do not allow HTML in comments*. Roller can allow users to write
62+
comments in a safe-subset of HTML, but HTML use in comments is not
63+
allowed at all because of security concerns with even a so called
64+
safe-subset of HTML. If you want to turn it on, login as an
65+
administrative user, go to Roller’s Server Administration page, enable
66+
the *Allow html in comments* option and make sure the *HTML Subset
67+
Restriction* box is checked.
7368
* *Run Roller over SSL connection*. If you run Roller over a plain old
7469
HTTP connection, it is possible for others to snoop your password when
7570
you login, for example over an open WIFI network. To configure Roller to

0 commit comments

Comments
 (0)