The action of clearing the cache can delete any directory, what kind of problem will arise when a piece of name is spliced into the path.
The action of clearing the cache can delete any directory, what kind of problem will occur if a segment of the name is拼进 into the path? Joomla's announcement in September 2026 for CVE-2026-90915 provided a real sample: the cache group name was not verified, and the attacker used path traversal to make the clear cache action delete any directory. The common point of these problems is that the function itself is reasonable, but the user-controlled name was not processed before being拼进 into the file path. Any position in the background action where the name, group, and identifier are拼进 into the path is worth reviewing in the same way.
What did the announcement say?
This Joomla core announcement title is 'Through the cache clearing action arbitrary deletion of directories', the defect type is path traversal, the impact level is rated high, the occurrence probability is rated low, the affected versions cover the two series from 4.0.0 to 5.4.8 and 6.0.0 to 6.1.3, and the solution is to upgrade to 5.4.9 or 6.1.4.The cause is that the original text says: The cache group name verification is incorrect, leading to path traversal in the cache layer file storage, which in turn causes arbitrary directory deletion. Low probability does not mean it can be delayed - the triggering conditions are not complex, and the impact falls directly on the file system, and there is no recovery button for deleted directories.
How does a name become a directory traversal?
The cache system usually creates directories by group name and clears directories by group name. If the code directly appends the group name to the root path of the storage, a name containing a jump segment can point the final path to outside the storage root, and the deletion action follows the path, deleting the directory that is拼出来的 that directory.The problem is not with the 'delete' action, but with the way the path is constructed: the name is the input, and the path is the concatenated result, with the validation step missing in between. The solution is also here: restrict the name to the whitelist characters, reject any input containing path separators and jump fragments, and limit the delete action to only act within the storage root, with three layers of overlap to form a closed loop.
Where should the same approach be reviewed?
The three types of locations most worth checking are: the group names and cleanup entry in cache management, the file names and directory parameters in the upload process, and the backup file names and restore paths in the backup and recovery process. When reviewing, you only need to answer one question: will this string be concatenated into a path? If so, where does it come from, does it have a character whitelist, and can the action exceed the preset root directory. The input of background actions is more likely to be ignored than the input on the page, because when writing code, it is default that the operator has logged in, and path traversal is often triggered by a legitimate login session.
What to do besides the upgrade?
Upgrade to solve known issues, input validation is surface-level work. The same validation missing at different positions will evolve into different problems: inserted into a query statement is SQL injection, inserted into page output is cross-site scripting, inserted into a file path is directory traversal - preventing the same thing: untrusted input entering the execution environment without being verified.Leave a backup before deleting or modifying actions: Make a backup before acting, AnQiCMS supports data backup including static files, and can be restored as a whole if there is a problem;Delete the operation limit of the root directory, refuse to exceed the boundary segment, and then converge the entry of high-risk actions to a controlled range, only then can we truly turn 'probability low' into 'not afraid even if it happens'.
| Recheck the location | Input into the path | What to confirm |
|---|---|---|
| Cache management | Group name, cache key | Whitelist and root directory limitation |
| Upload attachment | File name, directory parameters | Reject path separators |
| backup recovery | Backup name, restore path | Action entry convergence in the background |
Common questions
Ask: If the impact rating is high and the probability is low, can we wait a while?Answer: Not recommended. The probability rating is about the difficulty of exploitation, and the impact rating is about the severity of consequences; the consequences of deleting directory files are irreversible, while the cost of the upgrade action itself is very low.
Ask: Will there be any risks if we don't use this feature?Answer: The vulnerability is in the code path, not in the frequency of use; as long as the function is accessible, it may be triggered, and upgrading to the fixed version is a thorough way to deal with it.
Ask: How can I check if my system has similar issues?Answer: Find all the call points in the code where variables are concatenated into paths, check one by one whether the input source has done character whitelist and out-of-bounds checks; When there are no code audit conditions, at least ensure that the system runs on supported versions and keeps up with security updates in a timely manner.