retoorandClaude Sonnet 5 3a1d55ba51 fix(cli): spawn git init directly, no shell (MOLO-CLI-001)
molo new <name> passed the project name through system("git -C \"" + dir +
"\" init -q"), a real shell; a name containing a double quote broke out of
the quoting and ran arbitrary shell commands (CWE-78). Replace the system()
call with fork+execvp passing argv as an array, so there is no shell to
parse the name. grep confirms this was the only system() call in
scaffolder.cpp.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-25 19:57:59 +01:00
S
Description
moloapp
5.2 MiB
Languages
C++ 90%
Python 3.2%
Pawn 3.2%
POV-Ray SDL 1.3%
JavaScript 1.1%
Other 1.1%