Merge pull request #3 from EffectRenan/master
Fix for Denial of Service vulnerability
This commit is contained in:
commit
743cefc10c
@ -38,7 +38,6 @@ function inetChecksite(url, callback) {
|
|||||||
const s = util.sanitizeShellString(url);
|
const s = util.sanitizeShellString(url);
|
||||||
for (let i = 0; i <= 2000; i++) {
|
for (let i = 0; i <= 2000; i++) {
|
||||||
if (!(s[i] === undefined ||
|
if (!(s[i] === undefined ||
|
||||||
s[i] === ' ' ||
|
|
||||||
s[i] === '{' ||
|
s[i] === '{' ||
|
||||||
s[i] === '}')) {
|
s[i] === '}')) {
|
||||||
s[i].__proto__.toLowerCase = util.stringToLower;
|
s[i].__proto__.toLowerCase = util.stringToLower;
|
||||||
|
|||||||
@ -527,6 +527,7 @@ function sanitizeShellString(str) {
|
|||||||
s[i] === '\n' ||
|
s[i] === '\n' ||
|
||||||
s[i] === '\'' ||
|
s[i] === '\'' ||
|
||||||
s[i] === '`' ||
|
s[i] === '`' ||
|
||||||
|
s[i] === ' ' ||
|
||||||
s[i] === '"')) {
|
s[i] === '"')) {
|
||||||
result = result + s[i];
|
result = result + s[i];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user