Skip to content
This repository was archived by the owner on Aug 10, 2024. It is now read-only.
This repository was archived by the owner on Aug 10, 2024. It is now read-only.

Shell injection through main-dir #9

Open
@AlexDaniel

Description

@AlexDaniel

method !init-vcs-repo {
my $git-dir = $.main-dir.absolute;
shell("cd $git-dir && git init", :out).out.slurp-rest;
shell("cd $git-dir && git add .", :out).out.slurp-rest;
}

↑ I don't know how dangerous that is, but I'd much rather not see shell being used there…

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions