Skip to content

Commit 44da17c

Browse files
security update (prototype pollution prevention) Object.freeze
1 parent f828d6e commit 44da17c

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
3030

3131
| Version | Date | Comment |
3232
| -------------- | -------------- | -------- |
33+
| 4.30.3 | 2020-11-25 | security update (prototype pollution prevention) Object.freeze |
3334
| 4.30.2 | 2020-11-25 | security update (prototype pollution prevention) |
3435
| 4.30.1 | 2020-11-12 | updated docs |
3536
| 4.30.0 | 2020-11-12 | `get()` possibility to provide params |

docs/history.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ <h3>Full version history</h3>
8383
</tr>
8484
</thead>
8585
<tbody>
86+
<tr>
87+
<th scope="row">4.30.3</th>
88+
<td>2020-11-25</td>
89+
<td>security update (prototype pollution prevention) Object.freeze</td>
90+
</tr>
8691
<tr>
8792
<th scope="row">4.30.2</th>
8893
<td>2020-11-25</td>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
<img class="logo" src="assets/logo.png">
169169
<div class="title">systeminformation</div>
170170
<div class="subtitle"><span id="typed"></span></div>
171-
<div class="version">Current Version: <span id="version">4.30.2</span></div>
171+
<div class="version">Current Version: <span id="version">4.30.3</span></div>
172172
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
173173
</div>
174174
<div class="down">

lib/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
// Dependencies
2222
// ----------------------------------------------------------------------------------
2323

24+
Object.freeze(String.prototype);
25+
Object.freeze(Object.prototype);
26+
2427
const lib_version = require('../package.json').version;
2528
const util = require('./util');
2629
const system = require('./system');

lib/internet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function inetChecksite(url, callback) {
4141
s[i] === '{' ||
4242
s[i] === '}')) {
4343
const sl = s[i].toLowerCase();
44-
if (sl[0] && !sl[1]) {
44+
if (sl && sl[0] && !sl[1]) {
4545
urlSanitized = urlSanitized + sl[0];
4646
}
4747
}

0 commit comments

Comments
 (0)