@poool/spruce@0.0.1-alpha.2

Vulnerabilities

3 via 3 paths

Dependencies

143

Source

npm

Find, fix and prevent vulnerabilities in your code.

Severity
  • 3
Status
  • 3
  • 0
  • 0

medium severity

Arbitrary Code Injection

  • Vulnerable module: ejs
  • Introduced through: ejs@3.1.2

Detailed paths

  • Introduced through: @poool/spruce@0.0.1-alpha.2 ejs@3.1.2
    Remediation: Upgrade to ejs@3.1.6.

Overview

ejs is a popular JavaScript templating engine.

Affected versions of this package are vulnerable to Arbitrary Code Injection via the render and renderFile. If external input is flowing into the options parameter, an attacker is able run arbitrary code. This include the filename, compileDebug, and client option.

POC

let ejs = require('ejs')
ejs.render('./views/test.ejs',{
    filename:'/etc/passwd\nfinally { this.global.process.mainModule.require(\'child_process\').execSync(\'touch EJS_HACKED\') }',
    compileDebug: true,
    message: 'test',
    client: true
})

Remediation

Upgrade ejs to version 3.1.6 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: fastify
  • Introduced through: fastify@2.14.1

Detailed paths

  • Introduced through: @poool/spruce@0.0.1-alpha.2 fastify@2.14.1
    Remediation: Upgrade to fastify@2.15.1.

Overview

fastify is an overhead web framework, for Node.js.

Affected versions of this package are vulnerable to Denial of Service (DoS). It uses allErrors: true by default which makes it susceptible to DoS attacks even when schemas are otherwise safe.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade fastify to version 2.15.1, 3.0.0-rc.5 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: fastify
  • Introduced through: fastify@2.14.1

Detailed paths

  • Introduced through: @poool/spruce@0.0.1-alpha.2 fastify@2.14.1
    Remediation: Upgrade to fastify@2.15.1.

Overview

fastify is an overhead web framework, for Node.js.

Affected versions of this package are vulnerable to Denial of Service (DoS). A denial of service vulnerability exists in Fastify v2.14.1 and v3.0.0-rc.4 that allows A malicious user can trigger resource exhaustion (when the allErrors option is used) with specially crafted schemas.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade fastify to version 2.15.1 or higher.

References