diff --git a/CHANGELOG.md b/CHANGELOG.md index 703c71b..607a09c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 4.30.3 | 2020-11-25 | security update (prototype pollution prevention) Object.freeze | | 4.30.2 | 2020-11-25 | security update (prototype pollution prevention) | | 4.30.1 | 2020-11-12 | updated docs | | 4.30.0 | 2020-11-12 | `get()` possibility to provide params | diff --git a/docs/history.html b/docs/history.html index efa636c..a263315 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.30.3 + 2020-11-25 + security update (prototype pollution prevention) Object.freeze + 4.30.2 2020-11-25 diff --git a/docs/index.html b/docs/index.html index 3a3d21f..6e90312 100644 --- a/docs/index.html +++ b/docs/index.html @@ -168,7 +168,7 @@
systeminformation
-
Current Version: 4.30.2
+
Current Version: 4.30.3
diff --git a/lib/index.js b/lib/index.js index 3c77372..a44025f 100755 --- a/lib/index.js +++ b/lib/index.js @@ -21,6 +21,9 @@ // Dependencies // ---------------------------------------------------------------------------------- +Object.freeze(String.prototype); +Object.freeze(Object.prototype); + const lib_version = require('../package.json').version; const util = require('./util'); const system = require('./system'); diff --git a/lib/internet.js b/lib/internet.js index 9f8ef33..15a5309 100644 --- a/lib/internet.js +++ b/lib/internet.js @@ -41,7 +41,7 @@ function inetChecksite(url, callback) { s[i] === '{' || s[i] === '}')) { const sl = s[i].toLowerCase(); - if (sl[0] && !sl[1]) { + if (sl && sl[0] && !sl[1]) { urlSanitized = urlSanitized + sl[0]; } }