Skip to content

Possible Injection-attack Vulnerability #2

Description

@LockedThread

Someone might be able to do a command line injection attack against your system here:

await $`docker run --network none --name ${ctx.userId}${input.name} --rm -i -d -v ${codePathFolder}:/app/ -v ${problemPathInput}:/app/inputs/:ro code-runner`;
. I suggest validating the input.name field as you can send plaintext for that. I am not sure if zx stops inline bash commands.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions