Skip to content

harden: add parameterized queries in server-manager.js - #1

Merged
Detritalw merged 4 commits into
BloretCrew:mainfrom
anupamme:fix-repo-crewrouter-sql-injection-server-manager
Sep 6, 2026
Merged

Detritalw merged 4 commits into
BloretCrew:mainfrom
anupamme:fix-repo-crewrouter-sql-injection-server-manager

Conversation

@anupamme

@anupamme anupamme commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Harden input handling in CrewRouter-Desktop/src/server-manager.js (flagged by semgrep).

Vulnerability

Field Value
ID utils.custom.sql-injection-template-literal
Severity HIGH
Scanner semgrep
Rule utils.custom.sql-injection-template-literal
File CrewRouter-Desktop/src/server-manager.js:266
Assessment Defensive hardening

Description: SQL query constructed using JavaScript template literals with dynamic input. This can lead to SQL injection. Use parameterized queries instead.

Threat Model Context

This is a web service - vulnerabilities in request handlers are directly exploitable by remote attackers.

Changes

  • CrewRouter-Desktop/src/server-manager.js

Behavior Preservation

The change is scoped to 1 file on the vulnerable path.


This patch removes an exploit primitive — a code pattern that, while not independently exploitable today, could be chained with other weaknesses by automated exploit-development tooling. Proactive removal of such primitives raises the bar against increasingly capable automated attack tools.


Automated security fix by OrbisAI Security

@Detritalw
Detritalw merged commit 3be0750 into BloretCrew:main Sep 6, 2026
5 checks passed
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.

2 participants