-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Someone might be able to do a command line injection attack against your system here:
lootcode/src/server/api/routers/docker.ts
Line 21 in 4b49b2d
| await $`docker run --network none --name ${ctx.userId}${input.name} --rm -i -d -v ${codePathFolder}:/app/ -v ${problemPathInput}:/app/inputs/:ro code-runner`; |
input.name field as you can send plaintext for that. I am not sure if zx stops inline bash commands.Metadata
Metadata
Assignees
Labels
No labels