Note: You are currently viewing documentation for Moodle 2.3. Up-to-date documentation for the latest stable version is available here: Security FAQ.

Security FAQ

From MoodleDocs

How do I report a security issue?

Please create a new issue in the Moodle Tracker describing the problem in detail. (You'll need a tracker account in order to create a new issue.) Set the security level to "Serious security issue", then only the security team and yourself as the reporter will be able to view it.

Previously fixed security issues are listed in the Security news. If you are unsure whether a problem has been fixed or not, it's best to report it anyway.

How can I keep my site secure?

It's good practice to always use the latest stable release of the version you are using. Downloading via Git is a very easy way to do this.

How do I keep track of recent security issues?

  • Register your Moodle sites with (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 security alerts 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.

Which versions of Moodle are supported?

Currently supported versions are listed on

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 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 security overview report, go to Settings > Site 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: