Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: reuse canonical shell character guard in app launch (#4923)
[._.]/ Adam Eivy89ed329553e5
diff --git a/server/routes/apps/launch.js b/server/routes/apps/launch.jsindex a5cc0e25a7..fd1cffbb16 100644--- a/server/routes/apps/launch.js+++ b/server/routes/apps/launch.js@@ -11,6 +11,7 @@import { Router } from 'express';import { spawn } from '../../lib/childProcess.js';import { basename, join } from 'path';+import { DANGEROUS_SHELL_CHARS } from '../../lib/commandSecurity.js';import { asyncHandler, ServerError } from '../../lib/errorHandler.js';import { deriveProjectInfo } from '../../services/xcodeScripts.js';import { loadApp, pathExists } from './shared.js';@@ -93,9 +94,8 @@ router.post('/:id/open-editor', loadApp, asyncHandler(async (req, res) => {}// Security: Validate args don't contain shell metacharacters- const DANGEROUS_CHARS = /[;|&`$(){}[\]<>\\!#*?~]/;for (const arg of args) {- if (DANGEROUS_CHARS.test(arg)) {+ if (DANGEROUS_SHELL_CHARS.test(arg)) {throw new ServerError('Editor arguments contain disallowed characters', {status: 400,code: 'INVALID_EDITOR_ARGS'