/

CVE-2026-57492

Severity:

HIGH RISK

(7.4)

Missing Authentication (CWE-306) in FileRise Setup

CVE-2026-57492

Deferred

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-306

Impact:

Unauthenticated Administrator Account Creation

Severity:

HIGH RISK

(7.4)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

FileRise may reopen its initial setup flow when the users.txt file is empty or missing, even if setup was previously completed. An unauthenticated remote caller could then create the next initial administrator account when the user store has been lost, truncated, or otherwise cleared.

FileRise may reopen its initial setup flow when the users.txt file is empty or missing, even if setup was previously completed. An unauthenticated remote caller could then create the next initial administrator account when the user store has been lost, truncated, or otherwise cleared.

Affected context

The issue occurs in FileRise deployments that use a mutable users.txt file as the only indication that setup has been completed. If that file becomes empty or unavailable after initial configuration, the application may interpret the condition as a fresh installation and expose the setup workflow to unauthenticated network clients.

The issue occurs in FileRise deployments that use a mutable users.txt file as the only indication that setup has been completed. If that file becomes empty or unavailable after initial configuration, the application may interpret the condition as a fresh installation and expose the setup workflow to unauthenticated network clients.

Exploit preconditions

  • Attack surface: The remotely accessible FileRise web setup flow
  • Required access: No prior authentication may be required if setup mode is reopened
  • Trigger point: An empty or missing users.txt file causes startup or request-time setup-state evaluation
  • Why exploitation is possible: The application relies on the mutable user store to determine whether initial setup has already occurred and lacks an independent durable completion marker
  • Attack surface: The remotely accessible FileRise web setup flow
  • Required access: No prior authentication may be required if setup mode is reopened
  • Trigger point: An empty or missing users.txt file causes startup or request-time setup-state evaluation
  • Why exploitation is possible: The application relies on the mutable user store to determine whether initial setup has already occurred and lacks an independent durable completion marker

Why this happens

The underlying bug is a failure to enforce authentication and setup-state integrity independently of a mutable user database. Treating an empty or missing users.txt file as proof that installation has never been completed maps to CWE-306: Missing Authentication for Critical Function, because a privileged account-creation operation can become available without an authenticated administrative session.

The underlying bug is a failure to enforce authentication and setup-state integrity independently of a mutable user database. Treating an empty or missing users.txt file as proof that installation has never been completed maps to CWE-306: Missing Authentication for Critical Function, because a privileged account-creation operation can become available without an authenticated administrative session.

Potential impact

  • An attacker could create an unauthorized initial administrator account
  • Existing administrative control could be displaced or undermined
  • Private files and stored application data may be accessed or modified
  • Malicious accounts or configuration changes could persist after recovery of the user store
  • The FileRise instance could be used as a foothold for broader attacks
  • An attacker could create an unauthorized initial administrator account
  • Existing administrative control could be displaced or undermined
  • Private files and stored application data may be accessed or modified
  • Malicious accounts or configuration changes could persist after recovery of the user store
  • The FileRise instance could be used as a foothold for broader attacks

General mitigation guidance

Mitigation generally focuses on separating setup completion from the availability of the user store and ensuring that privileged account creation requires authenticated authorization.

Common defensive patterns include:

  • Store setup-complete state in a durable, access-controlled location independent of users.txt
  • Require an authenticated administrative session or an out-of-band bootstrap secret for account creation after initialization
  • Treat missing, empty, corrupt, or unreadable user stores as an error or recovery state rather than as a fresh installation
  • Restrict network exposure of setup and administrative endpoints
  • Apply least privilege to the application process and protect user-store files against unintended deletion or truncation
  • Log and alert on setup-mode transitions, administrator creation, and user-store integrity failures

Mitigation generally focuses on separating setup completion from the availability of the user store and ensuring that privileged account creation requires authenticated authorization.

Common defensive patterns include:

  • Store setup-complete state in a durable, access-controlled location independent of users.txt
  • Require an authenticated administrative session or an out-of-band bootstrap secret for account creation after initialization
  • Treat missing, empty, corrupt, or unreadable user stores as an error or recovery state rather than as a fresh installation
  • Restrict network exposure of setup and administrative endpoints
  • Apply least privilege to the application process and protect user-store files against unintended deletion or truncation
  • Log and alert on setup-mode transitions, administrator creation, and user-store integrity failures

How teams detect issues like this

Detection can combine application behavior monitoring, configuration review, and source analysis.

  • Review code for checks that infer installation state solely from user-record presence or file length
  • Use static analysis and code review rules to identify unauthenticated account-creation or setup endpoints
  • Test startup and recovery behavior with missing, empty, unreadable, and corrupted user-store files
  • Monitor for unexpected setup-flow access, administrator creation, and changes to user-store integrity
  • Enforce deployment policies that limit public access to initialization and administrative routes
  • Automated security review tools may help identify missing authorization checks and fail-open recovery logic

Detection can combine application behavior monitoring, configuration review, and source analysis.

  • Review code for checks that infer installation state solely from user-record presence or file length
  • Use static analysis and code review rules to identify unauthenticated account-creation or setup endpoints
  • Test startup and recovery behavior with missing, empty, unreadable, and corrupted user-store files
  • Monitor for unexpected setup-flow access, administrator creation, and changes to user-store integrity
  • Enforce deployment policies that limit public access to initialization and administrative routes
  • Automated security review tools may help identify missing authorization checks and fail-open recovery logic

Sources

SourceLink
github.comgithub.com/error311/FileRise/commit/f7114ca2a4e624238dda0d097a07ad6b05c11bb6
github.comgithub.com/error311/FileRise/releases/tag/v3.16.0
github.comgithub.com/error311/FileRise/security/advisories/GHSA-g555-3rg9-wrq8

Frequently asked

questions

It can be, when the FileRise setup flow is network accessible and the users.txt file is empty or missing. The attacker may not need an existing account if setup mode is accepted without authentication.

The key requirements are network access to the FileRise instance and a deployment state in which the user store has been lost, truncated, or otherwise made unavailable.

Keep setup-complete state in a durable, protected store separate from the mutable user database, and require authenticated or controlled out-of-band authorization for any subsequent administrator creation.

Treat missing security state as an error rather than as first-run mode, protect recovery paths with authentication, restrict administrative endpoints, and monitor unexpected initialization or account-creation events.

It can be, when the FileRise setup flow is network accessible and the users.txt file is empty or missing. The attacker may not need an existing account if setup mode is accepted without authentication.

The key requirements are network access to the FileRise instance and a deployment state in which the user store has been lost, truncated, or otherwise made unavailable.

Keep setup-complete state in a durable, protected store separate from the mutable user database, and require authenticated or controlled out-of-band authorization for any subsequent administrator creation.

Treat missing security state as an error rather than as first-run mode, protect recovery paths with authentication, restrict administrative endpoints, and monitor unexpected initialization or account-creation events.

Find out what's already
exploitable in your codebase.