Vulnerabilities |
51 via 446 paths |
|---|---|
Dependencies |
1431 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
critical severity
- Vulnerable module: form-data
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › form-data@2.3.3
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › form-data@2.3.3
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › form-data@2.3.3
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2 › form-data@2.3.3
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2 › form-data@2.3.3
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2 › form-data@2.3.3
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › form-data@2.3.3
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › form-data@2.3.3
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › form-data@2.3.3
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › form-data@2.3.3
Overview
Affected versions of this package are vulnerable to Predictable Value Range from Previous Values via the boundary value, which uses Math.random(). An attacker can manipulate HTTP request boundaries by exploiting predictable values, potentially leading to HTTP parameter pollution.
Remediation
Upgrade form-data to version 2.5.4, 3.0.4, 4.0.4 or higher.
References
critical severity
new
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to HTTP Response Splitting via the isFormData and getHeaders handling in the HTTP request path. An attacker can inject arbitrary request headers by supplying a prototype-polluted object that is mistaken for FormData, causing getHeaders() output to be merged into an outgoing request.
This lets attacker-controlled values, such as authorization or custom headers, ride along with requests made by applications that pass untrusted objects into Axios, exposing credentials or altering server-side request handling.
Notes
- The gadget only matters when the request body is a non-
FormDatapayload that Axios still routes through the Node HTTP adapter’s form-data detection path; browser-side usage is not implicated by this code path. - The advisory’s prototype-pollution prerequisite can come from any dependency in the application’s tree, not necessarily from Axios itself, so a separate merge/parser bug elsewhere can be enough to trigger the header injection.
Remediation
Upgrade axios to version 0.31.1, 1.15.1 or higher.
References
critical severity
new
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Prototype Pollution through the mergeConfig code path in the request configuration handling. An attacker can influence request behavior by supplying a crafted config object with inherited properties such as transport, env, formSerializer, or transform callbacks on Object.prototype, causing Axios to use attacker-controlled settings during request dispatch and form serialization. This can redirect requests, alter serialization and response handling, and break application logic that relies on trusted per-request configuration.
Details
Prototype Pollution is a vulnerability affecting JavaScript. Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects. JavaScript allows all Object attributes to be altered, including their magical attributes such as __proto__, constructor and prototype. An attacker manipulates these attributes to overwrite, or pollute, a JavaScript application object prototype of the base object by injecting other values. Properties on the Object.prototype are then inherited by all the JavaScript objects through the prototype chain. When that happens, this leads to either denial of service by triggering JavaScript exceptions, or it tampers with the application source code to force the code path that the attacker injects, thereby leading to remote code execution.
There are two main ways in which the pollution of prototypes occurs:
Unsafe
Objectrecursive mergeProperty definition by path
Unsafe Object recursive merge
The logic of a vulnerable recursive merge function follows the following high-level model:
merge (target, source)
foreach property of source
if property exists and is an object on both the target and the source
merge(target[property], source[property])
else
target[property] = source[property]
When the source object contains a property named __proto__ defined with Object.defineProperty() , the condition that checks if the property exists and is an object on both the target and the source passes and the merge recurses with the target, being the prototype of Object and the source of Object as defined by the attacker. Properties are then copied on the Object prototype.
Clone operations are a special sub-class of unsafe recursive merges, which occur when a recursive merge is conducted on an empty object: merge({},source).
lodash and Hoek are examples of libraries susceptible to recursive merge attacks.
Property definition by path
There are a few JavaScript libraries that use an API to define property values on an object based on a given path. The function that is generally affected contains this signature: theFunction(object, path, value)
If the attacker can control the value of “path”, they can set this value to __proto__.myValue. myValue is then assigned to the prototype of the class of the object.
Types of attacks
There are a few methods by which Prototype Pollution can be manipulated:
| Type | Origin | Short description |
|---|---|---|
| Denial of service (DoS) | Client | This is the most likely attack. DoS occurs when Object holds generic functions that are implicitly called for various operations (for example, toString and valueOf). The attacker pollutes Object.prototype.someattr and alters its state to an unexpected value such as Int or Object. In this case, the code fails and is likely to cause a denial of service. For example: if an attacker pollutes Object.prototype.toString by defining it as an integer, if the codebase at any point was reliant on someobject.toString() it would fail. |
| Remote Code Execution | Client | Remote code execution is generally only possible in cases where the codebase evaluates a specific attribute of an object, and then executes that evaluation. For example: eval(someobject.someattr). In this case, if the attacker pollutes Object.prototype.someattr they are likely to be able to leverage this in order to execute code. |
| Property Injection | Client | The attacker pollutes properties that the codebase relies on for their informative value, including security properties such as cookies or tokens. For example: if a codebase checks privileges for someuser.isAdmin, then when the attacker pollutes Object.prototype.isAdmin and sets it to equal true, they can then achieve admin privileges. |
Affected environments
The following environments are susceptible to a Prototype Pollution attack:
Application server
Web server
Web browser
How to prevent
Freeze the prototype— use
Object.freeze (Object.prototype).Require schema validation of JSON input.
Avoid using unsafe recursive merge functions.
Consider using objects without prototypes (for example,
Object.create(null)), breaking the prototype chain and preventing pollution.As a best practice use
Mapinstead ofObject.
For more information on this vulnerability type:
Arteau, Olivier. “JavaScript prototype pollution attack in NodeJS application.” GitHub, 26 May 2018
Remediation
Upgrade axios to version 0.31.1, 1.15.1 or higher.
References
high severity
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Prototype Pollution via the mergeConfig function. An attacker can cause the application to crash by supplying a malicious configuration object containing a __proto__ property, typically by leveraging JSON.parse().
PoC
import axios from "axios";
const maliciousConfig = JSON.parse('{"__proto__": {"x": 1}}');
await axios.get("https://domain/get", maliciousConfig);
Details
Prototype Pollution is a vulnerability affecting JavaScript. Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects. JavaScript allows all Object attributes to be altered, including their magical attributes such as __proto__, constructor and prototype. An attacker manipulates these attributes to overwrite, or pollute, a JavaScript application object prototype of the base object by injecting other values. Properties on the Object.prototype are then inherited by all the JavaScript objects through the prototype chain. When that happens, this leads to either denial of service by triggering JavaScript exceptions, or it tampers with the application source code to force the code path that the attacker injects, thereby leading to remote code execution.
There are two main ways in which the pollution of prototypes occurs:
Unsafe
Objectrecursive mergeProperty definition by path
Unsafe Object recursive merge
The logic of a vulnerable recursive merge function follows the following high-level model:
merge (target, source)
foreach property of source
if property exists and is an object on both the target and the source
merge(target[property], source[property])
else
target[property] = source[property]
When the source object contains a property named __proto__ defined with Object.defineProperty() , the condition that checks if the property exists and is an object on both the target and the source passes and the merge recurses with the target, being the prototype of Object and the source of Object as defined by the attacker. Properties are then copied on the Object prototype.
Clone operations are a special sub-class of unsafe recursive merges, which occur when a recursive merge is conducted on an empty object: merge({},source).
lodash and Hoek are examples of libraries susceptible to recursive merge attacks.
Property definition by path
There are a few JavaScript libraries that use an API to define property values on an object based on a given path. The function that is generally affected contains this signature: theFunction(object, path, value)
If the attacker can control the value of “path”, they can set this value to __proto__.myValue. myValue is then assigned to the prototype of the class of the object.
Types of attacks
There are a few methods by which Prototype Pollution can be manipulated:
| Type | Origin | Short description |
|---|---|---|
| Denial of service (DoS) | Client | This is the most likely attack. DoS occurs when Object holds generic functions that are implicitly called for various operations (for example, toString and valueOf). The attacker pollutes Object.prototype.someattr and alters its state to an unexpected value such as Int or Object. In this case, the code fails and is likely to cause a denial of service. For example: if an attacker pollutes Object.prototype.toString by defining it as an integer, if the codebase at any point was reliant on someobject.toString() it would fail. |
| Remote Code Execution | Client | Remote code execution is generally only possible in cases where the codebase evaluates a specific attribute of an object, and then executes that evaluation. For example: eval(someobject.someattr). In this case, if the attacker pollutes Object.prototype.someattr they are likely to be able to leverage this in order to execute code. |
| Property Injection | Client | The attacker pollutes properties that the codebase relies on for their informative value, including security properties such as cookies or tokens. For example: if a codebase checks privileges for someuser.isAdmin, then when the attacker pollutes Object.prototype.isAdmin and sets it to equal true, they can then achieve admin privileges. |
Affected environments
The following environments are susceptible to a Prototype Pollution attack:
Application server
Web server
Web browser
How to prevent
Freeze the prototype— use
Object.freeze (Object.prototype).Require schema validation of JSON input.
Avoid using unsafe recursive merge functions.
Consider using objects without prototypes (for example,
Object.create(null)), breaking the prototype chain and preventing pollution.As a best practice use
Mapinstead ofObject.
For more information on this vulnerability type:
Arteau, Olivier. “JavaScript prototype pollution attack in NodeJS application.” GitHub, 26 May 2018
Remediation
Upgrade axios to version 0.30.3, 1.13.5 or higher.
References
high severity
new
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Uncontrolled Recursion through the toFormData recursive serializer in lib/helpers/toFormData.js. An attacker can crash a process by supplying a deeply nested object as request data or params, causing unbounded recursion and a call-stack overflow during multipart/form-data or query-string serialization.
Remediation
Upgrade axios to version 0.31.1, 1.15.1 or higher.
References
high severity
- Vulnerable module: cross-spawn
- Introduced through: gflow@5.1.2
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › gflow@5.1.2 › update-notifier@3.0.1 › boxen@3.2.0 › term-size@1.2.0 › execa@0.7.0 › cross-spawn@5.1.0
Overview
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by crafting a very large and well crafted string.
PoC
const { argument } = require('cross-spawn/lib/util/escape');
var str = "";
for (var i = 0; i < 1000000; i++) {
str += "\\";
}
str += "◎";
console.log("start")
argument(str)
console.log("end")
// run `npm install cross-spawn` and `node attack.js`
// then the program will stuck forever with high CPU usage
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade cross-spawn to version 6.0.6, 7.0.5 or higher.
References
high severity
- Vulnerable module: qs
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › qs@6.5.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › qs@6.5.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › qs@6.5.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2 › qs@6.5.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2 › qs@6.5.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2 › qs@6.5.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › qs@6.5.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › qs@6.5.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › qs@6.5.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › qs@6.5.5
Overview
qs is a querystring parser that supports nesting and arrays, with a depth limit.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via improper enforcement of the arrayLimit option in bracket notation parsing. An attacker can exhaust server memory and cause application unavailability by submitting a large number of bracket notation parameters - like a[]=1&a[]=2 - in a single HTTP request.
PoC
const qs = require('qs');
const attack = 'a[]=' + Array(10000).fill('x').join('&a[]=');
const result = qs.parse(attack, { arrayLimit: 100 });
console.log(result.a.length); // Output: 10000 (should be max 100)
Remediation
Upgrade qs to version 6.14.1 or higher.
References
high severity
- Vulnerable module: lodash
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › lodash@4.17.21Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
lodash is a modern JavaScript utility library delivering modularity, performance, & extras.
Affected versions of this package are vulnerable to Arbitrary Code Injection due the improper validation of options.imports key names in _.template. An attacker can execute arbitrary code at template compilation time by injecting malicious expressions. If Object.prototype has been polluted, inherited properties may also be copied into the imports object and executed.
Notes:
Version 4.18.0 was intended to fix this vulnerability but it got deprecated due to introducing a breaking functionality issue.
This issue is due to the incomplete fix for CVE-2021-23337.
Remediation
Upgrade lodash to version 4.18.1 or higher.
References
high severity
- Vulnerable module: tar
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/get-packed@4.0.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › libnpmaccess@4.0.3 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-dist-tag@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › libnpmpublish@4.0.2 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1
Overview
tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Directory Traversal via the extract() function. An attacker can read or write files outside the intended extraction directory by causing the application to extract a malicious archive containing a chain of symlinks leading to a hardlink, which bypasses path validation checks.
Details
A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.
Directory Traversal vulnerabilities can be generally divided into two types:
- Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.
st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.
If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.
curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa
Note %2e is the URL encoded version of . (dot).
- Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as
Zip-Slip.
One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.
The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:
2018-04-15 22:04:29 ..... 19 19 good.txt
2018-04-15 22:04:42 ..... 20 20 ../../../../../../root/.ssh/authorized_keys
Remediation
Upgrade tar to version 7.5.8 or higher.
References
high severity
- Vulnerable module: tar
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/get-packed@4.0.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › libnpmaccess@4.0.3 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-dist-tag@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › libnpmpublish@4.0.2 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1
Overview
tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Symlink Attack exploitable via stripAbsolutePath(), used by the Unpack class. An attacker can overwrite arbitrary files outside the intended extraction directory by including a hardlink whose linkpath uses a drive-relative path such as C:../target.txt in a malicious tar.
Details
A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.
Directory Traversal vulnerabilities can be generally divided into two types:
- Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.
st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.
If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.
curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa
Note %2e is the URL encoded version of . (dot).
- Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as
Zip-Slip.
One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.
The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:
2018-04-15 22:04:29 ..... 19 19 good.txt
2018-04-15 22:04:42 ..... 20 20 ../../../../../../root/.ssh/authorized_keys
Remediation
Upgrade tar to version 7.5.10 or higher.
References
high severity
- Vulnerable module: tar
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/get-packed@4.0.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › libnpmaccess@4.0.3 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-dist-tag@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › libnpmpublish@4.0.2 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1
Overview
tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Symlink Attack via tar.x() extraction, which allows an attacker to overwrite arbitrary files outside the intended extraction directory with a drive-relative symlink target - like C:../../../target.txt.
PoC
const fs = require('fs')
const path = require('path')
const { Header, x } = require('tar')
const cwd = process.cwd()
const target = path.resolve(cwd, '..', 'target.txt')
const tarFile = path.join(cwd, 'poc.tar')
fs.writeFileSync(target, 'ORIGINAL\n')
const b = Buffer.alloc(1536)
new Header({
path: 'a/b/l',
type: 'SymbolicLink',
linkpath: 'C:../../../target.txt',
}).encode(b, 0)
fs.writeFileSync(tarFile, b)
x({ cwd, file: tarFile }).then(() => {
fs.writeFileSync(path.join(cwd, 'a/b/l'), 'PWNED\n')
process.stdout.write(fs.readFileSync(target, 'utf8'))
})
Details
A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.
Directory Traversal vulnerabilities can be generally divided into two types:
- Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.
st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.
If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.
curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa
Note %2e is the URL encoded version of . (dot).
- Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as
Zip-Slip.
One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.
The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:
2018-04-15 22:04:29 ..... 19 19 good.txt
2018-04-15 22:04:42 ..... 20 20 ../../../../../../root/.ssh/authorized_keys
Remediation
Upgrade tar to version 7.5.11 or higher.
References
high severity
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@1.22.0.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the trim function.
PoC
// poc.js
var {trim} = require("axios/lib/utils");
function build_blank (n) {
var ret = "1"
for (var i = 0; i < n; i++) {
ret += " "
}
return ret + "1";
}
var time = Date.now();
trim(build_blank(50000))
var time_cost = Date.now() - time;
console.log("time_cost: " + time_cost)
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade axios to version 0.21.3 or higher.
References
high severity
- Vulnerable module: semver
- Introduced through: @commitlint/cli@16.3.0 and @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @commitlint/cli@16.3.0 › @commitlint/lint@16.2.4 › @commitlint/is-ignored@16.2.4 › semver@7.3.7Remediation: Upgrade to @commitlint/cli@17.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › semver@7.3.2Remediation: Upgrade to @tsed/monorepo-utils@2.0.0.
Overview
semver is a semantic version parser used by npm.
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.
PoC
const semver = require('semver')
const lengths_2 = [2000, 4000, 8000, 16000, 32000, 64000, 128000]
console.log("n[+] Valid range - Test payloads")
for (let i = 0; i =1.2.3' + ' '.repeat(lengths_2[i]) + '<1.3.0';
const start = Date.now()
semver.validRange(value)
// semver.minVersion(value)
// semver.maxSatisfying(["1.2.3"], value)
// semver.minSatisfying(["1.2.3"], value)
// new semver.Range(value, {})
const end = Date.now();
console.log('length=%d, time=%d ms', value.length, end - start);
}
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade semver to version 5.7.2, 6.3.1, 7.5.2 or higher.
References
high severity
- Vulnerable module: parse-path
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › git-url-parse@11.6.0 › git-up@4.0.5 › parse-url@6.0.5 › parse-path@4.0.4Remediation: Upgrade to lerna@5.1.8.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › git-url-parse@11.6.0 › git-up@4.0.5 › parse-url@6.0.5 › parse-path@4.0.4Remediation: Upgrade to lerna@5.1.8.
Overview
parse-path is a Parse paths (local paths, urls: ssh/git/etc)
Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key which is unable to detect the right resource.
Remediation
Upgrade parse-path to version 5.0.0 or higher.
References
high severity
- Vulnerable module: lodash.template
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/conventional-commits@4.0.0 › lodash.template@4.18.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/conventional-commits@4.0.0 › lodash.template@4.18.1
Overview
lodash.template is a The Lodash method _.template exported as a Node.js module.
Affected versions of this package are vulnerable to Code Injection due the improper validation of options.variable key names in _.template. An attacker can execute arbitrary code at template compilation time by injecting malicious expressions. If Object.prototype has been polluted, inherited properties may also be copied into the imports object and executed.
PoC
var _ = require('lodash');
_.template('', { variable: '){console.log(process.env)}; with(obj' })()
Remediation
There is no fixed version for lodash.template.
References
high severity
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.0.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) due to inserting the X-XSRF-TOKEN header using the secret XSRF-TOKEN cookie value in all requests to any server when the XSRF-TOKEN0 cookie is available, and the withCredentials setting is turned on. If a malicious user manages to obtain this value, it can potentially lead to the XSRF defence mechanism bypass.
Workaround
Users should change the default XSRF-TOKEN cookie name in the Axios configuration and manually include the corresponding header only in the specific places where it's necessary.
Remediation
Upgrade axios to version 0.28.0, 1.6.0 or higher.
References
high severity
new
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to HTTP Response Splitting via the parseTokens header processing path in lib/core/AxiosHeaders.js. An attacker can smuggle HTTP requests or inject arbitrary headers by supplying a header value containing \r\n, which Axios merges into an outbound request. Under specific conditions, this can be used to exfiltrate cloud metadata tokens, pivot into internal services, or poison downstream HTTP traffic.
Notes
- Exploitation requires prior successful prototype pollution in a third-party dependency, enabling attacker-controlled header data to flow into Axios via configuration merging or
AxiosHeaders.set(...). - IMDSv2 token exfiltration (described in the original vulnerability report as another step in the exploit chain following the smuggling of a
PUTrequest) further depends on the application running in an AWS environment with instance metadata access enabled, and on the Axios process having network access to the metadata endpoint. - A possible but uncommon vector mentioned in the maintainers' advisory relies on the use of a non standard Axios transport mechanism, e.g. a custom adapter, to bypass Node.js header validation, thereby permitting malformed or injected header values to be transmitted without rejection. In most cases, this vector is blocked by Node.JS's built in header validation.
Remediation
Upgrade axios to version 0.31.0, 1.15.0 or higher.
References
medium severity
- Vulnerable module: @octokit/plugin-paginate-rest
- Introduced through: semantic-release@17.4.7 and lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › semantic-release@17.4.7 › @semantic-release/github@7.2.3 › @octokit/rest@18.12.0 › @octokit/plugin-paginate-rest@2.21.3Remediation: Upgrade to semantic-release@18.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › @octokit/rest@18.12.0 › @octokit/plugin-paginate-rest@2.21.3
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › @octokit/rest@18.12.0 › @octokit/plugin-paginate-rest@2.21.3
Overview
@octokit/plugin-paginate-rest is an Octokit plugin to paginate REST API endpoint responses
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) through the octokit.paginate.iterator process. An attacker can cause significant performance degradation and potential service unresponsiveness by injecting a malicious Link header in the request.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade @octokit/plugin-paginate-rest to version 9.2.2, 11.4.1 or higher.
References
medium severity
- Vulnerable module: @octokit/request
- Introduced through: semantic-release@17.4.7 and lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › semantic-release@17.4.7 › @semantic-release/github@7.2.3 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/request@5.6.3Remediation: Upgrade to semantic-release@18.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › semantic-release@17.4.7 › @semantic-release/github@7.2.3 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/graphql@4.8.0 › @octokit/request@5.6.3Remediation: Upgrade to semantic-release@18.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/request@5.6.3
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/graphql@4.8.0 › @octokit/request@5.6.3
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/request@5.6.3
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/graphql@4.8.0 › @octokit/request@5.6.3
Overview
@octokit/request is a Send parameterized requests to GitHub's APIs with sensible defaults in browsers and Node
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) through the link header processing. An attacker can cause excessive CPU usage and potentially make the server unresponsive by sending a specially crafted link header designed to trigger inefficient regex backtracking.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade @octokit/request to version 8.4.1, 9.2.1 or higher.
References
medium severity
- Vulnerable module: @octokit/request-error
- Introduced through: semantic-release@17.4.7 and lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › semantic-release@17.4.7 › @semantic-release/github@7.2.3 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/request-error@2.1.0Remediation: Upgrade to semantic-release@18.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › semantic-release@17.4.7 › @semantic-release/github@7.2.3 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/request@5.6.3 › @octokit/request-error@2.1.0Remediation: Upgrade to semantic-release@18.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/request-error@2.1.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › semantic-release@17.4.7 › @semantic-release/github@7.2.3 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/graphql@4.8.0 › @octokit/request@5.6.3 › @octokit/request-error@2.1.0Remediation: Upgrade to semantic-release@18.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/request@5.6.3 › @octokit/request-error@2.1.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/request-error@2.1.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/graphql@4.8.0 › @octokit/request@5.6.3 › @octokit/request-error@2.1.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/request@5.6.3 › @octokit/request-error@2.1.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › @octokit/rest@18.12.0 › @octokit/core@3.6.0 › @octokit/graphql@4.8.0 › @octokit/request@5.6.3 › @octokit/request-error@2.1.0
Overview
@octokit/request-error is an Error class for Octokit request errors
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper handling of the authorization header. An attacker can cause excessive CPU usage and potentially freeze the server by sending a specially crafted authorization header containing a long sequence of spaces followed by a newline and "@".
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade @octokit/request-error to version 5.1.1, 6.1.7 or higher.
References
medium severity
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the data: URL handler. An attacker can trigger a denial of service by crafting a data: URL with an excessive payload, causing allocation of memory for content decoding before verifying content size limits.
Remediation
Upgrade axios to version 0.30.0, 1.12.0 or higher.
References
medium severity
new
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to the data.pipe(req) upload path in the HTTP adapter. An attacker can send a streamed request body larger than the configured maxBodyLength while maxRedirects is 0, causing the client to transmit the oversized payload to the server instead of stopping at the limit. This lets a remote peer force excessive bandwidth and request processing on applications that rely on maxBodyLength to cap upload size, potentially exhausting resources and disrupting service.
Remediation
Upgrade axios to version 0.31.1, 1.15.1 or higher.
References
medium severity
new
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the HTTP response handling path in the http.js adapter. An attacker can force a client to accept and process a response body larger than maxContentLength by sending a streamed response with an oversized payload. This allows a remote server to bypass the configured response-size limit, causing the application to read and buffer more data than intended, potentially exhausting memory or stalling request processing.
Remediation
Upgrade axios to version 0.31.1, 1.15.1 or higher.
References
medium severity
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.0.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). An attacker can deplete system resources by providing a manipulated string as input to the format method, causing the regular expression to exhibit a time complexity of O(n^2). This makes the server to become unable to provide normal service due to the excessive cost and time wasted in processing vulnerable regular expressions.
PoC
const axios = require('axios');
console.time('t1');
axios.defaults.baseURL = '/'.repeat(10000) + 'a/';
axios.get('/a').then(()=>{}).catch(()=>{});
console.timeEnd('t1');
console.time('t2');
axios.defaults.baseURL = '/'.repeat(100000) + 'a/';
axios.get('/a').then(()=>{}).catch(()=>{});
console.timeEnd('t2');
/* stdout
t1: 60.826ms
t2: 5.826s
*/
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade axios to version 0.29.0, 1.6.3 or higher.
References
medium severity
new
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through the AxiosHeaders normalization path and shouldBypassProxy helper. An attacker can smuggle CRLF and other control characters into request header values by supplying crafted header input, causing injected header fields to be sent on outbound requests and potentially altering how downstream servers interpret the request; in proxy configurations, a request to localhost, 127.0.0.1, or ::1 can be routed differently depending on the no_proxy entry, allowing loopback traffic to bypass the intended proxy handling.
Remediation
Upgrade axios to version 0.31.1, 1.15.1 or higher.
References
medium severity
- Vulnerable module: lodash
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › lodash@4.17.21Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
lodash is a modern JavaScript utility library delivering modularity, performance, & extras.
Affected versions of this package are vulnerable to Prototype Pollution via the _.unset and _.omit functions. An attacker can delete methods held in properties of global prototypes but cannot overwrite those properties.
Details
Prototype Pollution is a vulnerability affecting JavaScript. Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects. JavaScript allows all Object attributes to be altered, including their magical attributes such as __proto__, constructor and prototype. An attacker manipulates these attributes to overwrite, or pollute, a JavaScript application object prototype of the base object by injecting other values. Properties on the Object.prototype are then inherited by all the JavaScript objects through the prototype chain. When that happens, this leads to either denial of service by triggering JavaScript exceptions, or it tampers with the application source code to force the code path that the attacker injects, thereby leading to remote code execution.
There are two main ways in which the pollution of prototypes occurs:
Unsafe
Objectrecursive mergeProperty definition by path
Unsafe Object recursive merge
The logic of a vulnerable recursive merge function follows the following high-level model:
merge (target, source)
foreach property of source
if property exists and is an object on both the target and the source
merge(target[property], source[property])
else
target[property] = source[property]
When the source object contains a property named __proto__ defined with Object.defineProperty() , the condition that checks if the property exists and is an object on both the target and the source passes and the merge recurses with the target, being the prototype of Object and the source of Object as defined by the attacker. Properties are then copied on the Object prototype.
Clone operations are a special sub-class of unsafe recursive merges, which occur when a recursive merge is conducted on an empty object: merge({},source).
lodash and Hoek are examples of libraries susceptible to recursive merge attacks.
Property definition by path
There are a few JavaScript libraries that use an API to define property values on an object based on a given path. The function that is generally affected contains this signature: theFunction(object, path, value)
If the attacker can control the value of “path”, they can set this value to __proto__.myValue. myValue is then assigned to the prototype of the class of the object.
Types of attacks
There are a few methods by which Prototype Pollution can be manipulated:
| Type | Origin | Short description |
|---|---|---|
| Denial of service (DoS) | Client | This is the most likely attack. DoS occurs when Object holds generic functions that are implicitly called for various operations (for example, toString and valueOf). The attacker pollutes Object.prototype.someattr and alters its state to an unexpected value such as Int or Object. In this case, the code fails and is likely to cause a denial of service. For example: if an attacker pollutes Object.prototype.toString by defining it as an integer, if the codebase at any point was reliant on someobject.toString() it would fail. |
| Remote Code Execution | Client | Remote code execution is generally only possible in cases where the codebase evaluates a specific attribute of an object, and then executes that evaluation. For example: eval(someobject.someattr). In this case, if the attacker pollutes Object.prototype.someattr they are likely to be able to leverage this in order to execute code. |
| Property Injection | Client | The attacker pollutes properties that the codebase relies on for their informative value, including security properties such as cookies or tokens. For example: if a codebase checks privileges for someuser.isAdmin, then when the attacker pollutes Object.prototype.isAdmin and sets it to equal true, they can then achieve admin privileges. |
Affected environments
The following environments are susceptible to a Prototype Pollution attack:
Application server
Web server
Web browser
How to prevent
Freeze the prototype— use
Object.freeze (Object.prototype).Require schema validation of JSON input.
Avoid using unsafe recursive merge functions.
Consider using objects without prototypes (for example,
Object.create(null)), breaking the prototype chain and preventing pollution.As a best practice use
Mapinstead ofObject.
For more information on this vulnerability type:
Arteau, Olivier. “JavaScript prototype pollution attack in NodeJS application.” GitHub, 26 May 2018
Remediation
Upgrade lodash to version 4.17.23 or higher.
References
medium severity
- Vulnerable module: lodash
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › lodash@4.17.21Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
lodash is a modern JavaScript utility library delivering modularity, performance, & extras.
Affected versions of this package are vulnerable to Prototype Pollution via the _.unset and _.omit functions. An attacker can delete properties from built-in prototypes by supplying array-wrapped path segments, potentially impacting application behaviour.
Notes:
Version 4.18.0 was intended to fix this vulnerability but it got deprecated due to introducing a breaking functionality issue.
This issue is due to incomplete fix for CVE-2025-13465 which protects only against string key members.
Details
Prototype Pollution is a vulnerability affecting JavaScript. Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects. JavaScript allows all Object attributes to be altered, including their magical attributes such as __proto__, constructor and prototype. An attacker manipulates these attributes to overwrite, or pollute, a JavaScript application object prototype of the base object by injecting other values. Properties on the Object.prototype are then inherited by all the JavaScript objects through the prototype chain. When that happens, this leads to either denial of service by triggering JavaScript exceptions, or it tampers with the application source code to force the code path that the attacker injects, thereby leading to remote code execution.
There are two main ways in which the pollution of prototypes occurs:
Unsafe
Objectrecursive mergeProperty definition by path
Unsafe Object recursive merge
The logic of a vulnerable recursive merge function follows the following high-level model:
merge (target, source)
foreach property of source
if property exists and is an object on both the target and the source
merge(target[property], source[property])
else
target[property] = source[property]
When the source object contains a property named __proto__ defined with Object.defineProperty() , the condition that checks if the property exists and is an object on both the target and the source passes and the merge recurses with the target, being the prototype of Object and the source of Object as defined by the attacker. Properties are then copied on the Object prototype.
Clone operations are a special sub-class of unsafe recursive merges, which occur when a recursive merge is conducted on an empty object: merge({},source).
lodash and Hoek are examples of libraries susceptible to recursive merge attacks.
Property definition by path
There are a few JavaScript libraries that use an API to define property values on an object based on a given path. The function that is generally affected contains this signature: theFunction(object, path, value)
If the attacker can control the value of “path”, they can set this value to __proto__.myValue. myValue is then assigned to the prototype of the class of the object.
Types of attacks
There are a few methods by which Prototype Pollution can be manipulated:
| Type | Origin | Short description |
|---|---|---|
| Denial of service (DoS) | Client | This is the most likely attack. DoS occurs when Object holds generic functions that are implicitly called for various operations (for example, toString and valueOf). The attacker pollutes Object.prototype.someattr and alters its state to an unexpected value such as Int or Object. In this case, the code fails and is likely to cause a denial of service. For example: if an attacker pollutes Object.prototype.toString by defining it as an integer, if the codebase at any point was reliant on someobject.toString() it would fail. |
| Remote Code Execution | Client | Remote code execution is generally only possible in cases where the codebase evaluates a specific attribute of an object, and then executes that evaluation. For example: eval(someobject.someattr). In this case, if the attacker pollutes Object.prototype.someattr they are likely to be able to leverage this in order to execute code. |
| Property Injection | Client | The attacker pollutes properties that the codebase relies on for their informative value, including security properties such as cookies or tokens. For example: if a codebase checks privileges for someuser.isAdmin, then when the attacker pollutes Object.prototype.isAdmin and sets it to equal true, they can then achieve admin privileges. |
Affected environments
The following environments are susceptible to a Prototype Pollution attack:
Application server
Web server
Web browser
How to prevent
Freeze the prototype— use
Object.freeze (Object.prototype).Require schema validation of JSON input.
Avoid using unsafe recursive merge functions.
Consider using objects without prototypes (for example,
Object.create(null)), breaking the prototype chain and preventing pollution.As a best practice use
Mapinstead ofObject.
For more information on this vulnerability type:
Arteau, Olivier. “JavaScript prototype pollution attack in NodeJS application.” GitHub, 26 May 2018
Remediation
Upgrade lodash to version 4.18.1 or higher.
References
medium severity
- Vulnerable module: tmp
- Introduced through: @tsed/monorepo-utils@1.19.3, gflow@5.1.2 and others
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › inquirer@7.1.0 › external-editor@3.1.0 › tmp@0.0.33
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › gflow@5.1.2 › inquirer@7.3.3 › external-editor@3.1.0 › tmp@0.0.33
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/clean@4.0.0 › @lerna/prompt@4.0.0 › inquirer@7.3.3 › external-editor@3.1.0 › tmp@0.0.33
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/import@4.0.0 › @lerna/prompt@4.0.0 › inquirer@7.3.3 › external-editor@3.1.0 › tmp@0.0.33
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/prompt@4.0.0 › inquirer@7.3.3 › external-editor@3.1.0 › tmp@0.0.33
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/prompt@4.0.0 › inquirer@7.3.3 › external-editor@3.1.0 › tmp@0.0.33
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/otplease@4.0.0 › @lerna/prompt@4.0.0 › inquirer@7.3.3 › external-editor@3.1.0 › tmp@0.0.33
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/prompt@4.0.0 › inquirer@7.3.3 › external-editor@3.1.0 › tmp@0.0.33
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-dist-tag@4.0.0 › @lerna/otplease@4.0.0 › @lerna/prompt@4.0.0 › inquirer@7.3.3 › external-editor@3.1.0 › tmp@0.0.33
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/otplease@4.0.0 › @lerna/prompt@4.0.0 › inquirer@7.3.3 › external-editor@3.1.0 › tmp@0.0.33
Overview
Affected versions of this package are vulnerable to Symlink Attack via the dir parameter. An attacker can cause files or directories to be written to arbitrary locations by supplying a crafted symbolic link that resolves outside the intended temporary directory.
PoC
const tmp = require('tmp');
const tmpobj = tmp.fileSync({ 'dir': 'evil-dir'});
console.log('File: ', tmpobj.name);
try {
tmp.fileSync({ 'dir': 'mydir1'});
} catch (err) {
console.log('test 1:', err.message)
}
try {
tmp.fileSync({ 'dir': '/foo'});
} catch (err) {
console.log('test 2:', err.message)
}
try {
const fs = require('node:fs');
const resolved = fs.realpathSync('/tmp/evil-dir');
tmp.fileSync({ 'dir': resolved});
} catch (err) {
console.log('test 3:', err.message)
}
Remediation
Upgrade tmp to version 0.2.4 or higher.
References
medium severity
- Vulnerable module: parse-url
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › git-url-parse@11.6.0 › git-up@4.0.5 › parse-url@6.0.5Remediation: Upgrade to lerna@5.5.2.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › git-url-parse@11.6.0 › git-up@4.0.5 › parse-url@6.0.5Remediation: Upgrade to lerna@5.5.2.
Overview
parse-url is an An advanced url parser supporting git urls too.
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) due to improper detection of protocol, resource, and pathname fields. Exploiting this vulnerability results in bypassing protocol verification.
PoC:
import parseUrl from "parse-url";
import fetch from 'node-fetch';
var parsed=parseUrl("http://nnnn@localhost:808:/?id=xss")
if(parsed.resource=="localhost"){
console.log("internal network access is blocked")
}
else{
const response = await fetch('http://'+parsed.resource+parsed.pathname);
console.log(response)
}
Remediation
Upgrade parse-url to version 8.1.0 or higher.
References
medium severity
- Vulnerable module: request
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2
Overview
request is a simplified http request client.
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) due to insufficient checks in the lib/redirect.js file by allowing insecure redirects in the default configuration, via an attacker-controller server that does a cross-protocol redirect (HTTP to HTTPS, or HTTPS to HTTP).
NOTE: request package has been deprecated, so a fix is not expected. See https://github.com/request/request/issues/3142.
Remediation
A fix was pushed into the master branch but not yet published.
References
medium severity
- Vulnerable module: tar
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
Overview
tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') due to the lack of folders count validation during the folder creation process. An attacker who generates a large number of sub-folders can consume memory on the system running the software and even crash the client within few seconds of running it using a path with too many sub-folders inside.
Remediation
Upgrade tar to version 6.2.1 or higher.
References
medium severity
- Vulnerable module: tough-cookie
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › tough-cookie@2.5.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › tough-cookie@2.5.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › tough-cookie@2.5.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2 › tough-cookie@2.5.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2 › tough-cookie@2.5.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2 › tough-cookie@2.5.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › tough-cookie@2.5.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › tough-cookie@2.5.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › tough-cookie@2.5.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › tough-cookie@2.5.0
Overview
tough-cookie is a RFC6265 Cookies and CookieJar module for Node.js.
Affected versions of this package are vulnerable to Prototype Pollution due to improper handling of Cookies when using CookieJar in rejectPublicSuffixes=false mode. Due to an issue with the manner in which the objects are initialized, an attacker can expose or modify a limited amount of property information on those objects. There is no impact to availability.
PoC
// PoC.js
async function main(){
var tough = require("tough-cookie");
var cookiejar = new tough.CookieJar(undefined,{rejectPublicSuffixes:false});
// Exploit cookie
await cookiejar.setCookie(
"Slonser=polluted; Domain=__proto__; Path=/notauth",
"https://__proto__/admin"
);
// normal cookie
var cookie = await cookiejar.setCookie(
"Auth=Lol; Domain=google.com; Path=/notauth",
"https://google.com/"
);
//Exploit cookie
var a = {};
console.log(a["/notauth"]["Slonser"])
}
main();
Details
Prototype Pollution is a vulnerability affecting JavaScript. Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects. JavaScript allows all Object attributes to be altered, including their magical attributes such as __proto__, constructor and prototype. An attacker manipulates these attributes to overwrite, or pollute, a JavaScript application object prototype of the base object by injecting other values. Properties on the Object.prototype are then inherited by all the JavaScript objects through the prototype chain. When that happens, this leads to either denial of service by triggering JavaScript exceptions, or it tampers with the application source code to force the code path that the attacker injects, thereby leading to remote code execution.
There are two main ways in which the pollution of prototypes occurs:
Unsafe
Objectrecursive mergeProperty definition by path
Unsafe Object recursive merge
The logic of a vulnerable recursive merge function follows the following high-level model:
merge (target, source)
foreach property of source
if property exists and is an object on both the target and the source
merge(target[property], source[property])
else
target[property] = source[property]
When the source object contains a property named __proto__ defined with Object.defineProperty() , the condition that checks if the property exists and is an object on both the target and the source passes and the merge recurses with the target, being the prototype of Object and the source of Object as defined by the attacker. Properties are then copied on the Object prototype.
Clone operations are a special sub-class of unsafe recursive merges, which occur when a recursive merge is conducted on an empty object: merge({},source).
lodash and Hoek are examples of libraries susceptible to recursive merge attacks.
Property definition by path
There are a few JavaScript libraries that use an API to define property values on an object based on a given path. The function that is generally affected contains this signature: theFunction(object, path, value)
If the attacker can control the value of “path”, they can set this value to __proto__.myValue. myValue is then assigned to the prototype of the class of the object.
Types of attacks
There are a few methods by which Prototype Pollution can be manipulated:
| Type | Origin | Short description |
|---|---|---|
| Denial of service (DoS) | Client | This is the most likely attack. DoS occurs when Object holds generic functions that are implicitly called for various operations (for example, toString and valueOf). The attacker pollutes Object.prototype.someattr and alters its state to an unexpected value such as Int or Object. In this case, the code fails and is likely to cause a denial of service. For example: if an attacker pollutes Object.prototype.toString by defining it as an integer, if the codebase at any point was reliant on someobject.toString() it would fail. |
| Remote Code Execution | Client | Remote code execution is generally only possible in cases where the codebase evaluates a specific attribute of an object, and then executes that evaluation. For example: eval(someobject.someattr). In this case, if the attacker pollutes Object.prototype.someattr they are likely to be able to leverage this in order to execute code. |
| Property Injection | Client | The attacker pollutes properties that the codebase relies on for their informative value, including security properties such as cookies or tokens. For example: if a codebase checks privileges for someuser.isAdmin, then when the attacker pollutes Object.prototype.isAdmin and sets it to equal true, they can then achieve admin privileges. |
Affected environments
The following environments are susceptible to a Prototype Pollution attack:
Application server
Web server
Web browser
How to prevent
Freeze the prototype— use
Object.freeze (Object.prototype).Require schema validation of JSON input.
Avoid using unsafe recursive merge functions.
Consider using objects without prototypes (for example,
Object.create(null)), breaking the prototype chain and preventing pollution.As a best practice use
Mapinstead ofObject.
For more information on this vulnerability type:
Arteau, Olivier. “JavaScript prototype pollution attack in NodeJS application.” GitHub, 26 May 2018
Remediation
Upgrade tough-cookie to version 4.1.3 or higher.
References
medium severity
- Vulnerable module: tar
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/get-packed@4.0.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › libnpmaccess@4.0.3 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-dist-tag@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › libnpmpublish@4.0.2 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1
Overview
tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Improper Handling of Unicode Encoding in Path Reservations via Unicode Sharp-S (ß) Collisions on macOS APFS. An attacker can overwrite arbitrary files by exploiting Unicode normalization collisions in filenames within a malicious tar archive on case-insensitive or normalization-insensitive filesystems.
Note:
This is only exploitable if the system is running on a filesystem such as macOS APFS or HFS+ that ignores Unicode normalization.
Workaround
This vulnerability can be mitigated by filtering out all SymbolicLink entries when extracting tarball data.
PoC
const tar = require('tar');
const fs = require('fs');
const path = require('path');
const { PassThrough } = require('stream');
const exploitDir = path.resolve('race_exploit_dir');
if (fs.existsSync(exploitDir)) fs.rmSync(exploitDir, { recursive: true, force: true });
fs.mkdirSync(exploitDir);
console.log('[*] Testing...');
console.log(`[*] Extraction target: ${exploitDir}`);
// Construct stream
const stream = new PassThrough();
const contentA = 'A'.repeat(1000);
const contentB = 'B'.repeat(1000);
// Key 1: "f_ss"
const header1 = new tar.Header({
path: 'collision_ss',
mode: 0o644,
size: contentA.length,
});
header1.encode();
// Key 2: "f_ß"
const header2 = new tar.Header({
path: 'collision_ß',
mode: 0o644,
size: contentB.length,
});
header2.encode();
// Write to stream
stream.write(header1.block);
stream.write(contentA);
stream.write(Buffer.alloc(512 - (contentA.length % 512))); // Padding
stream.write(header2.block);
stream.write(contentB);
stream.write(Buffer.alloc(512 - (contentB.length % 512))); // Padding
// End
stream.write(Buffer.alloc(1024));
stream.end();
// Extract
const extract = new tar.Unpack({
cwd: exploitDir,
// Ensure jobs is high enough to allow parallel processing if locks fail
jobs: 8
});
stream.pipe(extract);
extract.on('end', () => {
console.log('[*] Extraction complete');
// Check what exists
const files = fs.readdirSync(exploitDir);
console.log('[*] Files in exploit dir:', files);
files.forEach(f => {
const p = path.join(exploitDir, f);
const stat = fs.statSync(p);
const content = fs.readFileSync(p, 'utf8');
console.log(`File: ${f}, Inode: ${stat.ino}, Content: ${content.substring(0, 10)}... (Length: ${content.length})`);
});
if (files.length === 1 || (files.length === 2 && fs.statSync(path.join(exploitDir, files[0])).ino === fs.statSync(path.join(exploitDir, files[1])).ino)) {
console.log('\[*] GOOD');
} else {
console.log('[-] No collision');
}
});
Remediation
Upgrade tar to version 7.5.4 or higher.
References
medium severity
new
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output through the encode function in AxiosURLSearchParams. An attacker can smuggle a NUL byte into serialized query strings by supplying crafted parameter values, causing downstream parsers or backend components to misinterpret the request and potentially truncate or alter parameter handling.
Notes: Standard axios request flow (buildURL) uses its own encode function, which does NOT have this bug. Only triggered via direct AxiosURLSearchParams.toString() without an encoder, or via custom paramsSerializer delegation
Remediation
Upgrade axios to version 0.31.1, 1.15.1 or higher.
References
medium severity
new
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Prototype Pollution via the mergeDirectKeys function in mergeConfig. An attacker can force a request configuration to inherit attacker-controlled properties by supplying a polluted Object.prototype, causing Axios to read inherited values, such as validateStatus, during config merging.
This lets a malicious page or library alter how responses are handled, including making 4xx and 5xx responses be treated as successful and bypassing normal error handling in applications that rely on Axios defaults.
Details
Prototype Pollution is a vulnerability affecting JavaScript. Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects. JavaScript allows all Object attributes to be altered, including their magical attributes such as __proto__, constructor and prototype. An attacker manipulates these attributes to overwrite, or pollute, a JavaScript application object prototype of the base object by injecting other values. Properties on the Object.prototype are then inherited by all the JavaScript objects through the prototype chain. When that happens, this leads to either denial of service by triggering JavaScript exceptions, or it tampers with the application source code to force the code path that the attacker injects, thereby leading to remote code execution.
There are two main ways in which the pollution of prototypes occurs:
Unsafe
Objectrecursive mergeProperty definition by path
Unsafe Object recursive merge
The logic of a vulnerable recursive merge function follows the following high-level model:
merge (target, source)
foreach property of source
if property exists and is an object on both the target and the source
merge(target[property], source[property])
else
target[property] = source[property]
When the source object contains a property named __proto__ defined with Object.defineProperty() , the condition that checks if the property exists and is an object on both the target and the source passes and the merge recurses with the target, being the prototype of Object and the source of Object as defined by the attacker. Properties are then copied on the Object prototype.
Clone operations are a special sub-class of unsafe recursive merges, which occur when a recursive merge is conducted on an empty object: merge({},source).
lodash and Hoek are examples of libraries susceptible to recursive merge attacks.
Property definition by path
There are a few JavaScript libraries that use an API to define property values on an object based on a given path. The function that is generally affected contains this signature: theFunction(object, path, value)
If the attacker can control the value of “path”, they can set this value to __proto__.myValue. myValue is then assigned to the prototype of the class of the object.
Types of attacks
There are a few methods by which Prototype Pollution can be manipulated:
| Type | Origin | Short description |
|---|---|---|
| Denial of service (DoS) | Client | This is the most likely attack. DoS occurs when Object holds generic functions that are implicitly called for various operations (for example, toString and valueOf). The attacker pollutes Object.prototype.someattr and alters its state to an unexpected value such as Int or Object. In this case, the code fails and is likely to cause a denial of service. For example: if an attacker pollutes Object.prototype.toString by defining it as an integer, if the codebase at any point was reliant on someobject.toString() it would fail. |
| Remote Code Execution | Client | Remote code execution is generally only possible in cases where the codebase evaluates a specific attribute of an object, and then executes that evaluation. For example: eval(someobject.someattr). In this case, if the attacker pollutes Object.prototype.someattr they are likely to be able to leverage this in order to execute code. |
| Property Injection | Client | The attacker pollutes properties that the codebase relies on for their informative value, including security properties such as cookies or tokens. For example: if a codebase checks privileges for someuser.isAdmin, then when the attacker pollutes Object.prototype.isAdmin and sets it to equal true, they can then achieve admin privileges. |
Affected environments
The following environments are susceptible to a Prototype Pollution attack:
Application server
Web server
Web browser
How to prevent
Freeze the prototype— use
Object.freeze (Object.prototype).Require schema validation of JSON input.
Avoid using unsafe recursive merge functions.
Consider using objects without prototypes (for example,
Object.create(null)), breaking the prototype chain and preventing pollution.As a best practice use
Mapinstead ofObject.
For more information on this vulnerability type:
Arteau, Olivier. “JavaScript prototype pollution attack in NodeJS application.” GitHub, 26 May 2018
Remediation
Upgrade axios to version 0.31.1, 1.15.1 or higher.
References
medium severity
new
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Unintended Proxy or Intermediary ('Confused Deputy') via improper hostname normalization in the NO_PROXY environment variable. An attacker controlling request URLs can access internal or loopback services by crafting requests (with a trailing dot or [::1]) that bypass proxy restrictions, causing sensitive requests to be routed through an unintended proxy.
Note:
This is only exploitable if the application relies on NO_PROXY=localhost,127.0.0.1,::1 for protecting loopback/internal access.
Remediation
Upgrade axios to version 0.31.0, 1.15.0 or higher.
References
medium severity
new
- Vulnerable module: uuid
- Introduced through: lerna@4.0.0 and nyc@15.1.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › temp-write@4.0.0 › uuid@3.4.0Remediation: Upgrade to lerna@5.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › temp-write@4.0.0 › uuid@3.4.0Remediation: Upgrade to lerna@5.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › temp-write@4.0.0 › uuid@3.4.0Remediation: Upgrade to lerna@5.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › uuid@3.4.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › uuid@3.4.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › uuid@3.4.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2 › uuid@3.4.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2 › uuid@3.4.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › request@2.88.2 › uuid@3.4.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › uuid@3.4.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › uuid@3.4.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › uuid@3.4.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › request@2.88.2 › uuid@3.4.0
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › nyc@15.1.0 › istanbul-lib-processinfo@2.0.3 › uuid@8.3.2
Overview
uuid is a RFC4122 (v1, v4, and v5) compliant UUID library.
Affected versions of this package are vulnerable to Improper Validation of Specified Index, Position, or Offset in Input due to accepting external output buffers but not rejecting out-of-range writes (small buf or large offset). This inconsistency allows silent partial writes into caller-provided buffers.
PoC
cd /home/StrawHat/uuid
npm ci
npm run build
node --input-type=module -e "
import {v4,v5,v6} from './dist-node/index.js';
const ns='6ba7b810-9dad-11d1-80b4-00c04fd430c8';
for (const [name,fn] of [
['v4',()=>v4({},new Uint8Array(8),4)],
['v5',()=>v5('x',ns,new Uint8Array(8),4)],
['v6',()=>v6({},new Uint8Array(8),4)],
]) {
try { fn(); console.log(name,'NO_THROW'); }
catch(e){ console.log(name,'THREW',e.name); }
}"
Remediation
Upgrade uuid to version 11.1.1, 14.0.0 or higher.
References
medium severity
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) due to the allowAbsoluteUrls attribute being ignored in the call to the buildFullPath function from the HTTP adapter. An attacker could launch SSRF attacks or exfiltrate sensitive data by tricking applications into sending requests to malicious endpoints.
PoC
const axios = require('axios');
const client = axios.create({baseURL: 'http://example.com/', allowAbsoluteUrls: false});
client.get('http://evil.com');
Remediation
Upgrade axios to version 0.30.0, 1.8.2 or higher.
References
medium severity
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) due to not setting allowAbsoluteUrls to false by default when processing a requested URL in buildFullPath(). It may not be obvious that this value is being used with the less safe default, and URLs that are expected to be blocked may be accepted. This is a bypass of the fix for the vulnerability described in CVE-2025-27152.
Remediation
Upgrade axios to version 0.30.0, 1.8.3 or higher.
References
medium severity
- Vulnerable module: inflight
- Introduced through: istanbul-merge@1.1.1, nyc@15.1.0 and others
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › istanbul-merge@1.1.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › nyc@15.1.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › read-package-json@2.1.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › nyc@15.1.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › nyc@15.1.0 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › nyc@15.1.0 › istanbul-lib-processinfo@2.0.3 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › nyc@15.1.0 › spawn-wrap@2.0.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › @jest/reporters@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › read-package-tree@5.3.1 › read-package-json@2.1.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › eslint@8.57.1 › file-entry-cache@6.0.1 › flat-cache@3.2.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/rimraf-dir@4.0.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/clean@4.0.0 › @lerna/rimraf-dir@4.0.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › @jest/reporters@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › npm-packlist@2.2.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › npm-packlist@2.2.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › npm-packlist@2.2.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › npm-packlist@2.2.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › init-package-json@2.0.5 › read-package-json@4.1.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › read-package-json@3.0.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › read-package-tree@5.3.1 › read-package-json@2.1.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/rimraf-dir@4.0.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › semantic-release@17.4.7 › @semantic-release/npm@7.1.3 › tempy@1.0.1 › del@6.1.1 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › @jest/test-sequencer@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › @jest/test-sequencer@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-circus@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-circus@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-jasmine2@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-jasmine2@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › @npmcli/move-file@1.1.2 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › @npmcli/move-file@1.1.2 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › @npmcli/move-file@1.1.2 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › @jest/reporters@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-runner@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › babel-jest@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › babel-jest@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › @jest/test-sequencer@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-circus@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-jasmine2@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › rimraf@2.7.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › rimraf@2.7.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › rimraf@2.7.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › libnpmaccess@4.0.3 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-dist-tag@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › @npmcli/move-file@1.1.2 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › libnpmaccess@4.0.3 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-dist-tag@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › @jest/reporters@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-resolve-dependencies@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › babel-jest@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › babel-jest@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-runner@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › babel-jest@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › rimraf@2.7.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › rimraf@2.7.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › rimraf@2.7.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › rimraf@2.7.1 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › libnpmpublish@4.0.2 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › @npmcli/move-file@1.1.2 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › @npmcli/move-file@1.1.2 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › @npmcli/move-file@1.1.2 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › libnpmaccess@4.0.3 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › @npmcli/move-file@1.1.2 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-dist-tag@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › @npmcli/move-file@1.1.2 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › libnpmpublish@4.0.2 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-circus@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-circus@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-jasmine2@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-jasmine2@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-resolve-dependencies@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › @jest/test-sequencer@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › @jest/test-sequencer@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-circus@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-circus@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-jasmine2@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-jasmine2@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › babel-jest@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › libnpmpublish@4.0.2 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › @npmcli/move-file@1.1.2 › rimraf@3.0.2 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › @jest/test-sequencer@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › @jest/test-sequencer@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-circus@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-circus@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-jasmine2@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-jasmine2@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-circus@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-jasmine2@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › @jest/test-sequencer@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-circus@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-jasmine2@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › @jest/test-sequencer@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-circus@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-jasmine2@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › glob@7.2.3 › inflight@1.0.6
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › jest-runtime@27.5.1 › jest-snapshot@27.5.1 › @jest/transform@27.5.1 › babel-plugin-istanbul@6.1.1 › test-exclude@6.0.0 › 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: tar
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/get-packed@4.0.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › libnpmaccess@4.0.3 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-dist-tag@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › libnpmpublish@4.0.2 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1
Overview
tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Directory Traversal via processing of hardlinks. An attacker can read or overwrite arbitrary files on the file system by crafting a malicious TAR archive that bypasses path traversal protections during extraction.
Details
A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.
Directory Traversal vulnerabilities can be generally divided into two types:
- Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.
st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.
If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.
curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa
Note %2e is the URL encoded version of . (dot).
- Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as
Zip-Slip.
One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.
The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:
2018-04-15 22:04:29 ..... 19 19 good.txt
2018-04-15 22:04:42 ..... 20 20 ../../../../../../root/.ssh/authorized_keys
Remediation
Upgrade tar to version 7.5.7 or higher.
References
medium severity
- Vulnerable module: tar
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5 › node-gyp@5.1.1 › tar@4.4.19
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/get-packed@4.0.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › @npmcli/run-script@1.8.6 › node-gyp@7.1.2 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@9.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › libnpmaccess@4.0.3 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1Remediation: Upgrade to lerna@6.5.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-dist-tag@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › cacache@15.3.0 › tar@6.2.1
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › libnpmpublish@4.0.2 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › cacache@15.3.0 › tar@6.2.1
Overview
tar is a full-featured Tar for Node.js.
Affected versions of this package are vulnerable to Directory Traversal via insufficient sanitization of the linkpath parameter during archive extraction. An attacker can overwrite arbitrary files or create malicious symbolic links by crafting a tar archive with hardlink or symlink entries that resolve outside the intended extraction directory.
PoC
const fs = require('fs')
const path = require('path')
const tar = require('tar')
const out = path.resolve('out_repro')
const secret = path.resolve('secret.txt')
const tarFile = path.resolve('exploit.tar')
const targetSym = '/etc/passwd'
// Cleanup & Setup
try { fs.rmSync(out, {recursive:true, force:true}); fs.unlinkSync(secret) } catch {}
fs.mkdirSync(out)
fs.writeFileSync(secret, 'ORIGINAL_DATA')
// 1. Craft malicious Link header (Hardlink to absolute local file)
const h1 = new tar.Header({
path: 'exploit_hard',
type: 'Link',
size: 0,
linkpath: secret
})
h1.encode()
// 2. Craft malicious Symlink header (Symlink to /etc/passwd)
const h2 = new tar.Header({
path: 'exploit_sym',
type: 'SymbolicLink',
size: 0,
linkpath: targetSym
})
h2.encode()
// Write binary tar
fs.writeFileSync(tarFile, Buffer.concat([ h1.block, h2.block, Buffer.alloc(1024) ]))
console.log('[*] Extracting malicious tarball...')
// 3. Extract with default secure settings
tar.x({
cwd: out,
file: tarFile,
preservePaths: false
}).then(() => {
console.log('[*] Verifying payload...')
// Test Hardlink Overwrite
try {
fs.writeFileSync(path.join(out, 'exploit_hard'), 'OVERWRITTEN')
if (fs.readFileSync(secret, 'utf8') === 'OVERWRITTEN') {
console.log('[+] VULN CONFIRMED: Hardlink overwrite successful')
} else {
console.log('[-] Hardlink failed')
}
} catch (e) {}
// Test Symlink Poisoning
try {
if (fs.readlinkSync(path.join(out, 'exploit_sym')) === targetSym) {
console.log('[+] VULN CONFIRMED: Symlink points to absolute path')
} else {
console.log('[-] Symlink failed')
}
} catch (e) {}
})
Details
A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.
Directory Traversal vulnerabilities can be generally divided into two types:
- Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.
st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.
If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.
curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa
Note %2e is the URL encoded version of . (dot).
- Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as
Zip-Slip.
One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.
The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:
2018-04-15 22:04:29 ..... 19 19 good.txt
2018-04-15 22:04:42 ..... 20 20 ../../../../../../root/.ssh/authorized_keys
Remediation
Upgrade tar to version 7.5.3 or higher.
References
medium severity
- Vulnerable module: yargs-parser
- Introduced through: istanbul-merge@1.1.1
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › istanbul-merge@1.1.1 › yargs@4.8.1 › yargs-parser@2.4.1Remediation: Upgrade to istanbul-merge@2.0.0.
Overview
yargs-parser is a mighty option parser used by yargs.
Affected versions of this package are vulnerable to Prototype Pollution. The library could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.
Our research team checked several attack vectors to verify this vulnerability:
- It could be used for privilege escalation.
- The library could be used to parse user input received from different sources:
- terminal emulators
- system calls from other code bases
- CLI RPC servers
PoC by Snyk
const parser = require("yargs-parser");
console.log(parser('--foo.__proto__.bar baz'));
console.log(({}).bar);
Details
Prototype Pollution is a vulnerability affecting JavaScript. Prototype Pollution refers to the ability to inject properties into existing JavaScript language construct prototypes, such as objects. JavaScript allows all Object attributes to be altered, including their magical attributes such as __proto__, constructor and prototype. An attacker manipulates these attributes to overwrite, or pollute, a JavaScript application object prototype of the base object by injecting other values. Properties on the Object.prototype are then inherited by all the JavaScript objects through the prototype chain. When that happens, this leads to either denial of service by triggering JavaScript exceptions, or it tampers with the application source code to force the code path that the attacker injects, thereby leading to remote code execution.
There are two main ways in which the pollution of prototypes occurs:
Unsafe
Objectrecursive mergeProperty definition by path
Unsafe Object recursive merge
The logic of a vulnerable recursive merge function follows the following high-level model:
merge (target, source)
foreach property of source
if property exists and is an object on both the target and the source
merge(target[property], source[property])
else
target[property] = source[property]
When the source object contains a property named __proto__ defined with Object.defineProperty() , the condition that checks if the property exists and is an object on both the target and the source passes and the merge recurses with the target, being the prototype of Object and the source of Object as defined by the attacker. Properties are then copied on the Object prototype.
Clone operations are a special sub-class of unsafe recursive merges, which occur when a recursive merge is conducted on an empty object: merge({},source).
lodash and Hoek are examples of libraries susceptible to recursive merge attacks.
Property definition by path
There are a few JavaScript libraries that use an API to define property values on an object based on a given path. The function that is generally affected contains this signature: theFunction(object, path, value)
If the attacker can control the value of “path”, they can set this value to __proto__.myValue. myValue is then assigned to the prototype of the class of the object.
Types of attacks
There are a few methods by which Prototype Pollution can be manipulated:
| Type | Origin | Short description |
|---|---|---|
| Denial of service (DoS) | Client | This is the most likely attack. DoS occurs when Object holds generic functions that are implicitly called for various operations (for example, toString and valueOf). The attacker pollutes Object.prototype.someattr and alters its state to an unexpected value such as Int or Object. In this case, the code fails and is likely to cause a denial of service. For example: if an attacker pollutes Object.prototype.toString by defining it as an integer, if the codebase at any point was reliant on someobject.toString() it would fail. |
| Remote Code Execution | Client | Remote code execution is generally only possible in cases where the codebase evaluates a specific attribute of an object, and then executes that evaluation. For example: eval(someobject.someattr). In this case, if the attacker pollutes Object.prototype.someattr they are likely to be able to leverage this in order to execute code. |
| Property Injection | Client | The attacker pollutes properties that the codebase relies on for their informative value, including security properties such as cookies or tokens. For example: if a codebase checks privileges for someuser.isAdmin, then when the attacker pollutes Object.prototype.isAdmin and sets it to equal true, they can then achieve admin privileges. |
Affected environments
The following environments are susceptible to a Prototype Pollution attack:
Application server
Web server
Web browser
How to prevent
Freeze the prototype— use
Object.freeze (Object.prototype).Require schema validation of JSON input.
Avoid using unsafe recursive merge functions.
Consider using objects without prototypes (for example,
Object.create(null)), breaking the prototype chain and preventing pollution.As a best practice use
Mapinstead ofObject.
For more information on this vulnerability type:
Arteau, Olivier. “JavaScript prototype pollution attack in NodeJS application.” GitHub, 26 May 2018
Remediation
Upgrade yargs-parser to version 5.0.1, 13.1.2, 15.0.1, 18.1.1 or higher.
References
medium severity
- Vulnerable module: got
- Introduced through: gflow@5.1.2
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › gflow@5.1.2 › update-notifier@3.0.1 › latest-version@5.1.0 › package-json@6.5.0 › got@9.6.0
Overview
Affected versions of this package are vulnerable to Open Redirect due to missing verification of requested URLs. It allowed a victim to be redirected to a UNIX socket.
Remediation
Upgrade got to version 11.8.5, 12.1.0 or higher.
References
medium severity
new
- Vulnerable module: axios
- Introduced through: @tsed/monorepo-utils@1.19.3
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › @tsed/monorepo-utils@1.19.3 › axios@0.21.1Remediation: Upgrade to @tsed/monorepo-utils@2.0.1.
Overview
axios is a promise-based HTTP client for the browser and Node.js.
Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data through the request configuration handling in the adapters/xhr.js adapter and helpers/resolveConfig.js. An attacker can force the withXSRFToken option to a truthy non-boolean value, or pollute Object.prototype.withXSRFToken, by supplying a crafted request config that causes the XSRF header to be sent on cross-origin requests. When withXSRFToken is treated as a generic truthy value, the same-origin check is bypassed, and the browser reads the XSRF cookie and attaches it to an attacker-controlled destination. This exposes the user's XSRF token to a cross-origin endpoint, potentially enabling request forgery against the victim's authenticated session.
Remediation
Upgrade axios to version 0.31.1, 1.15.1 or higher.
References
medium severity
- Vulnerable module: marked
- Introduced through: semantic-release@17.4.7
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › semantic-release@17.4.7 › marked@2.1.3Remediation: Upgrade to semantic-release@19.0.0.
Overview
marked is a low-level compiler for parsing markdown without caching or blocking for long periods of time.
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) when passing unsanitized user input to inline.reflinkSearch, if it is not being parsed by a time-limited worker thread.
PoC
import * as marked from 'marked';
console.log(marked.parse(`[x]: x
\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](\\[\\](`));
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade marked to version 4.0.10 or higher.
References
medium severity
- Vulnerable module: marked
- Introduced through: semantic-release@17.4.7
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › semantic-release@17.4.7 › marked@2.1.3Remediation: Upgrade to semantic-release@19.0.0.
Overview
marked is a low-level compiler for parsing markdown without caching or blocking for long periods of time.
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) when unsanitized user input is passed to block.def.
PoC
import * as marked from "marked";
marked.parse(`[x]:${' '.repeat(1500)}x ${' '.repeat(1500)} x`);
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.
The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.
Let’s take the following regular expression as an example:
regex = /A(B|C+)+D/
This regular expression accomplishes the following:
AThe string must start with the letter 'A'(B|C+)+The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the+matches one or more times). The+at the end of this section states that we can look for one or more matches of this section.DFinally, we ensure this section of the string ends with a 'D'
The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD
It most cases, it doesn't take very long for a regex engine to find a match:
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total
$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total
The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.
Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.
Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:
- CCC
- CC+C
- C+CC
- C+C+C.
The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.
From there, the number of steps the engine must use to validate a string just continues to grow.
| String | Number of C's | Number of steps |
|---|---|---|
| ACCCX | 3 | 38 |
| ACCCCX | 4 | 71 |
| ACCCCCX | 5 | 136 |
| ACCCCCCCCCCCCCCX | 14 | 65,553 |
By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.
Remediation
Upgrade marked to version 4.0.10 or higher.
References
medium severity
- Vulnerable module: semantic-release
- Introduced through: semantic-release@17.4.7
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › semantic-release@17.4.7Remediation: Upgrade to semantic-release@19.0.3.
Overview
semantic-release is an Automated semver compliant package publishing
Affected versions of this package are vulnerable to Information Exposure which can be accidentally disclosed if they contain characters that are excluded from URI encoding by encodeURI.
Remediation
Upgrade semantic-release to version 19.0.3 or higher.
References
medium severity
- Vulnerable module: parse-url
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › git-url-parse@11.6.0 › git-up@4.0.5 › parse-url@6.0.5Remediation: Upgrade to lerna@5.5.2.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/github-client@4.0.0 › git-url-parse@11.6.0 › git-up@4.0.5 › parse-url@6.0.5Remediation: Upgrade to lerna@5.5.2.
Overview
parse-url is an An advanced url parser supporting git urls too.
Affected versions of this package are vulnerable to Improper Input Validation due to incorrect parsing of URLs. This allows the attacker to craft a malformed URL which can lead to a phishing attack.
const parseUrl = require("parse-url");
const Url = require("url");
const express = require('express');
const app = express();
var url = "https://www.google.com:x@fakesite.com:x";
parsed = parseUrl(url);
console.log("[*]`parse-url` output: ")
console.log(parsed);
parsed2 = Url.parse(url);
console.log("[*]`url` output: ")
console.log(parsed2)
app.get('/', (req, res) => {
if (parsed.host == "www.google.com") {
res.send("<a href=\'" + parsed2.href + "\'>CLICK ME!</a>")
}
})
app.listen(8888,"0.0.0.0");
Remediation
Upgrade parse-url to version 8.1.0 or higher.
References
medium severity
- Vulnerable module: @tootallnate/once
- Introduced through: semantic-release@17.4.7, lerna@4.0.0 and others
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › semantic-release@17.4.7 › @semantic-release/github@7.2.3 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to semantic-release@18.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to lerna@5.3.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-runner@27.5.1 › jest-environment-jsdom@27.5.1 › jsdom@16.7.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to jest@28.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-environment-jsdom@27.5.1 › jsdom@16.7.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to jest@28.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-environment-jsdom@27.5.1 › jsdom@16.7.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to jest@28.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to lerna@5.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/create@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to lerna@5.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › pacote@11.3.5 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to lerna@5.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › libnpmaccess@4.0.3 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to lerna@5.3.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-dist-tag@4.0.0 › npm-registry-fetch@9.0.0 › make-fetch-happen@8.0.14 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to lerna@5.3.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › jest-environment-jsdom@27.5.1 › jsdom@16.7.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to jest@28.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › jest-environment-jsdom@27.5.1 › jsdom@16.7.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to jest@28.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-runner@27.5.1 › jest-environment-jsdom@27.5.1 › jsdom@16.7.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to jest@28.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-environment-jsdom@27.5.1 › jsdom@16.7.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to jest@28.0.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › libnpmpublish@4.0.2 › npm-registry-fetch@11.0.0 › make-fetch-happen@9.1.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to lerna@5.3.0.
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › jest@27.4.3 › jest-cli@27.5.1 › @jest/core@27.5.1 › jest-config@27.5.1 › jest-runner@27.5.1 › jest-environment-jsdom@27.5.1 › jsdom@16.7.0 › http-proxy-agent@4.0.1 › @tootallnate/once@1.1.2Remediation: Upgrade to jest@28.0.0.
Overview
Affected versions of this package are vulnerable to Incorrect Control Flow Scoping in promise resolving when AbortSignal option is used. The Promise remains in a permanently pending state after the signal is aborted, causing any await or .then() usage to hang indefinitely. This can cause a control-flow leak that can lead to stalled requests, blocked workers, or degraded application availability.
Remediation
Upgrade @tootallnate/once to version 2.0.1, 3.0.1 or higher.
References
medium severity
- Vulnerable module: eslint
- Introduced through: eslint@8.57.1
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › eslint@8.57.1Remediation: Upgrade to eslint@9.26.0.
Overview
eslint is a pluggable linting utility for JavaScript and JSX
Affected versions of this package are vulnerable to Uncontrolled Recursion in the isSerializable function when handling objects with circular references during the serialization process. An attacker can cause the application to crash or become unresponsive by supplying specially crafted input that triggers infinite recursion.
Remediation
Upgrade eslint to version 9.26.0 or higher.
References
medium severity
new
- Module: npm
- Introduced through: semantic-release@17.4.7
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › semantic-release@17.4.7 › @semantic-release/npm@7.1.3 › npm@7.24.2
Artistic-2.0 license
medium severity
new
- Module: npm-lifecycle
- Introduced through: lerna@4.0.0
Detailed paths
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/add@4.0.0 › @lerna/bootstrap@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/npm-publish@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/pack-directory@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5
-
Introduced through: @tsed/root@typedproject/ts-gphoto2-driver › lerna@4.0.0 › @lerna/publish@4.0.0 › @lerna/version@4.0.0 › @lerna/run-lifecycle@4.0.0 › npm-lifecycle@3.1.5
Artistic-2.0 license