@contrast/protect 1.12.0 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -142,7 +142,6 @@ module.exports = function(core) {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
|
|
146
145
|
if (stringInjectionResults) {
|
|
147
146
|
let stringFindings = null;
|
|
148
147
|
|
|
@@ -325,7 +324,10 @@ function handleStringValue(result, cmd, agentLib) {
|
|
|
325
324
|
inputBoundaryIndex: 0,
|
|
326
325
|
};
|
|
327
326
|
} else {
|
|
328
|
-
|
|
327
|
+
// This is a temporary workaround, while `agent-lib` fixes
|
|
328
|
+
// the `checkSsjsInjectionSink` so it can detect the "TRUE-CLAUSE-1" correctly
|
|
329
|
+
// TODO: NODE-2897
|
|
330
|
+
const isAttack = result.idsList.includes('TRUE-CLAUSE-1') || agentLib.checkSsjsInjectionSink(cmd, inputIndex, result.value.length);
|
|
329
331
|
if (!isAttack) return findings;
|
|
330
332
|
|
|
331
333
|
findings = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/protect",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "Contrast service providing framework-agnostic Protect support",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"test": "../scripts/test.sh"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@contrast/agent-lib": "^5.3.
|
|
21
|
-
"@contrast/common": "1.3.
|
|
22
|
-
"@contrast/core": "1.10.
|
|
23
|
-
"@contrast/esm-hooks": "1.6.
|
|
20
|
+
"@contrast/agent-lib": "^5.3.1",
|
|
21
|
+
"@contrast/common": "1.3.2",
|
|
22
|
+
"@contrast/core": "1.10.2",
|
|
23
|
+
"@contrast/esm-hooks": "1.6.2",
|
|
24
24
|
"@contrast/scopes": "1.2.0",
|
|
25
25
|
"ipaddr.js": "^2.0.1",
|
|
26
26
|
"semver": "^7.3.7"
|