Find, fix and prevent vulnerabilities in your code.
high severity
- Vulnerable module: qs
- Introduced through: express@4.17.1
Detailed paths
-
Introduced through: @fbl-plugins/html-to-pdf@FireBlinkLTD/fbl-plugins-html-to-pdf#87ed0a2d4c039c08de9771a87af1f9884324b9db › express@4.17.1 › qs@6.7.0Remediation: Upgrade to express@4.17.3.
-
Introduced through: @fbl-plugins/html-to-pdf@FireBlinkLTD/fbl-plugins-html-to-pdf#87ed0a2d4c039c08de9771a87af1f9884324b9db › express@4.17.1 › body-parser@1.19.0 › qs@6.7.0Remediation: Upgrade to express@4.17.3.
Overview
qs is a querystring parser that supports nesting and arrays, with a depth limit.
Affected versions of this package are vulnerable to Prototype Poisoning which allows attackers to cause a Node process to hang, processing an Array object whose prototype has been replaced by one with an excessive length value.
Note: In many typical Express use cases, an unauthenticated remote attacker can place the attack payload in the query string of the URL that is used to visit the application, such as a[__proto__]=b&a[__proto__]&a[length]=100000000
.
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 qs
to version 6.2.4, 6.3.3, 6.4.1, 6.5.3, 6.6.1, 6.7.3, 6.8.3, 6.9.7, 6.10.3 or higher.
References
medium severity
- Vulnerable module: node-fetch
- Introduced through: puppeteer@10.0.0
Detailed paths
-
Introduced through: @fbl-plugins/html-to-pdf@FireBlinkLTD/fbl-plugins-html-to-pdf#87ed0a2d4c039c08de9771a87af1f9884324b9db › puppeteer@10.0.0 › node-fetch@2.6.1Remediation: Upgrade to puppeteer@13.1.2.
Overview
node-fetch is a light-weight module that brings window.fetch to node.js
Affected versions of this package are vulnerable to Information Exposure when fetching a remote url with Cookie, if it get a Location
response header, it will follow that url and try to fetch that url with provided cookie. This can lead to forwarding secure headers to 3th party.
Remediation
Upgrade node-fetch
to version 2.6.7, 3.1.1 or higher.
References
medium severity
- Vulnerable module: inflight
- Introduced through: puppeteer@10.0.0
Detailed paths
-
Introduced through: @fbl-plugins/html-to-pdf@FireBlinkLTD/fbl-plugins-html-to-pdf#87ed0a2d4c039c08de9771a87af1f9884324b9db › puppeteer@10.0.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
Overview
Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime via the makeres
function due to improperly deleting keys from the reqs
object after execution of callbacks. This behavior causes the keys to remain in the reqs
object, which leads to resource exhaustion.
Exploiting this vulnerability results in crashing the node
process or in the application crash.
Note: This library is not maintained, and currently, there is no fix for this issue. To overcome this vulnerability, several dependent packages have eliminated the use of this library.
To trigger the memory leak, an attacker would need to have the ability to execute or influence the asynchronous operations that use the inflight module within the application. This typically requires access to the internal workings of the server or application, which is not commonly exposed to remote users. Therefore, “Attack vector” is marked as “Local”.
PoC
const inflight = require('inflight');
function testInflight() {
let i = 0;
function scheduleNext() {
let key = `key-${i++}`;
const callback = () => {
};
for (let j = 0; j < 1000000; j++) {
inflight(key, callback);
}
setImmediate(scheduleNext);
}
if (i % 100 === 0) {
console.log(process.memoryUsage());
}
scheduleNext();
}
testInflight();
Remediation
There is no fixed version for inflight
.
References
medium severity
- Vulnerable module: express
- Introduced through: express@4.17.1
Detailed paths
-
Introduced through: @fbl-plugins/html-to-pdf@FireBlinkLTD/fbl-plugins-html-to-pdf#87ed0a2d4c039c08de9771a87af1f9884324b9db › express@4.17.1Remediation: Upgrade to express@4.19.2.
Overview
express is a minimalist web framework.
Affected versions of this package are vulnerable to Open Redirect due to the implementation of URL encoding using encodeurl
before passing it to the location
header. This can lead to unexpected evaluations of malformed URLs by common redirect allow list implementations in applications, allowing an attacker to bypass a properly implemented allow list and redirect users to malicious sites.
Remediation
Upgrade express
to version 4.19.2, 5.0.0-beta.3 or higher.