Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-66493 — The Joomla extension PhocaCommander is vulnerable to Path Traversal in delete, copy, move actions - CVSS 6.4 | Kitploit
Tools/GitHubGitHub/toanln-cov/cve-2026-66493
Vulnerability AnalysisExploitationWeb Application ExploitationData ExfiltrationWeb SecurityPenetration Testing
GitHubtoanln-cov/cve-2026-66493

CVE-2026-66493

The Joomla extension PhocaCommander is vulnerable to Path Traversal in delete, copy, move actions - CVSS 6.4

View Repository
151 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Path Traversal in File Operations (Delete / Copy / Move)

PhocaCommander ≤ 6.1.3 — Authenticated Admin Manipulates Files Outside Webroot

CVE CVSS v4.0 CWE-22 Affected Researcher


SUMMARY

The file action handler in PhocaCommander constructs source and destination paths from attacker-controlled base64-encoded parameters (pathfrom, pathwhere) without any path containment validation. An authenticated administrator can delete, copy, and move files anywhere on the filesystem accessible to the web server process.

Confirmed in the lab: deleting a file at /tmp/ (outside the webroot) and copying into the PhocaCommander file manager — making its content readable via the built-in editor. All three operations (delete, copy, move) share the same unvalidated code path.

/etc/passwd

AFFECTED VERSIONS

COMPONENTVULNERABLETESTED ONFIXED
PhocaCommander1.0.0 – 6.1.3Joomla 5.4.7 + PhocaCommander 6.1.3 (PHP 8.2 / Apache)6.1.4

VULNERABILITY DETAILS

Authentication required: Administrator (session + CSRF token)

File: administrator/components/com_phocacommander/views/phocacommanderactiona/view.json.php

Root Cause

The action view decodes pathfrom and pathwhere from base64 and concatenates them directly onto JPATH_ROOT with no containment check. These unvalidated paths are then used in all three file operations:

VIEW.JSON.PHP — VULNERABLE PATH CONSTRUCTION

root@kitploit:~
// Both parameters decoded from base64 — no containment check
$pathFrom  = JPATH_ROOT . '/' . base64_decode($this->t['pathfrom'])  . '/';
$pathWhere = JPATH_ROOT . '/' . base64_decode($this->t['pathwhere']) . '/';

// Delete — removes any file reachable by www-data
$srcValue = $pathFrom . $v;
if (PhocaCommanderHelper::fileExists($srcValue)) {
    File::delete($srcValue);
}

// Copy / Move — arbitrary cross-directory file operations
File::copy($pathFrom . $v, $pathWhere . $v);
File::move($pathFrom . $v, $pathWhere . $v);

PhocaCommanderHelper::fileExists() uses is_file(Path::clean($file)). Path::clean() normalizes slashes but does not strip ../ sequences, so traversal sequences in either parameter resolve to arbitrary filesystem paths unchecked.


PROOF OF CONCEPT

Scenario 1 — Delete a file outside the webroot

1. Confirm canary file exists at /tmp/poc.txt

A test file is created at /tmp/poc.txt owned by www-data, confirming the target exists before the delete operation.

ls -la /tmp showing poc.txt

2. Log in to the Joomla administrator panel and obtain CSRF token

Authenticate via the admin login page. Retrieve the Joomla form token — it appears as a hidden input field on any admin page.

Burp Suite – GET request with CSRF token highlighted in response

3. Send delete request — target file outside webroot

Parameters decoded:

  • pathfrom=Li4vLi4vLi4vdG1w → ../../..tmp → /tmp/
  • selfiles[0]=file|cG9jLnR4dA== → filename poc.txt

REQUEST / RESPONSE

Burp Suite – POST delete request and "File deleted" response

4. Confirm file deleted from /tmp

ls -la /tmp showing poc.txt is gone


Scenario 2 — Copy /etc/passwd into the file manager (arbitrary file read via copy)

1. Log in and obtain CSRF token (same as Scenario 1, Step 2)

Reuse the admin session from Scenario 1 or authenticate again to obtain a fresh CSRF token.

2. Copy /etc/passwd into phoca-files/ inside the webroot

Parameters decoded:

  • pathfrom=Li4vLi4vLi4vLi4vZXRj → ../../../../etc → /etc/
  • pathwhere=cGhvY2EtZmlsZXM= → phoca-files → /var/www/html/phoca-files/
  • selfiles[0]=file|cGFzc3dk → filename passwd

REQUEST / RESPONSE

Burp Suite – POST copy request and "File copied" response

3. Confirm /etc/passwd copied to phoca-files/

/etc/passwd is now present inside the webroot at phoca-files/passwd, owned by www-data.

ls -la and cat passwd showing full /etc/passwd content in phoca-files

4. Open copied file in PhocaCommander's built-in editor

Navigate to the PhocaCommander file manager in the admin panel, open phoca-files/, and click to file passwd then click Edit to view its contents in the built-in CodeMirror editor. The full /etc/passwd content is rendered:

PhocaCommander built-in editor showing /etc/passwd content


IMPACT

  1. Arbitrary file delete — any file writable by www-data outside the webroot can be permanently removed, including application configs, lock files, and cron jobs of other services
  2. Arbitrary file copy (→ read) — any readable file, including system files and configs outside the webroot, can be copied into the file manager and read via the built-in editor; this effectively achieves arbitrary file read at the OS level
  3. Arbitrary file move — files can be relocated across directory boundaries, disrupting other services or repositioning files for secondary attacks
  4. Data exfiltration chain — copying sensitive files (/etc/shadow, private keys, other apps' .env files) into the webroot makes them reachable via HTTP without any further action

REFERENCES

  • CVE: https://www.cve.org/CVERecord?id=CVE-2026-66493
  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-66493
  • Vendor Repository: https://github.com/PhocaDesign/PhocaCommander
Download Tool