remove confirm prompt on server-returned javascript
more people ask about what this prompt is about, and answering 'no' generally breaks botguard at this point. if you don't like the possibility of IITC running server-returned code, then disable the botguard interface completely - we're already running it on page load, so there's no more risk doing it here too
This commit is contained in:
parent
522eb8d38c
commit
d9abda87f3
@ -116,12 +116,9 @@ iitc_bg.process_key = function(key,serverEval) {
|
|||||||
|
|
||||||
if (serverEval) {
|
if (serverEval) {
|
||||||
// server wants us to eval some code! risky, and impossible to be certain we can do it safely
|
// server wants us to eval some code! risky, and impossible to be certain we can do it safely
|
||||||
// however... reports say that it only interacts with the botguard.bg code, so we might be fine just running it
|
// seems to always be the same javascript as already found in the web page source.
|
||||||
// (but this is only when we don't send the correct params to the server? no reports of this code triggering yet...)
|
|
||||||
try {
|
try {
|
||||||
console.warn('botguard: Server-generated javascript eval requested:\n'+serverEval);
|
console.warn('botguard: Server-generated javascript eval requested:\n'+serverEval);
|
||||||
debugger;
|
|
||||||
if (!confirm('The server asked IITC to run (eval) some javascript. This may or may not be safe. Run and continue?\n\nScript:\n'+serverEval)) { console.error('server javascript eval cancelled') } else
|
|
||||||
iitc_bg.evalFunc(serverEval);
|
iitc_bg.evalFunc(serverEval);
|
||||||
console.log('botguard: Server-generated javascript ran OK');
|
console.log('botguard: Server-generated javascript ran OK');
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user