mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
🐛 Improve expression security
This commit is contained in:
@@ -99,6 +99,19 @@ export class Expression {
|
|||||||
);
|
);
|
||||||
const data = dataProxy.getDataProxy();
|
const data = dataProxy.getDataProxy();
|
||||||
|
|
||||||
|
// Support only a subset of process properties
|
||||||
|
// @ts-ignore
|
||||||
|
data.process = {
|
||||||
|
arch: process.arch,
|
||||||
|
env: process.env,
|
||||||
|
platform: process.platform,
|
||||||
|
pid: process.pid,
|
||||||
|
ppid: process.ppid,
|
||||||
|
release: process.release,
|
||||||
|
version: process.pid,
|
||||||
|
versions: process.versions,
|
||||||
|
};
|
||||||
|
|
||||||
// Execute the expression
|
// Execute the expression
|
||||||
try {
|
try {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
||||||
|
|||||||
Reference in New Issue
Block a user