Skip to content

Possible Injection-attack Vulnerability #2

@LockedThread

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions