docker-compose-remote-api@0.1.2 vulnerabilities

Integration module with docker-compose same Docker Remote API

  • latest version

    0.1.4

  • first published

    7 years ago

  • latest version published

    7 years ago

  • deprecated

    Package is deprecated

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the docker-compose-remote-api package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Command Injection

    docker-compose-remote-api is a Connection interface between docker-compose and the Docker Remote API.

    Affected versions of this package are vulnerable to Command Injection. Within index.js of the package, the function exec(serviceName, cmd, fnStdout, fnStderr, fnExit) uses the variable serviceName which can be controlled by users without any sanitization.

    PoC

    var Root = require("docker-compose-remote-api");
    var root = Root({cwd:__dirname}).exec("& touch vulnerable.txt");
    

    How to fix Command Injection?

    There is no fixed version for docker-compose-remote-api.

    *