Working through the Moodle security overview report

The Moodle security overview report is a built-in checklist of configuration risks. This page explains what each check tests, which findings matter most on a public site, and how to re-run it after upgrades and plugin installs.

On this page

How the Moodle security overview report works as a hardening checklist

The Moodle security overview report is a built-in set of checks that a site runs against its own configuration, and it is the fastest way to find configuration gaps on a self-hosted Moodle. It does not test your site from the outside and it does not replace a penetration test. You reach it from the site administration menu under the security section, where it lists each check as a warning, a critical warning or a pass, with a link to the setting that needs changing. Run it before go-live, after every Moodle upgrade, and after installing or updating any plugin, because each of those can change settings or add files that a check will flag.

Read the report as a list of configuration decisions rather than a score. On a public-facing site, the findings that matter most are those that expose private paths, allow anonymous access to content, or let accounts with broad rights be reached from the internet. Treat any warning about the web root or private data directories as urgent, and check that the web server document root matches the layout for your Moodle version. From Moodle 5.1, the document root must point to the /public directory, so a site that still serves the main Moodle folder may show directory listings or errors. Record each warning, the owner who will fix it, and whether the fix is a setting, a file permission or a web server change.

The report does not tell you whether your Moodle code is current. Moodle ships security fixes through its regular minor releases, and the supported branch you run determines how long those fixes arrive. Confirm your version and its security support end date on the Moodle releases page before you treat a clean report as a sign of safety. Use the report as the configuration check that runs alongside a patch routine, and ask your Moodle partner or internal team to confirm which checks are expected to fail in your environment, such as those tied to a hosting choice you have made on purpose.

What the main check groups test

This group tests whether private directories can be requested directly through the web server. Moodle stores uploaded files, caches and configuration-adjacent data in locations that must never be served to a browser, and a misconfigured web server can expose them. A warning here usually means the document root points too high in the file tree, or that a web server rule does not block access to a private path. Treat these warnings as urgent on a public site, because exposed data is often readable without logging in.

  • Document root: Check that the web server serves only the intended public directory. From Moodle 5.1, the document root must point to the /public directory rather than the main Moodle folder.
  • Data directory: Confirm that the data directory sits outside the web root and is not reachable by URL.
  • Vendor and development directories: Check that dependency folders are not served publicly.
  • Web server rules: Confirm the rules that block direct access to private paths are active after any server change.
  • Retest after changes: A web server reload or a new virtual host can reopen a path that was closed before.

When this group warns, test the paths from outside your network before you assume the fix worked.

Which findings matter most on a public site

When Moodle is reachable from the internet, a small set of security report findings carries most of the exposure. The cards below cover the findings to fix first, in roughly the order an attacker would test them. Each one connects to a control you can verify directly in the report and in your web server configuration.

Private paths served by the web server

If the web server can reach the data directory or vendor folders, files that should stay private can be downloaded directly. Check that the data directory sits outside the web root and, on Moodle 5.1 or later, that the document root points to the public directory rather than the main Moodle folder. Without that change, the site may show directory listings or errors. Run the report's path checks after every change to the web server configuration.

Moodle 5.1 notes

Guest and open access settings

Guest access, open user profiles and public course pages let anonymous visitors and search engines read content meant for enrolled users. Review the guest role, the site home settings and whether forced login is enabled. On a public site, the safe default is that a visitor sees only the login page until they sign in, so confirm each open setting is a deliberate choice.

Administrator count and XSS-trusted roles

Every site administrator can change code, settings and user data, and any role granted XSS trust can inject script that runs in other users' sessions. Count the administrators and compare the list with people who still need the access. Review roles with XSS trust in the same pass. Reducing both numbers usually costs little and limits the damage from one compromised account.

Web services and token exposure

Web services that the mobile app or integrations use can expose functions to any valid token. Check which protocols are enabled, which services are active, and whether tokens have expiry dates and limited scope. Confirm that unused services are switched off and that login/token.php is reachable only where your integrations need it. Each unused function is a surface you do not need to defend.

Outdated core or plugin versions

Security fixes reach Moodle through minor releases and reach plugins through their own updates, so a site that falls behind carries known flaws. Confirm the core release is still within its security support window and that installed plugins have current versions. Re-run the report after each upgrade or plugin install, because a new plugin can add its own findings. Plan patching around the release calendar rather than waiting for an incident.

Running the report and triaging findings

This sequence turns the security overview report into a dated baseline, a prioritized fix list and a record of accepted risks, so each change to the site can be checked against a known starting point. It is designed to be repeated after every upgrade and plugin install.

  1. Confirm the document root and site state first

    Before running the report, the site administrator confirms that the web server serves the correct directory: on Moodle 5.1 and later, the document root should point to the /public directory rather than the main Moodle folder. Check that the site is not in maintenance mode and that no upgrade is half-finished. If the document root is wrong, the report results will not reflect what anonymous visitors can actually reach, so fix this before going further. Done when the root is confirmed in the web server configuration and a browser request to a private path returns an error rather than a listing.

  2. Run the report as a site administrator

    Sign in as a site administrator and open Site administration, then the security overview report, to run the full set of checks. Use an account that holds the administrator role directly, since the results depend on what that account can see. Note the time of the run and whether any checks show as warnings, critical or information. Done when every check has a status and nothing is left in a pending state.

  3. Record the baseline with version and plugin list

    Export or copy the report results and record them alongside the exact Moodle version, the PHP and database versions, and the full list of installed plugins with their versions. Store this record in version control or a change log that your team can review and diff later. This baseline lets you show which findings existed before a change and which were introduced by it. Done when the baseline file or record can be opened by someone who was not present for the run and identifies the site and date.

  4. Sort each finding into one of three groups

    Place every warning or critical finding into one of three groups: fix now, fix in the next change window, or accepted with a written reason. Fix now covers exposed private paths, unsafe administrator or XSS-trusted roles, and checks that affect anonymous access on a public site. Next change window covers hardening that needs configuration review or testing. Accepted findings need a named owner and a reason that a reviewer can challenge. Done when no finding remains unassigned.

  5. Fix the highest-exposure items and retest

    Work through the fix now group, making one change at a time so each result can be traced to a cause. After each change, re-run the affected check or the full report and confirm that the status has moved. If a change breaks a feature, roll it back and record the reason in the change log before retrying. Done when each fix now item shows a passing status on re-run and the change is recorded with its date.

  6. Schedule and test the next change window items

    Assign the next change window items to a planned maintenance period, with a test on a copy of the site before production. Confirm that the test environment matches the production version and plugin list. Record which items were applied, which were deferred, and why. Done when each item has a status in the change record and the test results are stored with the baseline.

  7. Re-run the report after upgrades and plugin installs

    Repeat the full sequence after every Moodle upgrade, minor release and plugin installation or update, since new checks and new plugin code can change the results. Compare the new run with the stored baseline and investigate any new warnings before users return. Review accepted items for changes in context, such as a new plugin that makes a previously accepted risk worse. Done when the new report is recorded, differences from the baseline are explained, and the baseline is updated in version control.

How findings move from report to closed

The loop starts when an administrator runs the security overview report on a live site and sorts each warning into a class: fix by configuration, fix by code or plugin change, or accept with a recorded reason. Fixes are applied in config.php or the admin settings, then the report is run again until the finding clears. Any finding that cannot be fixed on the site moves into a written acceptance record with an owner and a review date. The loop repeats after every upgrade and plugin install, because those changes can reopen earlier findings.

Each finding moves through classification, a fix or recorded acceptance, and a re-run.

Re-running the report after upgrades and plugin installs

A clean security overview report is a snapshot of one version of Moodle with one set of plugins. It can turn dirty after a minor point release, a major upgrade or a plugin install without anyone changing a setting on purpose. Each of these events can add new settings, new roles or capabilities, new directories and changed defaults, and the report only tests what the current code expects. Treat every change as a reason to run the report again, before the change in a staging copy and again on production once the change is live.

Major upgrades change the ground under the checks. Moodle 5.1 requires that the web server document root point to the new /public directory instead of the main Moodle folder, so a server left on the old layout can expose code and directories that the report would otherwise flag. Moodle 5.3 removes the Classic theme from core, adds a learning outcomes feature and adds Anthropic's Claude as an AI provider plugin. Re-read each finding against the new version: a theme warning may no longer apply, while a new AI provider or outcomes feature may need its own access and data review. Confirm the exact checks in your target version's release notes before you sign off the result.

Third-party plugins need their own review. Before installing or updating a plugin, read the developer's security notes, the plugin's listed Moodle version support and any open issues about capabilities, web services or file handling. After install, record which roles and capabilities the plugin added, check whether it created a directory that should sit outside the web root, and run the report again. Keep a short dated log of each upgrade and plugin change with the report output beside it, so a later finding can be traced to the change that introduced it.

Which response fits each finding type

This table compares the typical response, the likely owner and the conditions for accepting risk for each family of security overview findings. Use it to sort a report into fix now, fix in the next change window, or document and accept, then follow the sibling hardening page for the detailed steps.

Finding typeTypical responseWho owns itWhen to accept the risk
Web-exposed private pathsPoint the web server at the public directory and confirm dataroot and vendor folders are not reachable by URL. Treat any exposed path as urgent and retest after the change.Platform or server administrator, with the Moodle administrator verifyingRarely acceptable on a public site. Confirm with a direct request from outside the network before closing the finding.
Admin and role settingsReview who holds site administrator and high-risk capabilities, remove unused grants and check roles that can run content with elevated trust. Follow the role risk review page.Moodle administrator with the data owner signing off on accessAcceptable only for a named, documented need with a review date and a limited number of holders.
Guest and public accessRestrict guest access, the site home role and public profile visibility to what the audience needs. Follow the guest and public profile page.Moodle administrator with the academic or business ownerAcceptable for courses or content intended to be open to the public, recorded as a deliberate decision.
Web services and tokensEnable only the protocols and services in use, scope tokens narrowly and set expiry. Confirm service accounts are needed. Follow the web services and tokens page.Integration owner with the Moodle administratorAcceptable for a documented integration that needs a long-lived service account, with its scope and owner recorded.
Password and login settingsSet password rules, lockout and reset behavior, and confirm where single sign-on or multi-factor authentication applies. Follow the password policy page.Identity team with the Moodle administratorAcceptable for accounts that never reach the site, such as those fully managed by an identity provider, if that is confirmed.
Outdated version or pluginSchedule the upgrade or plugin update in the next maintenance window, check the release support dates for your version and test on a copy first. Follow the security releases page.Platform owner, with the plugin's maintainer as a source of updatesAcceptable only for a short, dated exception while a tested upgrade is scheduled. Confirm the support end date for your release.
Server and PHP settingsAlign PHP, database and web server versions with the requirements of your Moodle release and remove unneeded extensions. Confirm config.php locks and the ClamAV upload scan are in place.Server or platform teamAcceptable when the setting is inert for your deployment and the reason is written down, such as a feature that is turned off.

Questions buyers ask before hiring help with Moodle hardening

How much effort does a first security overview report review take in-house?

The effort depends on how many findings the report raises, how familiar your team is with Moodle's admin tools, and whether the fixes are configuration changes or code changes. Most teams can work through the report alone if they have an administrator who understands the affected settings, but the first pass usually takes longer than expected because each warning needs a decision: fix it, accept it with a reason, or confirm it does not apply to your site. Ask any partner to estimate effort in writing by splitting it into triage, fixes, retesting and documentation, and to state which of those they expect your team to perform.

What drives the cost of a Moodle hardening review?

Cost follows the amount of work each finding creates, not the number of warnings in the report. The main drivers are:

  • Public exposure: a site reachable by anonymous visitors has more checks to verify than an intranet behind SSO.
  • Number of plugins and custom code: each third-party plugin and local change needs a review of its own permissions and file handling.
  • Site size and hosting: multiple web nodes, separate file servers or a constrained network add verification steps.
  • Compliance evidence needs: if you must keep records for an auditor, the documentation and retest scope grow.

Ask for a quote that lists these items separately, and confirm whether it is one-time work or a recurring retainer.

What does the work need from our team?

The work needs four things from your side: administrator access to the Moodle site, read access to the web server and file configuration, a named owner who can approve changes, and a window in which config changes and restarts can happen. The owner matters most, because many findings require a decision about how your site is used, such as who needs elevated roles or whether guest access is allowed. Confirm with any partner exactly which accounts they will use, how credentials are handled, and who signs off on each change before work begins.

Can our own team run the security overview report and fix the findings alone?

Yes, a team with Moodle administration skills can run the report and work through most findings alone, provided it has a clear owner and a change process. Bring in outside help where the work crosses into server configuration, plugin code review or testing from outside the network, since those checks are easy to misjudge. A useful test is whether your team can explain, for each warning, why it appears and how they verified the fix. If they cannot, a short external review of the decisions is often more efficient than a full engagement.

How long does it take to re-run the report after an upgrade or plugin install?

Re-running the report itself is quick, because it is a built-in page in Moodle's administration area. The time goes into reviewing new or changed findings, checking any plugin that was added or updated, and confirming that earlier fixes still hold after the upgrade. Plan this as a step in your change process, not a separate project, and check the upgrade notes for the Moodle version you are moving to, since some releases change file layout or required server settings. Ask any partner whether re-runs are included in a fixed-scope engagement or sit under a retainer.

Does passing the security overview report prove that our Moodle site is compliant?

No. The report checks a set of configuration and file conditions in Moodle, and a clean result shows only that those checks passed on the day you ran it. It does not prove compliance with a regulation or framework, and it does not replace an independent audit or certification. Use the report as one input to your evidence: keep the results, your decisions on each finding, and records of retests. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue any audit report or attestation.

Security and operational considerations for the report

The security overview report is only useful if the people running it, the people accepting its warnings and the people changing the site all work from the same discipline. The cards below cover access, evidence, configuration, timing and recovery, which together decide whether a clean report means anything.

Restrict report access to administrators

The security overview page lists configuration details that help an attacker map a site, including weak settings and exposed paths. Only site administrators with a documented need should reach it, and the account that opens it should be a named, individual admin rather than a shared login. Check the role assignments that grant access before a public launch, and review them each time an administrator leaves or changes role.

A passing report is not a test

The report runs a fixed set of checks against settings. It does not test your plugins for code flaws, your SSO flow, your web server, or your custom themes and integrations. Treat a clean result as evidence that the listed settings are correct, and pair it with external testing and a review of the plugins you have installed before you call the site hardened.

Record each accepted warning

Some findings will not apply to your site, or will need a planned fix later. Record each accepted warning with the finding name, the person who accepted it, the date, the reason and the review date. A short register in your change system is enough. Without it, the next administrator cannot tell an informed exception from an overlooked gap, and auditors will ask for the same evidence.

Keep server settings in config.php

Settings that control paths, plugin installation and upgrade access are safer in config.php than in the admin interface, because a compromised admin session cannot change them through the browser. Keep that file in version control, require a review for every edit, and compare it against what the security report expects after each change so that a silent edit does not survive unnoticed.

Re-run after each release cycle

Moodle issues minor point releases every two months, and each upgrade or plugin install can change the results. Schedule a re-run of the report after every security release you apply and after every plugin change, and compare it with the previous run. Ask your Moodle partner or internal team to confirm the release calendar that applies to your supported version before setting the schedule.

Minor release cadence
Two months

Back up before every change

A fix suggested by the report can break a theme, a plugin or a path. Take a full backup of the database and the moodledata directory, and keep a copy of the code and config.php, before you apply any change. Test the restore on a staging copy so that the rollback you rely on has been proven. Record the backup reference in the same change entry as the report run.

How DeployOpen runs a Moodle security overview review

DeployOpen treats the security overview report as one input to a written review of your Moodle site, run against your own hosting, plugins and upgrade routine. We agree the scope in writing, work through the findings with your administrators, and hand over a documented result you can repeat after each upgrade or plugin install.

How we scope

  • We agree in writing which Moodle sites, versions and hosting environments the review covers before work starts.
  • We list the installed plugins, themes and admin accounts that the report findings will be checked against.
  • Engagements are fixed-scope, so deliverables and timelines are confirmed in the written scope before any work begins.

How we build

  • We run the security overview report on a staging copy and record each finding with its check name and status.
  • We confirm the web server document root and private paths against the report results on your actual infrastructure.
  • We prepare the configuration and role changes needed to clear findings, tested on staging before any production change.

How we hand over

  • You receive a findings list that explains what each check means for your site and which items matter most publicly.
  • The handover includes the changes made, the evidence of re-running the report and a written procedure for your team.
  • We document the steps to re-run the report after each Moodle upgrade and each plugin installation, with named owners.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, covering periodic report re-runs.
  • A retainer can include reviewing the report after new plugins are added and before each planned upgrade.
  • Retainer scope, frequency and response arrangements are agreed in writing, so you know what recurs and what it costs.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.