In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsThere is no fixed version for check-branches
.
check-branches is a CLI to automatically check if your current repo branch has any conflicts with all other repo's branches. Really useful when working with big teams.
Affected versions of this package are vulnerable to Command Injection. check-branches
is a command-line tool that is interacted with locally, or via CI, to confirm no conflicts exist in git branches.
However, the library follows these conventions which can be abused:
Since a branch name is potentially a user input - as users can create branches remotely via pull requests, or simply due to privileged access to a repository - it can effectively be abused to run any command.
check-branches@0.0.19
, which is the latest.npm install -g check-branches
Make sure there's a valid git repository with remotes configured and at least one valid branch created
Create a new git branch as follows: git checkout -b ";{echo,hello,world}>/tmp/d"
(these characters are indeed valid in git branch names)
Run the check-branches program in the git project directory check-branches
, and observe output similar to:
❯ check-branches ******************************** * check-branches CLI v0.0.19 * ********************************
✔ generating report Wow! Congratulations! Your current branch has no conflicts with any other liran-test-repo repo branches! time for 'check': 151ms
/tmp/d
was created with the contents of hello world
in it.