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

Shell injection through main-dir #9

Open
AlexDaniel opened this issue Jan 11, 2018 · 0 comments
Open

Shell injection through main-dir #9

AlexDaniel opened this issue Jan 11, 2018 · 0 comments

Comments

@AlexDaniel
Copy link

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…

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant