Merge pull request #518 from 418sec/6-npm-systeminformation

Security Fix for Improper Input Validation
This commit is contained in:
Sebastian Hildebrandt
2021-04-08 20:07:50 +02:00
committed by GitHub
+4
View File
@@ -485,6 +485,10 @@ function versions(apps, callback) {
apps = '*';
} else {
apps = apps || '*';
if (typeof apps !== 'string') {
if (callback) { callback({}); }
return resolve({});
}
}
const appsObj = checkVersionParam(apps);
let totalFunctions = appsObj.counter;