devcert-sanscache@0.4.5 vulnerabilities

Generate trusted local SSL/TLS certificates for local SSL development

  • latest version

    0.5.1

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    4 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the devcert-sanscache 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
    • H
    Command Injection

    devcert-sanscache is a package that can be used to generate trusted local SSL/TLS certificates for local SSL development.

    Affected versions of this package are vulnerable to Command Injection. The variable commonName controlled by user input is used as part of the exec function without any sanitization.

    PoC by JHU System Security Lab

    var root = require("devcert-sanscache");
    var attack_code = "&touch Song&";
    root(attack_code);
    

    How to fix Command Injection?

    Upgrade devcert-sanscache to version 0.4.7 or higher.

    <0.4.7