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
commit 45c08f139e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;