Difference between revisions of "Security FAQ"

Jump to: navigation, search
(Which versions of Moodle are supported?: supported versions update)
(Who is able to view security issues in the Tracker?)
Line 5: Line 5:
 
==How can I keep my site secure?==
 
==How can I keep my site secure?==
  
* The usual way is to update your whole Moodle to the latest stable release of the version you are using. It is very safe to go from 1.8.1 to 1.8.2+, for example, at any time. [[CVS for Administrators|CVS]] is a very easy way to do this.
+
It's good practice to always use the latest stable release of the version you are using. It is very safe to upgrade from 1.9.6 to 1.9.7+, for example, at any time. [[CVS for Administrators|CVS]] is a very easy way to do this.
* Many of the notices will include patch information. If you are fairly confident with editing scripts, then it may be easier for you to just patch the affected file.
 
  
 
==How do I keep track of recent security issues?==
 
==How do I keep track of recent security issues?==
Line 12: Line 11:
 
* Register your [http://moodle.org/sites Moodle sites] with moodle.org (visit admin/index.php in your installation to see the registration button), making sure to enable the option of being notified about security issues and updates. After your registration is accepted, your email address will be automatically added to our low-volume securityalerts mailing list.
 
* Register your [http://moodle.org/sites Moodle sites] with moodle.org (visit admin/index.php in your installation to see the registration button), making sure to enable the option of being notified about security issues and updates. After your registration is accepted, your email address will be automatically added to our low-volume securityalerts mailing list.
  
* Eventually, all important security issues are published to the general public via the [http://moodle.org/mod/forum/view.php?f=996 Moodle Security forum]. You can subscribe to the [http://moodle.org/rss/file.php/1/1/forum/996/rss.xml forum RSS feed] to automatically add new issues in your favourite feed reader or portal.
+
* Eventually, all important security issues are published to the general public via the [http://moodle.org/mod/forum/view.php?f=996 Moodle Security forum]. You can subscribe to the [http://moodle.org/rss/file.php/1/1/forum/996/rss.xml forum RSS feed] to automatically add new issues in your favourite feed reader or portal. You can also follow [http://twitter.com/moodlesecurity moodlesecurity on Twitter].
 +
 
 +
==Who is able to view security issues in the Tracker?==
 +
 
 +
Depending upon the security level of a Tracker issue, access is restricted to developers, testers or members of the security team.
 +
 
 +
If you wish to find out which files have been changed and what lines of code have been added/amended for a particular security issue you can search cvs for the issue number. However, please note that the recent security fixes for 1.9.7 and 1.8.11 would be extremely complex to back-port to 1.9.6 or 1.8.10 and virtually impossible to back-port to earlier versions. Thus, upgrading is really the recommended solution.
  
 
==Which versions of Moodle are supported?==
 
==Which versions of Moodle are supported?==

Revision as of 09:08, 28 January 2010

How do I report a security issue?

Please "Create a new issue" in the Moodle Tracker describing the problem (and solution if possible) in detail. Make sure you set the Security Level accurately to make sure that the security team sees it. Bugs classified as a "Serious security issue" will be hidden from the general public until the security team (led by Petr Skoda) is able to resolve it and publish fixes to registered Moodle sites (see below).

How can I keep my site secure?

It's good practice to always use the latest stable release of the version you are using. It is very safe to upgrade from 1.9.6 to 1.9.7+, for example, at any time. CVS is a very easy way to do this.

How do I keep track of recent security issues?

  • Register your Moodle sites with moodle.org (visit admin/index.php in your installation to see the registration button), making sure to enable the option of being notified about security issues and updates. After your registration is accepted, your email address will be automatically added to our low-volume securityalerts mailing list.

Who is able to view security issues in the Tracker?

Depending upon the security level of a Tracker issue, access is restricted to developers, testers or members of the security team.

If you wish to find out which files have been changed and what lines of code have been added/amended for a particular security issue you can search cvs for the issue number. However, please note that the recent security fixes for 1.9.7 and 1.8.11 would be extremely complex to back-port to 1.9.6 or 1.8.10 and virtually impossible to back-port to earlier versions. Thus, upgrading is really the recommended solution.

Which versions of Moodle are supported?

  • As stated on download.moodle.org, Moodle 1.8 and 1.9 are supported. If you're still using 1.6 or 1.7 then upgrading is highly recommended.
  • The latest development branch of Moodle is not intended for production use and while security problems are fixed, security announcements are not issued. If you are using the development branch for testing or evaluation, we assume that you will update your code regularly.
  • Our security officer Petr Škoda oversees the security of the code found in the standard Moodle distribution. The security of contributed code lies with the individual maintainers.

My site was hacked. What do I do?

See Hacked site recovery.

How can I reduce spam in Moodle?

See Reducing spam in Moodle.

How can I increase privacy in Moodle?

See Increasing privacy in Moodle.

How do I enable reCAPTCHA?

To add spam protection to the Email-based self-registration new account form with a CAPTCHA element:

  1. Obtain a reCAPTCHA key from http://recaptcha.net by signing up for an account (free) then entering a domain.
  2. Copy and paste the public and private keys provided into the recaptchapublickey and recaptchaprivatekey fields in the manage authentication common settings in Administration > Users > Authentication > Manage authentication.
  3. Click the "Save changes" button at the bottom of the page.
  4. Follow the settings link for email-based self-registration in Administration > Users > Authentication > Manage authentication and enable the reCAPTCHA element.
  5. Click the "Save changes" button at the bottom of the page.

How can I run the security overview report?

To run the new security overview report, you need to be using Moodle 1.8.9 or 1.9.4. The report can be accessed via Administration > Reports > Security overview.

How can I enable password salting?

Moodle stores passwords as md5 strings. Password salting adds information to these strings to make them practically impossible to reverse. See Password salting for details of how to enable this feature.

What if I lose my password salt?

If you lose your password salt, then you and all other site users will have to go through password recovery to reset your passwords. To prevent this situation from occuring, you should keep a note of your password salt somewhere other than config.php.

See also

Using Moodle forum discussions: