3a1d55ba51f7d8892bc79906b1108de5607f1b7b
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>
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%