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

CVE-2026-54459: FileRise CSRF Vulnerability

CVE-2026-54459 is a cross-site request forgery flaw in FileRise that allows attackers to create files or share links using victim credentials. This post explains its impact, affected versions, and mitigation steps.

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-54459 Overview

FileRise, a self-hosted web-based file manager, contains a Cross-Site Request Forgery (CSRF) vulnerability [CWE-352] in versions prior to 3.14.0. The flaw affects two state-changing POST endpoints: /api/file/createFile.php and /api/file/createShareLink.php. Both endpoints authenticate the request session but fail to enforce the server-side X-CSRF-Token check applied to adjacent handlers. An attacker who can induce a logged-in user to issue a crafted request can create empty files or generate share links under that user's permissions. The default SameSite=Lax session cookie limits cross-site POST reachability but does not fully eliminate the attack surface. Version 3.14.0 resolves the issue.

Critical Impact

Authenticated session abuse enabling unauthorized file creation and share-link generation without user consent.

Affected Products

  • FileRise versions prior to 3.14.0
  • FileController::createFile handler
  • FileController::createShareLink handler

Discovery Timeline

  • 2026-10-12 - CVE-2026-54459 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-54459

Vulnerability Analysis

FileRise implements CSRF token validation across most state-changing endpoints through an X-CSRF-Token header check. The file creation and share-link creation handlers deviate from this pattern. Both endpoints verify that a session is authenticated but omit the server-side token validation step applied to peer handlers. This inconsistency allows requests originating outside the application's trust boundary to execute privileged actions when a victim's browser carries a valid session cookie.

Root Cause

The root cause is missing CSRF token enforcement in two POST handlers. FileController::createFile and FileController::createShareLink process incoming requests without rejecting a missing or invalid X-CSRF-Token header. Authentication alone is treated as sufficient authorization, violating the defense-in-depth model used elsewhere in the codebase.

Attack Vector

Exploitation requires user interaction. An attacker crafts a malicious page or request that triggers a POST to the vulnerable endpoints while the victim holds an active FileRise session. The default SameSite=Lax cookie attribute blocks straightforward cross-site POST requests, so practical exploitation typically relies on same-site contexts, embedded iframes with navigational POSTs, or specific browser behaviors. Successful exploitation creates empty files in the user's storage or produces share links that expose user-owned content.

text
// Patch reference from composer.json (v3.14.0)
   "require-dev": {
       "zircote/swagger-php": "^4.11",
       "doctrine/annotations": "^2.0",
-      "squizlabs/php_codesniffer": "^3.7"
+      "squizlabs/php_codesniffer": "^3.7",
+      "symfony/yaml": "8.0.12"
   },

Source: GitHub Commit 7035f6e

Detection Methods for CVE-2026-54459

Indicators of Compromise

  • Unexpected empty files appearing in user-owned directories without corresponding user activity in application logs.
  • Share-link records in FileRise metadata created from referrers or user-agents inconsistent with normal client usage.
  • POST requests to /api/file/createFile.php or /api/file/createShareLink.php lacking an X-CSRF-Token header on vulnerable versions.

Detection Strategies

  • Review web server access logs for POST requests to the two vulnerable endpoints with external Referer or Origin headers.
  • Correlate file creation and share-link events with authenticated user activity timelines to identify out-of-band actions.
  • Audit FileRise application logs for session IDs performing bursts of file creation or share-link generation inconsistent with user behavior.

Monitoring Recommendations

  • Enable request-level logging on the FileRise reverse proxy to capture headers, referrers, and request origin.
  • Alert on share-link creation events exceeding baseline rates per user account.
  • Monitor outbound share-link access patterns to detect leaked links being used by unauthorized parties.

How to Mitigate CVE-2026-54459

Immediate Actions Required

  • Upgrade FileRise to version 3.14.0 or later, which enforces CSRF token validation on both affected handlers.
  • Audit existing share links and revoke any that cannot be attributed to legitimate user action.
  • Instruct users to log out of FileRise sessions when not actively using the application.

Patch Information

The fix is included in FileRise 3.14.0 as part of a request validation hardening release. See the GitHub Security Advisory GHSA-jp5j-9px9-g47g and the upstream commit for technical details.

Workarounds

  • Place FileRise behind a reverse proxy that rejects POST requests to /api/file/createFile.php and /api/file/createShareLink.php lacking an X-CSRF-Token header.
  • Restrict FileRise access to trusted networks or require VPN connectivity until the upgrade is applied.
  • Set stricter cookie policy (SameSite=Strict) on the FileRise session cookie where application compatibility permits.
bash
# Example nginx rule enforcing CSRF header presence on vulnerable endpoints
location ~ ^/api/file/(createFile|createShareLink)\.php$ {
    if ($http_x_csrf_token = "") {
        return 403;
    }
    proxy_pass http://filerise_backend;
}

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.