org.webjars.npm:ecstatic@3.3.2 vulnerabilities

  • latest version

    3.3.2

  • first published

    9 years ago

  • latest version published

    4 years ago

  • licenses detected

  • package manager

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.npm:ecstatic 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
    Denial of Service (DoS)

    org.webjars.npm:ecstatic is a simple static file server middleware. Use it with a raw http server, express/connect or on the CLI.

    Affected versions of this package are vulnerable to Denial of Service (DoS). It is possible to crash a server using the package due to the way URL params parsing is handled during redirect.

    PoC

    curl --path-as-is $(echo -e -n "http://127.0.0.1:8080/existing-dir-name?\x0cfoo")
    

    In the PoC the library is trying to redirect /existing-dir-name?\x0cfoo to /existing-dir-name/?\x0cfoo which cause TypeError: The header content contains invalid characters error because of \x0c symbol.

    How to fix Denial of Service (DoS)?

    There is no fixed version for org.webjars.npm:ecstatic.

    [0,)