Answer the question
In order to leave comments, you need to log in
Why did the xss attack work in this example?
Problem #4 from the xss game website .
Answer: if you insert it into the form, ');alert('xss
then the alert will work. That data will be substituted into the function as the "seconds" argument:
function startTimer(seconds) {
seconds = parseInt(seconds) || 3;
setTimeout(function() {
window.confirm("Time is up!");
window.history.back();
}, seconds * 1000);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question