Joomla 6.2.1 Security Update: 58 Fixes, and What It Means for Joomla 5 Sites PHP 8.6 Is Out: New Features With Examples, and When Joomla Will Use Them Next File Manager 6.1.0: share links, Trash, a phone app and a Health check Next Exams 6.3.0: exam parts, scaled scores, listening and speaking tests Next Restaurant 6.1.0: move your data in, run payroll, and connect other systems
NextSoftware

Protection

The layer no profile can switch off. A file manager that can reach the Joomla root can, in principle, overwrite configuration.php or drop a PHP file into a web-served folder. Protection is what stops a misconfigured profile from becoming a remote-code-execution hole.

It has four parts:

Mechanism Governs Overridable?
Protected patterns Changes to Joomla's own files Yes, per path, by a Super User, behind a global switch
Secret files Reads No, below Super User
Per-path locks Changes to any item you choose They are the override mechanism
Blocked file types in websites New files inside a website folder No, below Super User

Protected patterns: blocking changes

An editable list of names, folders and globs. Matching a pattern protects the path and everything under it.

The defaults, applied before you configure anything:

configuration.php      configuration.php-*
index.php              .htaccess
.user.ini              web.config
administrator/         cli/
includes/              libraries/

That covers Joomla's entry points, its server configuration files, and the four folders where a written file becomes executable code or breaks the CMS. A name such as index.php matches at any depth, so every index.php in the site is protected.

Edit the list under Configuration → Settings → Protection → Protected paths. It is Super-User-only, even for a profile allowed to change Settings.

Changes to a protected path are refused for everyone, Super Users included, until an explicit unlock exists. Reads are unaffected: you can browse administrator/ and open a template file to look at it.

Secret files: blocking reads

A separate, shorter list, and a stricter rule. These files' contents are confidential:

configuration.php      configuration.php-*
.env                   .env.*
*.key                  *.pem
.htpasswd

Below Super User these cannot be read, previewed, downloaded, copied, shared, or taken out inside a ZIP archive. Every route is closed, not just the direct one: a user who cannot download configuration.php cannot obtain it by selecting its folder and asking for a ZIP.

No setting lifts this for a non-Super-User. The unlock mechanism below governs changes; it does not make a secret file readable.

This list is not editable. It is deliberately short and fixed: it is the floor.

Per-path locks: the override mechanism

Right-click any item and use Protect (lock) or Unprotect (unlock).

  • Protect (lock) marks a specific path protected even though no pattern matches it. Use it on things that matter to your site but not to Joomla: a client's signed contract, a config file your own code reads.
  • Unprotect (unlock) records an override on a specific path, lifting pattern protection for that one item.

Evaluation is nearest-ancestor-explicit-wins: the closest explicit lock or unlock up the folder tree decides, and if there is none, the pattern list decides.

The unlock switch

Unlocks only count when Allow Super Users to unlock & edit protected files is on, under Configuration → Settings → Protection. It is:

  • off by default: protection is absolute until you decide otherwise;
  • Super-User-only: a profile allowed to change Settings cannot reach it.

Off, every unlock is ignored and protection is absolute for everyone. On, a Super User can unlock one path and edit it.

The intended workflow: switch it on, unlock the one file, make the change, lock it again, switch it back off. Leaving it on permanently is a decision, not a default.

Folders that hold protected items

Protecting a file would mean little if you could delete, move or rename the folder around it. So:

  • Locked items stop everyone. A folder that holds a locked item anywhere inside it cannot be deleted, moved or renamed as a whole, by anyone, Super Users included.
  • Protected files stop users below Super User. Inside a website, a folder that holds a file matching the protected patterns, such as index.php, .htaccess or configuration.php, cannot be deleted, moved or renamed as a whole by users below Super User.

The message is "This folder contains protected items, so it cannot be deleted, moved or renamed." The items around the protected ones can still be handled one by one.

To check a folder, Next File Manager looks through everything inside it. If a folder holds more than 20,000 items, the check stops and the action is refused with "This folder is too large to check for protected files. Ask a Super User to delete, move or rename it."

Template folders and many extension folders contain an index.php somewhere inside. In practice users below Super User can still delete their own upload folders, but usually not those.

Blocked file types in websites

Users below Super User can never upload or create script files inside a website folder, whatever their profile allows. The blocked types are:

php  php3  php4  php5  php6  php7  php8  pht  phtm  phtml  phps  phar
inc  shtml  shtm  cgi  pl  py  asp  aspx  jsp  jspx
exe  sh  bash  bat  cmd  com  htaccess  htpasswd

Every part of a name is checked, so shell.php.jpg is refused too. The message is "Executable file types cannot be placed inside the website."

This applies to every way a new file can appear: uploading, creating, renaming, extracting an archive, and copying or moving. When a folder is copied or moved into the website, every file inside it is checked as if it were uploaded, against these types and against the profile's own extension lists. A folder prepared on another drive cannot carry a PHP file into the site.

Outside a website folder, for example on a backup drive or an S3 bucket, these types are not blocked, because the files there are not run by the web server. The profile's Denied extensions still apply everywhere.

The Health screen lists the blocked types under Blocked in websites for non-Super Users.

HTML and SVG files

HTML (.html, .htm) and SVG files are not on the blocked list, so users whose profile allows uploads can place them in the website folder. Both can contain scripts that run in a visitor's browser if the file is opened straight from your site's address.

Next File Manager never shows an SVG inline in its own preview, but it cannot stop someone visiting the file's address on your website directly.

If people you do not fully trust can upload into the website folder, do one of these:

  • give upload rights inside the website only to people you trust, and point everyone else at a place outside it; or
  • add html, htm, svg to the Denied extensions of their profile. See Profiles & access control.

Hidden files and folders

Names that start with a dot, such as .git, .env or .htaccess, cannot be opened, listed or created through Next File Manager, by path or through a share link.

On Windows servers, the file system also gives these items short DOS-style names such as GIT~1 or ENV~1. Those short names are checked against the real name, so they do not reach hidden items either.

Path resolution

Underneath all of this is one guarantee: a path cannot escape its granted place.

Every request works out the real location of the requested path, resolving .. segments, following symbolic links to where they actually point, and treating upper and lower case alike on file systems that do. Then it checks that the result is still inside a place the profile grants.

That matters more than it sounds. On Windows and macOS, Administrator/ and administrator/ are the same folder but different text; a check that compares text without folding case is easily bypassed. Symbolic links are the same problem by another route: a link inside a granted folder pointing at /etc is not a way out, because the real location is worked out before the check, not after.

The same check applies to every entry in an archive during extraction, which blocks the attack known as Zip-Slip. See Archives.

Checking why something is blocked

The file manager marks protected items with a padlock, so you can see at a glance that administrator/, libraries/ and configuration.php are locked down.

The details panel reports Writable for the selection. If it is not writable, work down the list: does the path match a pattern under Settings → Protection → Protected paths? If not, it carries an explicit lock. A Super User can right-click it and choose Unprotect (unlock).

Practical notes

  • Add to the list, do not replace it. The defaults are the minimum for a Joomla site. Sites often add a vendor folder or their own sensitive files.
  • A pattern protects a whole folder. Adding templates/ protects every template. That is usually what you want on a live site, and usually not on a site being built. Profile places are the better tool for "this developer works in templates".
  • Lock changes are logged. Both lock and unlock appear in the Activity log with the user and the path.
  • Protection is not a substitute for file permissions. It governs what Next File Manager will do. Set your file system permissions correctly as well.

All Extensions