Works with the AI Agents you already use
Moodle Config Security Audit
by CashonlyTian
Deploying a Moodle instance without a dedicated security review leaves your learning platform vulnerable to IDOR attacks, credential theft, and data leaks.
$7
Moodle Config Security Audit
Example session with this skill installed
Audit my Moodle install at ./moodle-prod-v2 for the new November CVEs. The site version is 5.2.4. Use #E02424 for the accent color.
- Read your context and instructions
- Compiled the moodle config security
- Generated the document
I have completed the security audit for your Moodle installation at ./moodle-prod-v2.
Security Summary
- Score: 0/100
- Grade: F
- Risk Level: CRITICAL
- Findings: 34 issues
Moodle Security Audit Report
| Check | Score | Status | Finding |
|---|---|---|---|
| Patched Version | 0/10 | FAIL | Version 5.2.4 is vulnerable to CVE-2026-133074 (IDOR), CVE-2026-133075, CVE-2026-133071, CVE-2026-133060, CVE-2026-133059 and CVE-2026-133061 |
| Config Secrets | 0/10 | FAIL | Weak $CFG->dbpass found in config.php |
| File Permissions | 0/10 | FAIL | config.php is world-writable (0666) |
| Data Directory | 0/10 | FAIL | $CFG->dataroot is inside the web root |
| HTTPS & SSL | 0/10 | FAIL | Site serves plain HTTP without HTTPS |
| Debug Mode | 0/10 | FAIL | Production debugging is enabled |
| Password Policy | 0/10 | FAIL | $CFG->passwordpolicy is set to off |
| Session Security | 0/10 | FAIL | Session timeout is outside safe limits |
| SMTP Encryption | 0/10 | FAIL | SMTP auth enabled without TLS/SSL |
| Web Services | 0/10 | FAIL | Mobile web services exposed |
Critical Fixes Required
1.
Upgrade Immediately: Move to Moodle 5.3.1 or 5.2.5 to patch the November 2026 IDOR and arbitrary file read flaws.
2.
Secure Configuration: Change config.php permissions to 0444 and move the moodledata directory outside the public HTML path.
3. Hardening: Enable the password policy and ensure SMTP communications are encrypted via TLS.
The visual scorecard has been generated at scan-2025-05-20.png and the full technical log is available at scan-report.md.
Clean re-run after fixes (Moodle 5.3.1)
- Score: 100/100
- Grade: A
- Risk Level: LOW
- Findings: 0 issues
- All 10 checks PASS (10/10 each): patched version, config secrets, file permissions, data directory, HTTPS & SSL, debug mode, password policy, session security, SMTP encryption and web services.
Next steps
- Run the Moodle upgrade script to reach a patched version.
- Update
$CFG->datarootinconfig.phpand move the corresponding directory. - Re-run this audit to verify the new security score.
scan-2025-05-20.png
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Deploying a Moodle instance without a dedicated security review leaves your learning platform vulnerable to IDOR attacks, credential theft, and data leaks. This skill audits your local Moodle install directory to identify critical misconfigurations before they reach production.
What it does
- Version scanning identifies if the install is vulnerable to the November 2026 flaws (CVE-2026-133074, CVE-2026-133075, and others) affecting quizzes, lessons, and grade services.
- Credential auditing flags weak or literal secrets in
config.php, including database passwords and site salts. - Environment hardening checks for active developer debugging, plain HTTP usage, and insecure session timeouts.
- Access control verifies password policies, guest access settings, and web service exposure.
- System integrity detects world-writable configuration files and data directories located within the web root.
How it works
- Provide the path to your local Moodle install directory and optionally the running version number.
- The skill executes a local Python script that parses
config.php,version.php, and file permissions as text. - It generates a 10-point scorecard (0-100) with a risk grade and a prioritised fix list.
- Review the generated PNG scorecard and Markdown report for specific line-level findings.
Frameworks & tools
This skill works with any Moodle installation (standard or customized) and requires the ability to run a Python-based scanner on the local filesystem.
Why this beats prompting it yourself
Generic prompts often miss the specific bitmask values required for Moodle's $CFG->debug settings or the exact version strings tied to the November 2026 CVEs. This skill uses precise regex parsing and a weighted scoring system to give you an objective security posture instead of vague advice.
Use cases
- Auditing a Moodle site before moving from a staging environment to production.
- Reviewing an install directory inherited from a third-party developer or forum.
- Generating a security compliance scorecard for client handovers or internal reports.
- Verifying that local fixes for CVE-2026-133060 and related flaws are properly applied.
Known limitations
Does not connect to live servers or perform network-based penetration testing. Scans are limited to local configuration files and directory structures only.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Local filesystem scan only. Does not perform network-based probes, database audits, or full plugin vulnerability analysis beyond core directories.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
Python 3Pillow