Skip to content

fix: critical setup endpoints (/api/setup/database, ... in setup.js - #1850

Open
anupamme wants to merge 1 commit into
BanManagement:masterfrom
anupamme:fix-repo-banmanager-webui-setup-endpoint-unauthenticated-access
Open

fix: critical setup endpoints (/api/setup/database, ... in setup.js#1850
anupamme wants to merge 1 commit into
BanManagement:masterfrom
anupamme:fix-repo-banmanager-webui-setup-endpoint-unauthenticated-access

Conversation

@anupamme

@anupamme anupamme commented Aug 6, 2026

Copy link
Copy Markdown

Summary

Fix critical severity security issue in server/routes/setup.js.

Vulnerability

Field Value
ID V-001
Severity CRITICAL
Scanner multi_agent_ai
Rule V-001
File server/routes/setup.js:162
Assessment Likely exploitable
Chain Complexity 2-step

Description: Critical setup endpoints (/api/setup/database, /api/setup/server, /api/setup/finalize, /api/setup/admin/preflight) are protected only by an optional SETUP_TOKEN environment variable. If SETUP_TOKEN is not set (default case), these endpoints are completely unauthenticated, allowing any attacker with network access to reconfigure the application.

Evidence

Scanner confirmation: multi_agent_ai rule V-001 flagged this pattern.

Production code: This file is in the production codebase, not test-only code.

Threat Model Context

This route handler appears to be publicly accessible. This is a web service - vulnerabilities in request handlers are directly exploitable by remote attackers.

Changes

  • server/routes/setup.js

Behavior Preservation

The change is scoped to 1 file on the vulnerable path; it only tightens handling of untrusted input and leaves valid inputs unaffected.


Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security
@sonarqubecloud

sonarqubecloud Bot commented Aug 6, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant