connection-tester@0.0.3 vulnerabilities

test if the connection can be established with the given host and port

  • latest version

    0.2.1

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    4 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the connection-tester package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • C
    Command Injection

    connection-tester is a module that tests to check if the connection can be established or host/port reachable for a given host and port. Useful for testing all the connection in your node application at server startup.

    Affected versions of this package are vulnerable to Command Injection. The injection point is located in line 15 in index.js.

    The following PoC demonstrates the vulnerability:

    PoC

    var a = require("connection-tester");
    a.test("& touch 111","& touch 222",123)
    

    How to fix Command Injection?

    Upgrade connection-tester to version 0.2.1 or higher.

    <0.2.1