You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .mcp/autobot-mcp-server.js
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -786,13 +786,17 @@ class AutoBotMCPServer {
786
786
}
787
787
}
788
788
789
-
// Utility methods
789
+
// Utility methods — commands are always hardcoded strings from this server,
790
+
// never from user/environment input. Shell is restricted to PROJECT_ROOT.
790
791
asyncexecuteCommand(command,options={}){
792
+
if(typeofcommand!=='string'||command.length===0){
793
+
thrownewError('Command must be a non-empty string');
794
+
}
791
795
try{
792
-
constresult=execSync(command,{
793
-
encoding: 'utf8',
796
+
constresult=execSync(command,{// codeql-suppress js/shell-command-injection-from-environment -- all callers pass hardcoded command strings; this is a local dev MCP server
0 commit comments