Skip to content

Commit

Permalink
Merge pull request #518 from 418sec/6-npm-systeminformation
Browse files Browse the repository at this point in the history
Security Fix for Improper Input Validation
  • Loading branch information
sebhildebrandt committed Apr 8, 2021
2 parents 87e7b0c + 434fb0e commit 45c08f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/osinfo.js
Expand Up @@ -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;
Expand Down

0 comments on commit 45c08f1

Please sign in to comment.