Skip to Content
OpenVAPTAlpha
Pre-release. Academic, non-commercial, source-available code built by AI Cybersecurity Engineers. Free for your own use, 100% at your own risk. This website collects no data. Read MoreRead Less
Pre-release. OpenVAPT has no Stable release yet. Every build is an Alpha, Beta or Release Candidate: it may be incomplete or wrong, so use it only on test machines, 100% at your own risk. See Release Channels
Academic, non-commercial, source-available code built by AI Cybersecurity Engineers. These are AI systems, not people or registered engineers. Free for your own personal or business use, on your own machines, 100% at your own risk. Not for sale. Not for providing services. This website collects no data. Read the Acknowledgements
Pre-release. OpenVAPT has no Stable release yet. Every build is an Alpha, Beta or Release Candidate: it may be incomplete or wrong, so use it only on test machines, 100% at your own risk. See Release Channels
Academic, non-commercial, source-available code built by AI Cybersecurity Engineers. These are AI systems, not people or registered engineers. Free for your own personal or business use, on your own machines, 100% at your own risk. Not for sale. Not for providing services. This website collects no data. Read the Acknowledgements
P14PractitionerAbout 25 minutes

CMS Hardening in Depth: WordPress, Joomla and Drupal

Beyond version banners: protecting CMS configuration files, switching off debug output and in-browser code editing, and keeping security updates flowing.

Read First: P6

You Will Be Able To

  • Set safe permissions on wp-config.php, configuration.php and settings.php.
  • Turn off debug output and the WordPress file editor in production.
  • Explain why disabling automatic security updates is a high-risk choice.

The Configuration File Is the Crown Jewel

wp-config.php, Joomla's configuration.php and Drupal's settings.php hold the database password and the keys that sign logins. They are also PHP code that runs on every request. Readable by every user, they leak the site to anyone with a shell on the server; writable by others, they become a backdoor. Owner read and write, web server group read (640) is a common safe setting.

Debug Output and the File Editor

WP_DEBUG with display on, or Joomla debug and maximum error reporting, print paths and internals into pages. The WordPress Theme and Plugin File Editors let any administrator change PHP from the browser. One stolen admin session then becomes code execution. DISALLOW_FILE_EDIT turns them off.

Updates and Fingerprints

WordPress delivers security fixes as automatic minor updates; switching them off leaves the site exposed until someone updates by hand. Version files such as Joomla's joomla.xml manifest and Drupal's CHANGELOG.txt tell attackers exactly which advisories apply. Removing the fingerprint is not a substitute for patching, but there is no reason to publish it.

In Summary

A CMS is attacked through its admin pages, plugins and exposed files. Hide versions, lock down file permissions, remove installers and keep everything updated.

Apply It

These OpenVAPT checks put this module into practice. Open one to see its detection logic and source code.

Printable Worksheet · Teacher Answer Key · For Teachers · Print this page with your browser's Print command for a handout.

Also available as plain Markdown for notes, scripts and AI tools. Same facts, same source, no styling.

Lab

  1. Run: openvapt demo --only WEB-CMS- --out p14 and sort the findings by effort.
  2. Write the wp-config.php lines that fix WEB-CMS-006, WEB-CMS-007 and WEB-CMS-008, and the chmod that fixes WEB-CMS-004 and WEB-CMS-005.

Check Yourself

Answers are checked in your browser and never stored or sent.

Question 1

1. What does define('DISALLOW_FILE_EDIT', true) prevent?

Question 2

2. Why is a world-readable wp-config.php a problem on a shared server?

Question 3

3. Is hiding the CMS version enough protection?

Question 4

4. Which permission is a common safe setting for wp-config.php?

Question 5

5. Why is switching off WordPress automatic minor updates a high-risk choice?

Question 6

6. What do Joomla's joomla.xml manifest and Drupal's CHANGELOG.txt give an attacker?

References

Cite This Page

If this page helped your work, please cite it. The version and web address are filled in; the access date is today's date in your browser. Every other style, and when credit is required, is on How to Cite OpenVAPT.

APA 7
OpenVAPT. (2026). P14: CMS Hardening in Depth: WordPress, Joomla and Drupal (Version 0.1.0-alpha.6). OpenVAPT Academy. Retrieved October 16, 2026, from https://openvapt.com/academy/p14.html

In text: (OpenVAPT, 2026). Accessed: the date shown is today's date from your own browser (the site's build date without JavaScript); change it to the day you read the page.

BibTeX
@misc{openvapt_p14,
  author       = {{OpenVAPT}},
  title        = {{P14: CMS Hardening in Depth: WordPress, Joomla and Drupal}},
  year         = {2026},
  howpublished = {\url{https://openvapt.com/academy/p14.html}},
  note         = {OpenVAPT Academy, version 0.1.0-alpha.6. Accessed 16 October 2026}
}

Accessed: the date shown is today's date from your own browser (the site's build date without JavaScript); change it to the day you read the page.

Citing OpenVAPT does not mean OpenVAPT endorses, approves or has reviewed your work.