Which of the following potential vulnerabilities exists in the following code snippet?

Posted by: Pdfprep Category: CAS-001 Tags: , ,

Which of the following potential vulnerabilities exists in the following code snippet?

var myEmail = document.getElementById(“formInputEmail”).value;

if (xmlhttp.readyState==4 && xmlhttp.status==200)

{

Document.getElementById(“profileBox”).innerHTML = “Emails will be sent to “ + myEmail + xmlhttp.responseText;

}
A . Javascript buffer overflow
B . AJAX XHR weaknesses
C . DOM-based XSS
D . JSON weaknesses

Answer: C

Leave a Reply

Your email address will not be published.