Skip to main content
Vulnerability Database/CVE-2026-100520

CVE-2026-100520: Laranode Path Traversal Vulnerability

CVE-2026-100520 is a path traversal flaw in Laranode that lets authenticated attackers write files outside their home directory and execute code in other tenants' web roots. This post covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-100520 Overview

CVE-2026-100520 is a path traversal vulnerability [CWE-22] affecting Laranode versions prior to 1.2.1. The flaw resides in the POST /filemanager/upload-file endpoint, which fails to validate the path parameter supplied by authenticated users. Attackers can supply directory traversal sequences to write arbitrary files outside their home directory. In multi-tenant deployments, an attacker can drop PHP files into another tenant's web root and achieve code execution as that tenant.

Critical Impact

Authenticated attackers can escape tenant isolation and execute arbitrary PHP code in co-hosted tenant contexts, leading to cross-tenant compromise of confidentiality, integrity, and availability.

Affected Products

  • Laranode versions prior to 1.2.1
  • Vulnerable component: app/Actions/Filemanager/UploadFileAction.php
  • Multi-tenant Laranode hosting panel deployments

Discovery Timeline

  • 2026-09-26 - CVE-2026-100520 published to NVD
  • 2026-09-30 - Last updated in NVD database
  • Patch commit - 5c2b18a merged via Pull Request #21 and released as Laranode v1.2.1

Technical Details for CVE-2026-100520

Vulnerability Analysis

Laranode is a Laravel-based hosting control panel that provisions per-tenant Linux system users and web roots. The file manager endpoint POST /filemanager/upload-file accepts a path parameter that specifies the destination directory for uploaded files. Prior to version 1.2.1, the UploadFileAction handler did not canonicalize or constrain the supplied path against the authenticated tenant's home directory. An authenticated low-privileged tenant can submit traversal sequences such as ../ segments in the path parameter to write files anywhere the web server process can reach.

Because tenants on a shared Laranode host run PHP under distinct system users but share filesystem visibility into other tenants' web roots, writing a PHP file into a co-tenant's document root causes the uploaded script to execute under that tenant's user when requested over HTTP.

Root Cause

The root cause is missing path containment in UploadFileAction.php. The handler trusted the client-supplied destination path and resolved it relative to the filesystem without normalizing traversal sequences or asserting that the resolved path remained within the tenant's permitted root. The patch introduces League\Flysystem\WhitespacePathNormalizer normalization and hardened permission handling via EnsurePermissionsAction, which now throws when the path is invalid or when laranode-file-permissions.sh fails.

Attack Vector

An authenticated tenant sends a crafted multipart upload to POST /filemanager/upload-file with a path value containing traversal sequences targeting another tenant's web root. The uploaded PHP payload is written to that location, then invoked via a normal HTTP request to the victim tenant's domain. Execution occurs under the victim tenant's system user, yielding full read and write access to that tenant's data and credentials.

php
// Patch excerpt - app/Actions/Filemanager/EnsurePermissionsAction.php
namespace App\Actions\Filemanager;

use Illuminate\Support\Facades\Process;
use League\Flysystem\FilesystemException;
use League\Flysystem\WhitespacePathNormalizer;
use RuntimeException;

class EnsurePermissionsAction
{
    public function execute(string $path, string $systemUser): void
    {
        try {
            $path = (new WhitespacePathNormalizer)->normalizePath($path);
        } catch (FilesystemException $exception) {
            throw new RuntimeException('Invalid permission path', previous: $exception);
        }

        $result = Process::run([
            'sudo',
            config('laranode.laranode_bin_path').'/laranode-file-permissions.sh',
            $path,
            $systemUser,
        ]);

        if ($result->failed()) {
            throw new RuntimeException(trim($result->errorOutput()) ?: 'Unable to set file permissions');
        }
    }
}

Source: GitHub Commit 5c2b18a. The patch normalizes paths with WhitespacePathNormalizer and raises RuntimeException on normalization or permission failures, enforcing containment.

Detection Methods for CVE-2026-100520

Indicators of Compromise

  • Requests to POST /filemanager/upload-file where the path form field contains ../, ..\\, URL-encoded %2e%2e%2f, or absolute paths outside the authenticated tenant's home directory.
  • Newly created .php, .phar, or .phtml files in tenant document roots that do not match the owning tenant's deployment history.
  • Web server access logs showing requests to recently created scripts under tenant domains with no corresponding deployment event.
  • Laranode audit entries where the acting tenant user differs from the owner of the destination path.

Detection Strategies

  • Alert on file manager upload requests whose destination path, after normalization, resolves outside the authenticated tenant's home directory.
  • Compare the owning system user of files written under /var/www/ (or equivalent tenant roots) against the Laranode session user that performed the upload.
  • Hunt for PHP files whose mtime is newer than the parent application's known deployment artifacts in each tenant web root.

Monitoring Recommendations

  • Enable verbose logging on the Laranode file manager and forward logs to a centralized SIEM for correlation with web server access logs.
  • Monitor outbound connections from PHP-FPM worker pools; cross-tenant webshells frequently initiate reverse shells or egress callbacks.
  • Track creation of executable web content outside continuous deployment pipelines across all tenant roots.

How to Mitigate CVE-2026-100520

Immediate Actions Required

  • Upgrade Laranode to version 1.2.1 or later, published at the Laranode v1.2.1 release.
  • Audit all tenant web roots for unexpected PHP, PHAR, or PHTML files and remove any that cannot be attributed to the owning tenant.
  • Rotate credentials, API keys, and database passwords stored in tenant environments that may have been exposed.
  • Review Laranode file manager logs for traversal patterns in the path parameter dating back to installation.

Patch Information

The fix is delivered in commit 5c2b18a through Pull Request #21 and shipped in Laranode v1.2.1. The patch introduces app/Filesystem/safe_file.py as the single mutation point for file manager operations, adds python3 as a hard runtime dependency in the Dockerfile, and enforces path normalization in EnsurePermissionsAction. Full technical details are available in the GitHub Security Advisory GHSA-34h2-2696-vfvr and the VulnCheck Advisory.

Workarounds

  • Restrict access to the Laranode administration interface to trusted management IPs via firewall rules until the upgrade is applied.
  • Disable the file manager module for untrusted tenants where configuration permits.
  • Enforce stricter filesystem permissions so each tenant's web root is readable and writable only by its own system user, limiting cross-tenant write primitives.
bash
# Upgrade Laranode to the patched release
cd /opt/laranode
git fetch --tags
git checkout v1.2.1
composer install --no-dev --optimize-autoloader
php artisan migrate --force
php artisan config:cache
sudo systemctl restart php*-fpm apache2

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.